Pokemon Evolving Problem

Hello, i'm having a bit of trouble with trying to implement a pokemon like evolve system.


My idea is to use Yanfly's AutoPassiveStates and create a state that connects to a common event that changes the actor image and stats when he gets that passive state.


But here lies my problem. I'm trying to give the actor the state only when he reaches a certain level so i have in the notetag of the state this:


<Custom Passive Condition>


if ($gameActors.actor(1).level <= 16) {


condition = true;


} else {


condition = false;


}


But i dont seam to make it to work :/


Probably its wrong and if someone could help me figure this out it would be awsome.


http://yanfly.moe/2015/10/17/yep-13-auto-passive-states/


Sem Título-1.png
I've moved this thread to Plugin Support. Please be sure to post your threads in the correct forum next time. Thank you.


Learning Javascript is for learning how to write your own plugins, but you want help with the notetags of an existing plugin.


Please give a link to the website of the plugin you have problems with


People can help you faster if they can read the plugin instructions themselves

Original thread: https://forums.rpgmakerweb.com/threads/pokemon-evolving-problem.71213/