How to make skills that do different things in and out of battle?

So I've got two skills, and I want both of them to do different things depending on whether the skill is used in or out of battle.

Skill 1
In Battle: Instantly escape from battle.
Out of Battle: Teleport to the main city.

Skill 2
In Battle: Increase the user's evasion.
Out of Battle: Halve enemy encounter rate for a short time.

I know how to achieve these effects (though... how do I prevent escape from boss fights using that skill?), but I don't know how to make it so that the effects are different depending on whether or not you're in battle. So... What do I do?
Make two skills with the same name, one that works in battle, the other out of battle. And make escape impossible during boss fights.
Make two skills with the same name, one that works in battle, the other out of battle. And make escape impossible during boss fights.

Hmm... But wouldn't the one that's only usable in battle show up in the out of battle menu, only greyed out?
lol what if at the beginning of each battle you do a check if the skill exists then take out the field version and replace it with the battle version, then reverse it after the battle

itd probably go like this:

(in the troops page)
- conditional branch: if actor has skill, then remove field skill, add battle skill
- turn a switch on that shows the field skill has been replaced

(in the field) parallel event, if the switch is on
- remove battle skill, replace with field skill
- turn switch off

though that might interfere with the skill order a little.. the better solution would be to make a common event skill but i’m not sure if vx ace has that functionality
I prevent escape like this. I give the full version, as it might not work outside of that setting.

I removed Escape from the battle command menu and gave certain characters Escape as a skill.
That skill calls up a common event which uses the event command 'Abort Battle'.

To prevent escape during boss battles, that event command is in a conditional branch which checks if a particular switch is ON. If it is, then Abort Battle is not run.

Before each boss battle, I turn that switch ON, and then after the battle turn it OFF.

No need for a parallel process or anything fancy.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-skills-that-do-different-things-in-and-out-of-battle.139732/