Advertisement

Text Adventure

Started by May 29, 2002 10:31 PM
2 comments, last by c u r t i s 22 years, 6 months ago
hi is anyone doing gametutorials.com text adventure tutorials? How are you doing the inventory system and saving? thanks
I''m making a text RPG too. I added some features like random NPC''s movement and others. Well, my inventory system is made with an int array inside a player class. Each element of the array contains a certain number wich corresponds to an object''s id. The number 0 means nothing in that place of inventory, any other number means one of the objects.

I use different files to keep the player, object, NPC''s and the area info, so when I call the save function, I make it put all the data that is contained in the classes for each element (player, objects, etc) in a different file.
Advertisement
hi what is NPC movements? How are you doing saving games?

Thanks
if u need something to see how they work look for nethack its a text based rpg and its fun and u can then find out how to make your game
------------------------------http://foogoo.web-trash.com (under construction)

This topic is closed to new replies.

Advertisement