Sorry, didn't understood too well what you're trying to do. But correct me, if I'm mistook something. (Your system is in German - Probably) You wanna make a skill in battle. That have two stages.
One, is when out battle, you put a mark, that save the coordinates of your characters, so, when used on battle, it permits you to escape, and teleport to that saved location.
If is that what you want, I think it's a bit complicated to do, without a plugin.
I not test it out, but by logic, you could have a separated skill that only works off battle and one that only works in battle, preferable, if you have Visustella MZ plugins, hide the skill to not appear in battle and vice versa.
The off battle skill, going to mark the hero coordinates and map locations. Or you could just make "Q" or "W" are pressed, mark this coordinates.
The second one, the in battle one, stay normally, by using the variables with the coordinates.
Or, don't know if this could work (And I think is that what you want), "$gameParty.inBattle()" could be included on the common event to try separate this two situations. Don't know if it works, but this probably check if your party is in battle.
your first sugestion is right but yeah i solve the Problem with 2 separte skills