Teleportation Fail

So I was attempting to work out a Teleportation skill, said skill would be able to have different abilities if the player was in battle or outside of it. I had a conditional branch using the script "$game_party.in_battle" (Something I copied from another post regarding a similar situation), and so I tested it in battle and I got this error:
X32msvg.png

What did I do wrong and how can I solve this? Should note I use 1.6.1 if that is relevant at all, though I'm not entirely sure it is
$game_party.in_battle is the syntax for Ace.

The MV equivalent is $gameParty.inBattle()
$game_party.in_battle is the syntax for Ace.

The MV equivalent is $gameParty.inBattle()
The irony of me copying your post (Which must have been about Ace given this context) resulting in the issue in the first place is not lost on me. Alas, your help is well appreciated! Quick fix, and one that is going to be a huge help in the long run

Original thread: https://forums.rpgmakerweb.com/threads/teleportation-fail.94384/