MV Yep_Skill Core custom condition not working for enemies.

Hello everyone o/


So I'm encountering this error, the enemy seems to ignore the custom requirement for a skill to be used.

The code pasted into the skills notes is this.

<Custom Requirement>

if ($gameVariables.value(13) == 1 {

value = true;

} else {

value = false;

}

</Custom Requirement>

The skill should NOT be useable at all unless the V13 is 1.

Now when I enter the battle test, after saving it, all game variables are 0 but the skill is being used? Is there a error with my code or doesn't it work for enemies?
enter the battle test
That could be your entire problem.

please test in a true battle processing in a new playtest game.

Battletest from database uses shortcuts to start the battle directly, and that is known to disable or break a lot of plugins which need the regular game setup of a new game.
if ($gameVariables.value(13) == 1 {
your IF is missing a closing parenthesis

Also you could use the value of that condition directly
Code:
value = $gameVariables.value(13) == 1;
your IF is missing a closing parenthesis

Also you could use the value of that condition directly
Code:
value = $gameVariables.value(13) == 1;

Code:
<Custom Requirement>
   if ($gameVariables.value(13)) == 1 {
     value = true;
   } else {
     value = false;
   }
  </Custom Requirement>
Like this?

I've min knowledge of JS.

That could be your entire problem.

please test in a true battle processing in a new playtest game.

Battle test from database uses shortcuts to start the battle directly, and that is known to disable or break a lot of plugins which need the regular game setup of a new game.
Yeah tested it on map then I used a blank project with just the plugin installed and enemies are still able to use it.
if ($gameVariables.value(13)) == 1 {
if ($gameVariables.value(13) == 1) {
It worked! Thanks, I really hate and like coding.....
As a tip (aside from just using @Robro33's one-line solution), if you had pressed F8 during your play test and looked at the Console tab, the code you had in your first post should have been generating syntax errors every enemy turn.

Original thread: https://forums.rpgmakerweb.com/threads/yep_skill-core-custom-condition-not-working-for-enemies.169746/