Ya know what? I'm gonna write down my code, if you need info from other parts of the code, tell me and I'll give it to you.
there ya have it, my messy noobish and completely messed up code.
Void Fight (int estrike, int btd, int enemyhp, int hp, int attack, int ac, int enemyattack, int enemyac, int enemydmg, int dmg, int strike, int td, int enemytd)
/* estrike stands for enemy strike, btd= bonus total damage, hp=health points, ac=armor class, and td =total possible damage.*/
cout << "you engage in a fight against the enemy:\n";
while (enemyhp>0 && hp>0
cout << "you attack your enemy: "
const int N = 21;
strike = (int) N * rand() / (RAND_MAX + attack);
cout << strike << endl;
dmg=(int) td * rand() / (RAND_MAX =btd);
// to basically subtract damage from the enemy's HP.
/*etc, etc, etc, thats basically it, its the same thing for my enemy except with all different varibles. */
btw... if there are any typo's by pass them, I can ACTUALLY RUN THIS THING haha, but it doesn't work the way I want it too. , uh uhh opps, i mean (the progression to the state of madness)
Help me if you can please.
Thanks! keep postin'!