I have maked a way to escape in battle, but this engine only works with
all party members and having the 3
Action Sequences pack (and
battle engine core so) of
Yanfly.
1.- Make two
common events, we will name it
[Escape base] and
[successful escape].
2.- Put in
[successful escape] the
"Stop battle" command.
3.- Put in
[Escape] a conditional branch and put the switch what you want to disable the escape function. ex: "Boss battle".
4.- In
ON condition, put a skill, we will name it
[Can't escape]
5.- In
OFF condition, put another skill, we will name it
[successful escape] too.
6.- Create the skill you want to use for escape, the visible one for the player. Put the name, the icon, cost, the skill type, and the other settings of you want, but the target only can be
"all allies" or
"nothing"/"any" (I'm sorry, i have the spanish version.)
7.- In the notebox, put this string:
<Target action>
common event: id of the common event [Escape]
</Target action>
8.- In the
[Can't escape] Skill, put this notebox:
<Target action>
perform finish
wait for movement
clear battle log
</Target action>
Leave the other settings as you will, but i recommend no icon, because the idea is to the player only view this as "Message".
9.- Next, in the
[successful escape] skill, i reccommend again, put the settings with no icon, but is your will. Then put this in notebox:
<Target action>
motion escape: actors
move actors: backwards, 400, 20
wait for motion: actors
wait for movement
opacity actors: 0, 1
SE: Run, 80, 100, 0
common event: 4
</Target action>
10- Finally, in the
[Escape base] common event, put in the conditional branch
"ON" a
"Force action" command and then select the actor that have the escape skill, and then select the
[Can't escape] Skill. Leave the target as default.
11- Do the same with the
"OFF" branch, but this time put the
[successful escape] skill.
And this will make your characters run from battle almost like the normal escape command.
Images:
Example Demo.