Teleportation spell during battle

I have a problem with making a spell that teleports the player to a safe location. I've already made it work outside of battles but it fails to execute the transfer command when I cast it during a fight.

Can someone help me out with this?

I've moved this thread to MV Support. Thank you.



Transfer commands do not execute in battle. You have to end the battle first. There's an End Battle command in the event list. Try that and see if it works.

Original thread: https://forums.rpgmakerweb.com/threads/teleportation-spell-during-battle.85813/