Advertisement Jump to content


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

c u r t i s

Text Adventure

This topic is 6076 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

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, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!