Yanfly "Skill Learn System" Question

Discussion in 'Javascript/Plugin Support' started by MaxLionheart, Nov 15, 2015.

Thread Status:
Not open for further replies.
  1. Faroah

    Faroah Villager Member

    Messages:
    5
    Likes Received:
    0
    First Language:
    English
    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>
     
    #21
  2. kiriseo

    kiriseo Veteran Veteran

    Messages:
    229
    Likes Received:
    74
    First Language:
    German


    This should work:

    Code:
     <Learn Require Eval>
    if (this._actor.actorId() == 1) { value = true; }
    </Learn Require Eval> 
     
    #22
  3. Faroah

    Faroah Villager Member

    Messages:
    5
    Likes Received:
    0
    First Language:
    English
    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.
     
    #23
Thread Status:
Not open for further replies.

Share This Page