However the if statement is likely to be very complicated by itself. Work out the logic on paper, and then after that, shove it in a function. That way you can make tests like this:
Code:
enum HIT { hit_missed, hit_weak, hit_strong, hit_fierce, hit_critical };
// or something. Street Fighter help us
HIT accuracy( void ) {
// ... This is where you're thinking comes in
// with your careful logic
}
switch ( accuracy() ) {
case hit_critical:
// detrement the player's health here or K.O?
break;
case hit_fierce:
// detrement health by so much here...
break;
case hit_strong:
// again...
break;
};
and so forth.