Event triggered by gaining full TP

Alright,

So I'm making an RPG where TP acts as "Stress", which you can relieve with certain skills and gain through damage and using powerful recovery items. What I want to happen is that as soon as TP/Stress hits max, the character will enter some sort of sleep/confused state.

Is this possible at all? I've meddled in scripting and plowed through forums and google without avail, so any help would be greatly appreciated!

Greets!
yes, it is possible - you'll need a combination of database work, eventing and scripting.


Your actor needs the feature "preserve TP", or the TP will be set to zero between battles.


Then you can either use a parallel event to check the TP-Value, or you can use one of Tsukihime's scripts that triggers when TP is maxed (sorry, I don't have the link ready, look in her blog or on the master script list).

Original thread: https://forums.rpgmakerweb.com/threads/event-triggered-by-gaining-full-tp.22057/