Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

c u r t i s

Text Adventure

This topic is 5894 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!