I'm making a game that doesn't have combat, and I'm using the HP, MP and TP bars to track different non-battle statistics for the characters (think like "happiness" or "hunger" like in the Sims franchise) but I'm running into a problem with TP. I know that by default it functions pretty different from the other two, but I've managed to work around it to an extent, such as getting it to display in the menus. I've also read that giving the characters or classes the flag "preserve TP after battle" is important for adding/removing TP outside of battle, but I haven't been able to figure out how to actually do that. Is there something I'm supposed to be typing into the scripting section of the eventing window or do I need a custom RGSS3 script to make this work? I've tried searching multiple different combinations of words, but I'm not finding anything.
Add/Remove TP outside battle via Eventing?
RPG Maker VXAce Supportno need for any custom script, although there are some to allow for a more complex handling of TP.
"preserve TP" is a trait/feature and as such added to the actor with all the other features.
It basically disables the default randomizer for TP in battle.
the only other effect on TP is that you gain TP from damage in addition to from skills, that can be removed by the feature of setting the TP Gain parameter to zero but should not be neccessary if you don't have combat at all.
Other than that TP can be accessed in the damage formula like the other values, a.hp or a.mp or a.tp or b.tp etc.
For more specific help you need to describe what exactly you want to do with/for TP.
"preserve TP" is a trait/feature and as such added to the actor with all the other features.
It basically disables the default randomizer for TP in battle.
the only other effect on TP is that you gain TP from damage in addition to from skills, that can be removed by the feature of setting the TP Gain parameter to zero but should not be neccessary if you don't have combat at all.
Other than that TP can be accessed in the damage formula like the other values, a.hp or a.mp or a.tp or b.tp etc.
For more specific help you need to describe what exactly you want to do with/for TP.
I'm trying to give and take away TP from a character via eventing. Like I said, I'm not using the battle system.
Edit: Maybe it would make more sense if I said I was trying to change a characters TP value via eventing. Things like increasing their current TP by 5 or decreasing it by 4 based on choices the player makes, as well as having certain events play out differently based on a characters TP (if their TP is 45, a different dialog will play out).
Edit: Maybe it would make more sense if I said I was trying to change a characters TP value via eventing. Things like increasing their current TP by 5 or decreasing it by 4 based on choices the player makes, as well as having certain events play out differently based on a characters TP (if their TP is 45, a different dialog will play out).
A script command
an item
Preserve TP
$game_actors[1].tp += 40an item
Preserve TP
Awesome thanks.
Would it be possible to use ($game_actors[1].tp = XX) to check the characters current TP?
Would it be possible to use ($game_actors[1].tp = XX) to check the characters current TP?
just that. will get the current tp
Thanks again.
Original thread: https://forums.rpgmakerweb.com/threads/add-remove-tp-outside-battle-via-eventing.170279/