Search found 41 matches

by olympic sleeper
Aug 26, 2020 23:04
Forum: Projects
Topic: Old school text adventure as a way of re-learning coding
Replies: 45
Views: 2842

Re: [off topic?] Ice creams and keys

Many thanks, never heard of Woodruff as a thing never mind ice cream - cassis also a good one. I did search before I posted (missed the woodruff though - its not in the wikipeidia entry but then neither is cassis) but the problem with that is, well you can make ice cream out of *anything* (including...
by olympic sleeper
Aug 26, 2020 8:53
Forum: Projects
Topic: Old school text adventure as a way of re-learning coding
Replies: 45
Views: 2842

[off topic?] Ice creams and keys

Hello, In the text adventure I am writing I have an NCP that sells ice creams, however I am struggling with thinking up enough (around 20) different enough flavours. So I thought I'd ask here, while I have 9 so far it may be that there are better options out there. So...What's your favourite ice cre...
by olympic sleeper
Aug 21, 2020 16:40
Forum: Projects
Topic: Old school text adventure as a way of re-learning coding
Replies: 45
Views: 2842

NPCs people and animals

Hello, Another quick update and also a link for anyone interested in text adventures etc. There is a podcast called the Retro hour on YouTube and elsewhere which featured text adventures - https://www.youtube.com/watch?v=w8IQZJJFqCU. Its more of an overview and interview with a dev who is/has produc...
by olympic sleeper
Aug 15, 2020 22:56
Forum: Projects
Topic: Old school text adventure as a way of re-learning coding
Replies: 45
Views: 2842

Re: Old school text adventure as a way of re-learning coding

Hello, A quick update: NPC movement is now complete, they path correctly from location to location, goals are in progress however I'm wondering on the best way to get the npcs to 'talk' to the main code. That is if an npc turns on a TV how is the code going to know? I supose I could just use lots of...
by olympic sleeper
Aug 13, 2020 9:07
Forum: Projects
Topic: Old school text adventure as a way of re-learning coding
Replies: 45
Views: 2842

NPCs people and animals

Hello, When I checked the forum a couple of days ago someone had posted whether I had considered GOAP, with a very useful YouTube link. I hadn't considered it as I did not know it was a thing but went off to look. Unfortunately I did not make a note of their name and the post has now disappeared so ...
by olympic sleeper
Aug 10, 2020 22:48
Forum: Projects
Topic: Old school text adventure as a way of re-learning coding
Replies: 45
Views: 2842

NPCs people and animals

Hello, I am now starting on the NPC part of my text adventure. In Zork, which is the inspiration for this, there were a number of NPCs, though they did not do much, other than the thief who would rob you bind at every opportunity. I’d like to try and expand on this so that NPCs do sort of realistic ...
by olympic sleeper
Aug 10, 2020 21:27
Forum: Beginners
Topic: Outputting something other than the default graphics font
Replies: 1
Views: 169

Outputting something other than the default graphics font

Hello, While writing my text adventure I have put together a simple editor to allow me to build a large enough map to make it possible to test npc movement (once I have written that bit - my initial ideas on this are in the project thread). However as I did so I got somewhat frustrated with the defa...
by olympic sleeper
Aug 04, 2020 20:16
Forum: Beginners
Topic: Stuck writing a simple bit toggle routine
Replies: 19
Views: 724

Re: Stuck writing a simple bit toggle routine

Hello and many thanks for the replies and suggestions. The reason I thought about doing this in a sub/function is that I have a very similar requirement (needing different types going into a sub) in a verification routine. To save me typing if this then whatever in a massive nest I thought of perhap...
by olympic sleeper
Aug 03, 2020 20:12
Forum: Beginners
Topic: Stuck writing a simple bit toggle routine
Replies: 19
Views: 724

Stuck writing a simple bit toggle routine

Hello I have a set of bit flags I want to toggle, so if set reset, if reset - set. I put this together; sub toggle_bit(flag as any ptr,position as integer) if bit(*flag,position) then flag=bitreset(*flag,position) else flag=bitset(*flag,position) end if end sub But am having problems getting it to c...
by olympic sleeper
Jul 29, 2020 14:36
Forum: Beginners
Topic: Can I check I understand file put & get correctly?
Replies: 11
Views: 437

Can I check I understand file put & get correctly?

Hi, Before I delve into a lot of code can I check I've understood file put and get for sequential files correctly? Its it true that I have an array of a user defined type which itself contains arrays, strings and arrays of strings I can just 'put' the whole thing to a file and then later re-open tha...
by olympic sleeper
Jul 29, 2020 14:29
Forum: Beginners
Topic: Odd issue with some string manipulation, any ideas?
Replies: 10
Views: 654

Re: Odd issue with some string manipulation, any ideas?

Many thanks, another of the (many) things that have slipped passed me.
by olympic sleeper
Jul 26, 2020 12:13
Forum: Beginners
Topic: Odd issue with some string manipulation, any ideas?
Replies: 10
Views: 654

Re: Odd issue with some string manipulation, any ideas?

Many thanks for the reply and code segment. To be honest I don't fully understand that line now, so in a year probably not. Most of my code uses intermediate steps, but for some reason I just could not work out how to do so here - which resulted in that hideous pseudo Perl expression. I also did not...
by olympic sleeper
Jul 26, 2020 11:10
Forum: Beginners
Topic: Can this be solved by a pointer, if so how please?
Replies: 2
Views: 256

Can this be solved by a pointer, if so how please?

Hi, I have a code block that I want to reuse with a slightly different reference, it has a with statement at its start - with db(place). db is a type, and db(place) is an array of this starting at 0. I also have a pointer *objects which links to db via objects(object), I guess you could think of thi...
by olympic sleeper
Jul 24, 2020 19:59
Forum: Projects
Topic: Old school text adventure as a way of re-learning coding
Replies: 45
Views: 2842

Hello again, Sorry to say that I am a bit stuck and would appreciate some advice. I am currently working on portals. A portal is an object that may be moved around and allows access to places that are high up or low down. Its a bit like a ladder, but as its an object it can be opened and closed. It ...
by olympic sleeper
Jul 24, 2020 11:24
Forum: Beginners
Topic: Odd issue with some string manipulation, any ideas?
Replies: 10
Views: 654

Re: Odd issue with some string manipulation, any ideas?

Hello and many thanks for the help. I've finally got my brain around the nessesary line, its: =mid(result,instr(result,cont_tag)+len(cont_tag)+instr(mid(result,instr(result,cont_tag)+len(cont_tag)),"(")-1) Which is just horrible but, I think, works. I needed to be able to discard anything ...

Go to advanced search