Yanfly Skill Mastery Levels Attack Question

Discussion in 'Javascript/Plugin Support' started by TracerD, Jul 29, 2019.

  1. TracerD

    TracerD Author #719 Member

    Messages:
    2
    Likes Received:
    2
    Location:
    United States
    First Language:
    English
    Primarily Uses:
    RMMV
    I'm currently using Yanfly's Skill Mastery Levels plugin for some of my skills including the attack command. The player can level the attack skill up to level 50, levelling up every 3 times they use the skill. Is there any way to make a command to view what the current level of the attack skill is? I want the player to have access to this, since switching around party members to strengthen their skills is pretty vital to my project.
    (Using MV)
    Thanks in advance!
     
    #1
  2. TracerD

    TracerD Author #719 Member

    Messages:
    2
    Likes Received:
    2
    Location:
    United States
    First Language:
    English
    Primarily Uses:
    RMMV
    Bump
     
    #2
  3. Magusalfador

    Magusalfador Veteran Veteran

    Messages:
    197
    Likes Received:
    31
    First Language:
    English Spanish
    battler.skillMasteryLevel(skillId)
    where battler is the actor and skillId is...well, the skill Id. That will return the current level of the skill.

    for example, if you want to know the level of the attack command of your hero(actor1) you use script:
    masterLvl = $gameActors.actor(1).skillMasteryLevel(1);

    That will store the level of the skill in variable masterLvl . Or if you prefer you can use ingame variables, like:
    $gameVariables.setValue(1, $gameActors.actor(1).skillMasteryLevel(1))

    That command is on the helpfile of the plug in, there are another useful calls like, adding uses to the skills or resetting them, etc.

    hope it helps!
     
    #3
  4. Psykan

    Psykan Warper Member

    Messages:
    4
    Likes Received:
    1
    First Language:
    Portuguese
    Primarily Uses:
    RMMV
    I have passive skill and i want they up levels like skill mastery, but how i can't use the magic is
    a passive state the skill didn't up level :aswt2:. Can u help me plz
    upload_2019-9-1_2-7-36.png
     
    #4

Share This Page