Text - based RPG Menu

Oi! I'm trying to build a menu for a text based rpg. So that whenever your done "doing something" it always comes back to it. I was wondering if there is a way that i could keep "vital" stats in a sort of header at the top of the console.

Thanks.
There is no standard way to do that, however you can use libraries such as ncurses and pdcurses to accomplish this.
Well I know there is no specific way. And by libraries, what do you mean?
IS there like kinda of a base skeleton all menu's would follow?
By 'standard' I did not mean 'specific', but rather that this it is not possible with standard C++.
For what a library is, see
http://en.wikipedia.org/wiki/Library_%28computing%29

I was referring to keeping stats in a fixed position in the console, by the way.

For the central menu it would make sense to have a function displayMenu that displays the menu, a function that reads an user choice and a function for each entry in the menu. The main loop could then look like this:
1
2
3
4
5
6
7
8
9
for (;;)
{
  displayMenu();
  int choice=readUserChoice();
  switch (choice)
  {
     ...
  }
}
Topic archived. No new replies allowed.