Skill that reduces target's TPs

Hey there,

I'm looking for a way to create a skill that would lower the target's TPs. I already found this on this forum https://forums.rpgmakerweb.com/inde...n-reducing-tp-enemy-skill.101075/#post-907018 but it requires javascripting skills I don't have...

I also know there is a HimeWorks plugin, but it is for VX Ace. Is there a simple way to do this?

Thanks!
I highly recommend you add these Yanfly's plugins to your game

Battle Engine Core
Action Sequence Part 1
Action Sequence Part 2
Action Sequence Part 3

And you can make something like this.

Also here you can play in realtime in all available sequences for those plugins
I'm looking for a way to create a skill that would lower the target's TPs. I already found this on this forum https://forums.rpgmakerweb.com/inde...n-reducing-tp-enemy-skill.101075/#post-907018 but it requires javascripting skills I don't have...
You don't need any plugin or javascript skill. You just need to edit the Damage Formula (like in the link you posted).
Code:
b.gainTp(-amount of tp you want to remove); attack damage
For instance if you want the default basic attack to remove 10 TP on the target :
Code:
b.gainTp(-10); a.atk * 4 - b.def * 2
Well, I was already using said Yanfly's plugins, but the second option is far simpler, and works perfectly well. I had tried it following the link I provided, but it didn't work because I had taken out the second part of the formula; it indeed doesn't work without this last part, making the game crash with an error message saying the formula doesn't give a finite result.

Anyway, it works now, and I learned a lot. Thanks to both of you!
🙂

Edit: The skill works but when used, a 0 HT damage appear on the target; is there anyway to have the TP damages appear instead?
I don't think you can easily display the TP damage. One simple trick would be to inflict as much HP damage as TP removed.
If I stay on my previous example of removing 10 TP :
Code:
var dmg=10; if(b.tp<dmg) { dmg=b.tp }; b.gainTp(-dmg); dmg
Note that I completely replaced the attack damage part so it will only inflict between 0 and 10 HP damage (depending on target's TP). Also don't forget to set your skill Variance at 0% and Critical Hits to No, or the final damage may be slightly different.
Cool thanks @TWings . I'll also try to use yanfly's action sequence plugin as recommended by @Soulrender to see if it changes anything and will report back if it works.

Original thread: https://forums.rpgmakerweb.com/threads/skill-that-reduces-targets-tps.114114/