- Joined
- Sep 28, 2018
- Messages
- 3
- Reaction score
- 0
- First Language
- English
- Primarily Uses
- RMVXA
I am working on a skill that will take off 20% of the target's current hp. Just this alone is easy, but I also want to prevent this skill from working on certain enemies (like bosses). I have the following in the damage formula for the skill:
if !(b.isStateResist(42)); b.hp/5; end;
Where the skill checks if the target resists the state or not to prevent the skill from taking off 20% of the target's current hp if it resists. If the target does not resist the state (which in my case is state 42), then the target takes 20% damage of its current hp. Otherwise, the skill does no damage.
It is not working however, and I am not sure why. Any ideas? Using VXA
if !(b.isStateResist(42)); b.hp/5; end;
Where the skill checks if the target resists the state or not to prevent the skill from taking off 20% of the target's current hp if it resists. If the target does not resist the state (which in my case is state 42), then the target takes 20% damage of its current hp. Otherwise, the skill does no damage.
It is not working however, and I am not sure why. Any ideas? Using VXA
Last edited:

