Referencing TP

In what way(s) can I reference TP via script calls? Because there doesn't seem to be too many ways to interact with TP via eventng (particularly conditional branches).

I want to achieve something where if a party member has 0% (or whatever number) TP, then they get inflicted with a state, else remove state.
Yes if i can remember Yanfly have a kind of script....is not is tp manager no?
Oh, I'll need a non-script solution. i.e no third-party solution.
Well Sadly without Script you cannot really modify TP...or use them for eventing...unfortunatly rpg maker vx ace have a poor control about the TP
well, you'd need a script line on the event commands: $game_actors[id].tp
HA....I forgot about this kind of code I fell so idiot now...sorry for to not be a big help...
well, you'd need a script line on the event commands: $game_actors[id].tp
How would I use that in a conditional branch?

I have it like this: $game_actors[x].tp = 0

So far, what it's doing is simply setting the TP to zero instead of checking if TP = 0.
when you use scripts, is x equals to y? is


x == y


= is for setting values


== is for checking equality
Or if you wanted to put a condition who not need to be a 0 but don't want a specific number the tp  you can do this (is just if you wanted for other use)

replace the == by a $game_actor[id].tp =< 10 (Exemple) it will check a number lower of 10  and not just 10...

*Correct me engr.Shana if i have wrong :3...is just far in my head i used that...
I believe the equal sign should be the second one... <=, >=
Thanks, to the both of you.

Everything is working fine, except for just one more thing!

I need an item/skill to reduce the target's TP by x amount. How would I go about doing this?
isn't there an effect for that?
isn't there an effect for that?
That's for GAINING tp.

And the "-" doesn't work in that field.
ah, it was %...


oh well, if it doesn't accept -


you can use the damage formula...


b.tp-=amount;0


though it will show a no effect message when used
It shows a "no damage was taken" message, which I don't want, but other than that everything is working and is sorted. Thanks a lot!

Mods can close this~
you can use Yanfly's anti-fail script and tag that skill...
you can use Yanfly's anti-fail script and tag that skill...
I coouullld, but since this is for the Encounters of the Boss Kind contest, I'm not really allowed to use scripts.

But since all it's doing is removing a sentence from the battle log...I suppose it might be fine....
Oh I see... then you might not be able to use it..
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/referencing-tp.23657/