I wanted start the battle with 0 TP, but i didn't found how to do, may someone help?
Manage TP (VX ACE)
RPG Maker VXAce Support$game_party.members.each {|a| a.tp = 0 }I'm new in this engine, i put it in the battle command or in the script part?
it's easier in a different way:
give all actors the feature "preserve TP" (under other), this will disable the randomization on TP at battlestart and cause every actor to have the TP they left the battle with.
then you can use the script above at any time to remove the remaining TP. Usually done with a script command in a troop event conditioned to turn 0 or in a map event after battle processing
Without that feature on the actors, the code above needs to be executed at turn end of turn 0 - after the TP was randomized but before the battle really starts.
give all actors the feature "preserve TP" (under other), this will disable the randomization on TP at battlestart and cause every actor to have the TP they left the battle with.
then you can use the script above at any time to remove the remaining TP. Usually done with a script command in a troop event conditioned to turn 0 or in a map event after battle processing
Without that feature on the actors, the code above needs to be executed at turn end of turn 0 - after the TP was randomized but before the battle really starts.
To apply the 0 TP feature from the very beginning, you can copy and paste 1 of the scriptlets below as a brand new script. This also means you won't need the script call I posted above.
For all battlers:
For all actors (heroes):
For all troopers (enemies):
For all battlers:
Ruby:
class Game_Battler
def init_tp
self.tp = 0
end
end
For all actors (heroes):
Ruby:
class Game_Actor
def init_tp
self.tp = 0
end
end
For all troopers (enemies):
Ruby:
class Game_Enemy
def init_tp
self.tp = 0
end
end
Original thread: https://forums.rpgmakerweb.com/threads/manage-tp-vx-ace.176585/