help with really simple rpg
i have only been working with C++ off and on the last few weeks and this is my first semi large project
here is a what i want to do (instructions in code)
Code:
//i want to display all this stuff as a item menu and link to it from various places
cout<<"Items\n";
cout<< item1 << "potions or something\n";
cout<< item2 << "something else!!!!\n";
//end of the stuff i want as an item menu
do {
switch (room) {
//room coordinate 1,1
case 11:
if ( man11hp > 0 ) {
cout<<"There is a man standing in front of you.\n";
cout<<"(a)ttack\n";
cout<<"(r)un\n";
cout<<"(i)tem\n"; // when i hit input "i" i want it to link to the item menu
cin>> action11;
that is just a small section from the code, before it is just a bunch of variables i have declared