I'm trying to alter how the escape command on my game works, and was wondering if there was a conditional branch, script command, event page (anything really) that I could use to insert commands after the player selects escape. If I were able to alter the formula for when Escape is successful that would work too.
Basically what I am wanting to do is make escape successful if actor 1 has enough TP. I tried to create a work around by temporarily adding agility to Actor 1 at the end of my battle turns if $gameActors.actor(1).tp > 99. But that didn't work. It seems like the engine only takes into account the player's agility prior to the battle processing when calculating his/her success chances to escape.
I know I could just make my own escape options. But I would like to make use of the current escape command if possible so it doesn't become a third wheel.
Basically what I am wanting to do is make escape successful if actor 1 has enough TP. I tried to create a work around by temporarily adding agility to Actor 1 at the end of my battle turns if $gameActors.actor(1).tp > 99. But that didn't work. It seems like the engine only takes into account the player's agility prior to the battle processing when calculating his/her success chances to escape.
I know I could just make my own escape options. But I would like to make use of the current escape command if possible so it doesn't become a third wheel.