I'm not very skilled with coding/working with syntax, but basically I have this damage formula;
if a.hp > 101; a.hp = a.hp - 100; else; a.hp = 1; end; a.add_state(14)
The idea is to create a powerful weapon technique not based in magic, but in some super-human level of skill mastery. Like something an anime character uses when he's desperate/as a finishing move, but never spams (because of the implied exertion of the technique). The formula checks whether the user's hp is over 101 and if it is, the user loses 100 hp; In all other cases (user has less then 101 hp), it just sets the user's hp 1 to avoid KOing them. Then a regen state is added to recover the lost hp (the physical exertion incurred from using the technique) over time.
What's the best way to make the lost hp percentage-based? Like if I want the user to lose 30% of their max hp as hp everytime 'Blade Projectile' is performed.
Also, is there a good way to clean the formula up? It barely fits in the available box and the part of the formula that inflicts the skill's actual damage to the enemy is held in the formula box of a separate skill (I'm using a script to chain skills).
if a.hp > 101; a.hp = a.hp - 100; else; a.hp = 1; end; a.add_state(14)
The idea is to create a powerful weapon technique not based in magic, but in some super-human level of skill mastery. Like something an anime character uses when he's desperate/as a finishing move, but never spams (because of the implied exertion of the technique). The formula checks whether the user's hp is over 101 and if it is, the user loses 100 hp; In all other cases (user has less then 101 hp), it just sets the user's hp 1 to avoid KOing them. Then a regen state is added to recover the lost hp (the physical exertion incurred from using the technique) over time.
What's the best way to make the lost hp percentage-based? Like if I want the user to lose 30% of their max hp as hp everytime 'Blade Projectile' is performed.
Also, is there a good way to clean the formula up? It barely fits in the available box and the part of the formula that inflicts the skill's actual damage to the enemy is held in the formula box of a separate skill (I'm using a script to chain skills).
