by Roody_Yogurt » Mon Jan 28, 2013 8:03 pm
loafingcoyote wrote:Thank you Roody, this solution works perfectly.
Okay, I understand this now. You set $MAXDICTEXTEND to 200 because there are two rooms and the address will be the same each time the player enters the room. For each room that is added you would need to add 100 to $MAXDICTEXTEND(or whatever amount you set the maxlen to in dict. Awesome, thanks!
Yeah, although I only
really needed to set it to 26, as "East 1st St." and "West 1st St." are both 12 characters each, so you add the extra two end bits. In Tdarcos game, assuming there's like a 100 streets in either direction, he'd need like 14 characters (since most of the streets would be two digits) times 200.
loafingcoyote wrote:You know, I was wondering if it might be possible to manage dictionary addresses to the point where you could replace one with another? I'm imagining a situation where the maxlen is always a standard number of bytes, say 20, and I would like to reuse that space after it's no longer needed. Is this possible?
This is not possible. Once dictionary addresses are set, they are set in stone. I once had the idea that, in a game, I could restart the game without the player knowing, using the word array and configuration files to keep things in play, but it turned out that there's an obscure bug where the dictionary table wasn't being reset like it should be.
loafingcoyote wrote:On the other hand, what are the reasonable limits of $MAXDICTEXTEND? The manual doesn't seem to have any particular guidelines but there must be some danger to setting it too high.
Yeah, who knows. I wouldn't worry about it until you run into that danger, at which point, hey, we'll all learn something.
[quote="loafingcoyote"]Thank you Roody, this solution works perfectly.
Okay, I understand this now. You set $MAXDICTEXTEND to 200 because there are two rooms and the address will be the same each time the player enters the room. For each room that is added you would need to add 100 to $MAXDICTEXTEND(or whatever amount you set the maxlen to in [i]dict[/i]. Awesome, thanks![/quote]
Yeah, although I only [i]really[/i] needed to set it to 26, as "East 1st St." and "West 1st St." are both 12 characters each, so you add the extra two end bits. In Tdarcos game, assuming there's like a 100 streets in either direction, he'd need like 14 characters (since most of the streets would be two digits) times 200.
[quote="loafingcoyote"]You know, I was wondering if it might be possible to manage dictionary addresses to the point where you could replace one with another? I'm imagining a situation where the maxlen is always a standard number of bytes, say 20, and I would like to reuse that space after it's no longer needed. Is this possible?[/quote]
This is not possible. Once dictionary addresses are set, they are set in stone. I once had the idea that, in a game, I could restart the game without the player knowing, using the word array and configuration files to keep things in play, but it turned out that there's an obscure bug where the dictionary table wasn't being reset like it should be.
[quote="loafingcoyote"]On the other hand, what are the reasonable limits of $MAXDICTEXTEND? The manual doesn't seem to have any particular guidelines but there must be some danger to setting it too high.[/quote]
Yeah, who knows. I wouldn't worry about it until you run into that danger, at which point, hey, we'll all learn something.