I plan on using TP as a "Limit Break" gauge, but I want it to reset when the character dies so the combat can be more challenging. How can I do this? There's is no way to force a common event when a status effect is applied, and I didn't see any plugins for this either.
How can I set an actor's TP to 0 upon death?
RPG Maker MV SupportNo, but there is a way to have a troop event activate when an actor dies.
Alternately, you can use Yanfly's Buffs & States Core, give state 1 the notetag
Code:
<Custom Apply Effect>
user.setTp(0);
</Custom Apply Effect>
There is a slight problem with the solution above, and that is that by default TP is randomized on starting the battle - even if set to zero at the end of the last battle.
to prevent this, all actors need the "preserve TP" trait, which tells the engine to keep the last number and disaable said randomisation.
to prevent this, all actors need the "preserve TP" trait, which tells the engine to keep the last number and disaable said randomisation.
Thank you very much for your insight, I really appreciate it but sorry for taking so long to reply. I did what you said and it works like a charm, so thread's as good as solved!
Original thread: https://forums.rpgmakerweb.com/threads/how-can-i-set-an-actors-tp-to-0-upon-death.169083/