Except that won't work since I have this menu. So I change just a few variables depending on what they pick.
Code:
case 'f':
cout<<"1-man\n";
cout<<"2-goblin\n";
cin>>monster;
if(monster=1){
mhp1=20; <---------------------can't get Vb code to work
cout<<"You encounter a man.\n";
}
while(finalcom>0){ //fight
fight=rand()%6;
cin>>combat;
if(combat=='a'){ //attack
fcom=(((strength*3)+agility)/fight);
finalcom=mhp1-fcom;
mhp1=finalcom;
}
if(finalcom>0){
cout<<finalcom<<"\n";
}
}
cout<<"\nHe is dead\n"; //death