My brains not working as well as it should be at the moment, and I can't figure out the percentages these equal to:
if($survival <= 100 && $survival >= 60){$code;} //high HP
elseif($survival < 60 && $survival >= 20){$code;} //medium HP
elseif($survival < 20 && $survival >= 10){$even_more_code;} //low HP
elseif($survival < 10 && $survival >= 1){$hey_look_some_code;} // very low HP
This is what I got:
if($survival <= 100 && $survival >= 60){$code;} //high HP
elseif($survival < 60 && $survival >= 20){$code;} //medium HP
elseif($survival < 20 && $survival >= 10){$even_more_code;} //low HP
elseif($survival < 10 && $survival >= 1){$hey_look_some_code;} // very low HP
This is what I got:
- High HP (80-100) - 50%
- Med HP (50-70) - 30%
- Low HP (20-50) - 10%
- Very Low HP (0-20) - 10%