All the variables associated with the bottom code.
Code:char combat; int mhp1=20; int fight; int fcom=((strength*3)+agility/fight); int finalcom=(mhp1-fcom);
The evil stuff giving me trouble.
It works fine except I get some insane numbers like -130593985794. My mud is just over 100 lines so I don't want to post the entire thing.Code:case 'f': cout<<"You encounter one dumb sunava.........."; do{ fight=rand()%5; cin>>combat; if(combat=='a'){ cout<<finalcom; cout<<fcom; } }while(finalcom>0); break;



LinkBack URL
About LinkBacks


