Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- take_hp = argument0;
- var calculate_dmg = true;
- if(calculate_dmg)
- {
- hp_target = (current_hp - floor(take_hp/2));
- calculate_dmg = false;
- }
- if(hp != hp_target && calculate_dmg == false)
- {
- hp--;
- }
- if(hp == hp_target)
- {
- damage_amt = 0;
- current_hp = hp;
- hp_target = hp;
- set_dmg = true;
- }
Advertisement
Add Comment
Please, Sign In to add comment