To finish my battle system, I would need some sort of event that runs in the beginning of every turn that checks the TP of an actor and applies a state based on that. I have it set using plugins for the max TP to be 7 and that 1 TP automatically regenerates every turn. I want it so that if TP is below 4 the state "negative" is applied (makes the actor unable to move) and if the TP is equal to or greater than 4 the state "negative" is removed is the state is already inflicted. i might be able to do that with Yanfly's "base troop events," but I'm not sure. Can anyone help me on this? Thanks.
How to add or remove a state automatically based on current TP?
RPG Maker MV SupportNever mind, I figured it out. All I needed was to make a base troop event for troop #1 that is like
Conditional Branch:
If : Actor x is in Party
If : Script : $gameActors.actor(x).tp < y
Change State : Actor x, + State x
Else
If : Script : $gameActors.actor(x).tp ≥ y
Change State : Actor x, - State x
and then do it for each actor in your game.
Conditional Branch:
If : Actor x is in Party
If : Script : $gameActors.actor(x).tp < y
Change State : Actor x, + State x
Else
If : Script : $gameActors.actor(x).tp ≥ y
Change State : Actor x, - State x
and then do it for each actor in your game.
Thanks for posting the answer so everyone who has the same problem can see it!
Thread closed s
Thread closed s
Original thread: https://forums.rpgmakerweb.com/threads/how-to-add-or-remove-a-state-automatically-based-on-current-tp.121946/