Plugin Errors

Quick question.

I put in some region restrictions based off level using scripts from events. When I activate the event, I get this error, but it does not crash the game or seem to affect it in any way.

Would there be an issue with this?

$game_actors[1].level > 5 is the script


Edit: won't let me link a picture. But it says the script is undefined in some YEP plugins
we need to know where you put that line, because that alone doesn't make any sense.
And undefined errors happen either when you placed something wrong or if you added a plugin and forgot to start a new game, or if there is an incompatibility between two plugins.

So basically we need screenshots of your plugin manager and wherever you placed that line - and as you can see in other topics, there should be no problem with either attaching or linking pictures unless you did something wrong.
It says security error when I link a picture.

The line is literally in the events page when you enter a conditional branch. Go to the actor tab and it says script. It isn't an issue between 2 plugins or plugin orders at all since they are in Yanfly's specified order. Also, when I removed the event, no errors. It is also being ran from a new game
$game_actors is not an MV syntax. It's a VX Ace syntax. Use $gameActors instead.
Actually, the entire script call appears to be in VX Ace format.

Use this instead:

$gameActors.actor(1).level > 5
$game_actors is not an MV syntax. It's a VX Ace syntax. Use $gameActors instead.
Actually, the entire script call appears to be in VX Ace format.

Use this instead:

$gameActors.actor(1).level > 5

You are a champion! I didn't realize it was an old syntax. Changing it fixed all the errors. Thank you very much.

Original thread: https://forums.rpgmakerweb.com/threads/plugin-errors.81795/