RMMV Enemy TP Removal/Damage Skill?

Hi everyone,

I know how to create enemy spells that do HP damage (my teams loses their hit points) and MP damage (my team loses their magic points); is there a way to set an enemy spell so that the effect on my team is that their TP bar decreases / they lose TP? I can't seem to figure out a formula or effect or state that an enemy could use on my team, to make the TP bar go down the same way that the HP or MP bars do. I think maybe a TP Regeneration *negative percent* state might work, but that seems pretty inelegant. Thanks!
Are you using Yanfly's Skill Core plugin?
Are you using Yanfly's Skill Core plugin?

Yes I am 🙂
Add a <Custom Execution> tag to the skill with

target.gainTp(-amount you want to reduce it by)
Add a <Custom Execution> tag to the skill with

target.gainTp(-amount you want to reduce it by)

I'm having some trouble figuring out the exact typing for this... here are two things I tried, neither of which work.

Edit: Removing the semi-colon doesn't work either.
The first one should work.

Try <After Eval> instead.
The first one should work.

Try <After Eval> instead.

That works, thanks! I never would have guessed that lol. Thank you 🙂

Original thread: https://forums.rpgmakerweb.com/threads/rmmv-enemy-tp-removal-damage-skill.134930/