RPG Maker Forums

So, brief summary. I have a character with some aggressive abilities that, in addition to other effects, buff their own attack and debuff their own defense, making them more dangerous and more fragile as the battle goes on.

I was hoping to give them an ability with low base damage that, if it kills an enemy, heals them a small amount and removes all of their currently ongoing defense debuffs.

I have Yanfly's Skill Core plugin in order to insert javascript into skills. My notebox currently reads:

<Post-Damage Eval>
if (target.hp <= 0) {
user.gainHp(50);
user.removeDebuff(3);
}
</Post-Damage Eval>

So, in theory, this should deal the skill's damage, then evaluate if the target's HP is 0 or less. If it is, the user of the skill gains 50hp and removes their defense debuffs. When I use the skill and it doesn't kill an enemy, everything is fine. When I use the skill and it kills an enemy, the game gets an error and the javascript effects do not trigger. If I remove the "user.removeDebuff(3)" part, it works fine. If it switch it to "user.removeBuff(3)", that works fine.

So, I assume I'm somehow writing "user.removeDebuff(3)" incorrectly? It's driving me a little insane.

Latest Threads

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,470
Members
137,821
Latest member
Capterson
Top