i have been working on a rpg game and im trying to use a menu anf if staments for the items and attack useing loops 1 can this work this way and 2 im getting error in my code and i cant find it.
#include<iostream>
#include<cstdlib>
#include<iomanip>//for rand
#include<ctime> //time
using namespace std;
int main()
char Fight;
cout<<"Press F to fight ";
cout<<"or Press any key for Quit"<<endl;
cin >>Fight;
if(put_out_fire == 'F' || put_out_fire == 'f')/////story my continues in here//////
{
}
cout<<"pick a weapon and fight or he will kill you!"<<endl;
cout<<"S:Small Dagger attack 1"<<endl;
cout<<"H:health potion health +10"<<endl;
cout<<"N:Nature Spell attack 2"<<endl;
cout<<"pick or die"<<endl;
cin >>choice;
}
}
else cout<<"You have failed do anything to save your friends or your city"<<endl;
return 0;
}
also it's going to be a final fanisy fighting type of game but with out the timers for attack, how do u use the menu to use wepons and attack the monster
and for the moster attack you back till him or i are dead? can some one point me in the right direction.
thanks this code is just one part of a much bigger code iv been working on this past few hours but im still confused on how the monster was going to take damage and i was to take damage or even heal. ill work on it some more today your comment helped.