Tuesday, February 21, 2012

Long Displays & Stacked Mobs/Partners/Objects

As usual it took 5 times longer than I had thought it would to implement this necessary addition. Now, instead of the game crashing when there are more things to display than there are lines in the display box (54), the player can advance through pages of all the Descriptions (Is a room description more than 52 lines long really necessary?), Exits, Mobs, Partners, and Objects in a room with the 'Return' key. If any input, even a blank space, is entered, the pages will stop advancing and the input will be treated as usual. Pressing 'Return' while there is no long page being displayed does nothing.

Now, instead of using a line for each individual Mob/Partner/Object, each of these stack if they are the same. Another long display will be used when examining containers with more types of objects in them than lines in the display box. I'm currently focusing on Time, Lighting, Plant-life, and getting basic Foraging/Gathering/Harvesting (Not sure which commands to use for what and how just yet) and Crafting off the ground. Also, the 'Examine' command, of which I am not looking too forward to programming the long displays for. Will update intermittently.

Long Displays - 'Look'
Stacked Mobs/Partners/Objects

No comments:

Post a Comment