Traking in Battel

Can i track when i am in Fight bc i want to make a spell like the Flying Raijin Justsu from Minato and its says u Teleport to an Point where you let a Mark and it should escape from the Fight but when i make it like in the Picture it worked but i can TP in the battel away but i don?t want that bc this i need to Track that the Play is in fight before the TP option
Fragen.PNG

The common event is the TP Menu.
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

Original thread: https://forums.rpgmakerweb.com/threads/traking-in-battel.168043/