I am trying to get a script together where the players rival appears, walks toward the player, has a battle, and then walks away and disappears.
Every aspect works so far except after the battle ends the script comes to a hard stop and the sprite is back where it was initially.
If i walk back on the tile that should trigger the event the rival sprite walks toward me (like he did the first time) and then walks away and disappears for good like he was supposed to after the battle.
Is there a specific command I need to include after trainerbattle to ensure that the script plays onward?
Do I need to use the trainerbattle 0x1 command when including a battle in a tile script?
Here is the script I used.