Jump to content


Help with random generators,loops and over all code.

c++ programming

1 reply to this topic

#1 odin337

    New Member

  • Members
  • Pip
  • 1 posts

Posted 29 December 2012 - 08:30 AM

So me a friend of mine are working on a text based adventure game, I how ever came in to a few snag.
1. How do we call variable that equal monsters(like int harp= Harpy,or int orc=Orc) in a random generator
2. How can we add in combat.
3. How can we add in combat in specific areas like orcs only fought in the highlands were harpys are in the low land
4. how to code better, key npc rather than if statements (if there are better ways).

#2 Reedbeta

    DevMaster Staff

  • Administrators
  • 5308 posts
  • LocationSanta Clara, CA

Posted 29 December 2012 - 08:47 AM

Please use [ code ] ... [ /code ] tags to post code in the forum, so it will maintain the formatting.
reedbeta.com - developer blog, OpenGL demos, and other projects





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users