I can't seem to figure this out, how can I tell when the player has escaped from a random encounter? Without a plugin if possible.
It's really easy when you force the encounter with battle event but lost when it comes to the random step encounter.
Thanks!
maybe combination of switches...
ex:
1. at the map... have parallel process event that check a switch ex: RandomBattle...
do your event if come from random battle there and turn the RandomBattle switch OFF after that... (to reset it)
2. if you have evented battle... before that battle turn on a switch ex: EventedBattle
3. at the battle in troop event... at turn 0 do some check to check if the EventedBattle is ON...
if yes turn EventedBattle OFF... (to reset it)
if not turn RandomBattle ON...
maybe like that... hope this help.
edit: wait did not see the ESCAPE part...
i guess it will be hard without plugins...
edit2: wait... maybe you can combine those above with checking
Code:
BattleManager.isEscaped();