RPG Maker Forums

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

Latest Threads

Latest Posts

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.

Forum statistics

Threads
106,040
Messages
1,018,472
Members
137,822
Latest member
madelbylz
Top