Yanfly "Skill Learn System" Question

I also have a question. I'm trying to have only a certain actor learn a specific skill. I tried using this code, but all actors are still able to learn the skill.


<Learn Require Eval>


if (this._actor.id = 1) { value = true; }


</Learn Require Eval>
I also have a question. I'm trying to have only a certain actor learn a specific skill. I tried using this code, but all actors are still able to learn the skill.


<Learn Require Eval>


if (this._actor.id = 1) { value = true; }


</Learn Require Eval>



This should work:

Code:
 <Learn Require Eval>
if (this._actor.actorId() == 1) { value = true; }
</Learn Require Eval>
This should work:



<Learn Require Eval>
if (this._actor.actorId() == 1) { value = true; }
</Learn Require Eval>

Thanks, I actually realized i was missing that extra =, but i also had to use if (this._actor._actorId() == 1) { value = true; } for it to work.

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-skill-learn-system-question.50546/