Skill that resets TP

I want to make a burst skill that resets TP after use, but isnt locked to a specific number. For example, players can use the skill anytime, but becomes stronger when used at higher TP but resets the TP after using the skill for the character that used it.
Correct me if I'm wrong, but you want:


1) A skill that deals damage based on TP, and


2) For that skill to then consume all TP.


This could be done by:


1) setting the skill's damage to something like "a.tp * 0.2" (which would make the skill deal 1 damage for every 5 TP consumed),


2) by creating a Common Event that reduces the character's TP by 100 (unless you're using a script that changes maximum TP, then you'd wanna make sure it's high enough to actually reduce it from full to 0), and


3) making the skill call the event.


Obviously, this way would require you to have separate versions of the skill for any character that can use it, with the common events centralized around each character. I.e., if Actor 1 and Actor 3 can use it, you'd need two copies of the skill. My game uses a skill like that, except it's a little easier since it's a single-actor game haha. Anyway, I hope this helps 🙂
Oh thank you! I didn't see I could change TP as a common Event.
Yep! I'm actually using a skill like what you wanted (complete with 1 damage per 5 TP), so figured I would help out! 🙂
Alternativelly, you can change the tp through the damage formula too.


in the case of your example, the formula would be something like "c = a.tp; a.tp = 0; c * 0.2"
Alternativelly, you can change the tp through the damage formula too.


in the case of your example, the formula would be something like "c = a.tp; a.tp = 0; c * 0.2"



Huh. I hadn't thought of that. That could work, too. Would definitely save a common event (and my game will go through plenty of those).
ops, that was a vxace code. for mv it seems that it would be  "c = a.tp; a.setTp(0) ; c * 0.2"

Original thread: https://forums.rpgmakerweb.com/threads/skill-that-resets-tp.68168/