hello all, need help with a text rpg (using c)
how would i get it so whenever a person enters i at any point in the game, it would display the persons inventory? thanks in advance
Printable View
hello all, need help with a text rpg (using c)
how would i get it so whenever a person enters i at any point in the game, it would display the persons inventory? thanks in advance
I'm sure it's in one of the tutorials on the main page, but here's what I'd do:
Code:char inputChar;
cin >> inputChar;
if (inputChar == 'i')
{
displayInventory();
}