Checking Tp

I was wondering if there was a way to check TP (using events) and if it's empty/full the character the game would be over.

Thanks

Smartmax
Well I looked at it, seems like not directly, so just use the script line

Script: x = $game_actors[id].tpScript: $game_variables[id] = xid for game_actors is the id of the actorid for game variables is the game variable that you want to hold the value of tp
I'm sorry but i'm a bit noobish to the whole script thing can you explain in greater detail please?
here's a quick example of what shana posted:

cOKeTo5.png


(I put in a battle because otherwise my characters would all have 0 tp, and I wanted to make sure it worked)

the variable I'm assigning the TP count to is variable 44, the party member I'm checking is party member 1. you don't need to set the TP variable to zero before running the two lines of script, I just did it to make it obvious which variable I was using.

I hope this helps? it's pretty straightforward, just copy the two lines shana posted into the 'script' event option (page 3, at the bottom), and replace the 'id's with actual numbers.

Original thread: https://forums.rpgmakerweb.com/threads/checking-tp.23125/