Hello everyone! This is my first post on these forums, so my apologies if it's on the wrong sub-forum.
I am developing a game (obviously) and I want when my character has 15TP (during the battle) a message to appear which
will tell him to use a special skill. I SUPPOSE it can only be made with a script, since I haven't found any way to do this with events
(displaying the message is piece of cake, but there is no way of checking if the player has <=15 tp)
Thank you for your time guys!
Script to find tp during battle
● ARCHIVED · READ-ONLY
-
-
All the characters, or just one of your characters?
-
Just the protagonist.
-
class Scene_Battle < Scene_Base PROTAGONIST = 1 # Actor ID of Protagonist COMMON_EVENT = 1 # Common Event To Run alias :soul_check_tp_start_henw32132 :start_party_command_selection #-------------------------------------------------------------------------- # * Start Party Command Selection #-------------------------------------------------------------------------- def start_party_command_selection if $game_actors[PROTAGONIST].tp <= 15 $game_temp.reserve_common_event(COMMON_EVENT) end soul_check_tp_start_henw32132 endendJust fork up a common event and place a Show Event Text on it. It means when the protagonist's TP is below or equals to 15, that message from the common event will run.
-
Thanks man! :D