Equip Battle Skills (YEP)

Discussion in 'Javascript/Plugin Support' started by PhxFire, Aug 1, 2019.

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

    PhxFire The Eternal Flame Veteran

    Messages:
    122
    Likes Received:
    64
    First Language:
    English
    Primarily Uses:
    RMMV
    Is there a way to check if a skill is equipped? I wanna make a conditional branch in the tutorial that checks if the skill is equipped...

    If (Skill) is equipped
    Continue
    Else
    Show Text

    Is this possible?
     
    #1
  2. Jules98

    Jules98 Veteran Veteran

    Messages:
    303
    Likes Received:
    154
    First Language:
    Dutch
    Primarily Uses:
    RMMV
    Try this in the script box of the conditional branch:

    Code:
    $gameActors.actor(x).battleSkillsRaw().includes(y)
    This will return true when the actor with Id x has the skill with Id y equipped.
     
    #2
    PhxFire likes this.
  3. PhxFire

    PhxFire The Eternal Flame Veteran

    Messages:
    122
    Likes Received:
    64
    First Language:
    English
    Primarily Uses:
    RMMV
    #3
  4. Wavelength

    Wavelength Pre-Merge Boot Moderator

    Messages:
    4,217
    Likes Received:
    3,542
    Location:
    Florida, USA
    First Language:
    English
    Primarily Uses:
    RMVXA

    This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

     
    #4
Thread Status:
Not open for further replies.

Share This Page