How to increase a variable with a skill in battle

Discussion in 'RPG Maker MV' started by IndependenceAvenueRPG, Feb 19, 2019.

  1. IndependenceAvenueRPG

    IndependenceAvenueRPG Warper Member

    Messages:
    2
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    RMMV
    Hello everyone.

    First off I want to apologize if this post is in the wrong section!

    I am very new to this whole field and it is my first time making a game. What I am currently trying to do is make a skill that
    increase a variable's value every time the skill is used. After a certain value is reached, the variable will grant the character
    that used the original skill with a new skill. I believe this may be achievable in the formula section of the skill. Problem is
    I don't know how to formulate it correctly.

    A different example of what I am going for: Harold uses the skill called Fire Ball in battle. Each time Fire Ball is used a
    variable goes up a certain value. After the desired value is reached, the variable will unlock a new skill for Harold to
    use, like Fire Storm or something.

    Any help would be appreciated - Joey
     
    #1
  2. Poryg

    Poryg Dark Lord of the Castle of Javascreeps Veteran

    Messages:
    3,984
    Likes Received:
    10,077
    Location:
    Czech Republic
    First Language:
    Czech
    Primarily Uses:
    RMMV
    Make the skill call a common event? Can be done via the skill tab.
     
    #2
  3. Rubescen

    Rubescen Veteran Veteran

    Messages:
    75
    Likes Received:
    59
    First Language:
    English
    Primarily Uses:
    RMMV
    I don't want to discourage you from using javascript in the damage formula box to do this, but it's probably simpler to achieve this with a common event.

    Set up a common event which increases the variable associated with the skill. Each time the skill is used have the common event trigger (under effects tab 4). You can also include a conditional in the common event that checks for when the variable reaches a certain amount and grants the skill.

    upload_2019-2-18_21-35-32.png
     
    #3
  4. IndependenceAvenueRPG

    IndependenceAvenueRPG Warper Member

    Messages:
    2
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    RMMV
    Thank you ever so much, Rubescen, your simple solution was exactly what I was looking for and it worked perfectly! Have a good day my friend!

    This post can officially be considered solved.
     
    #4

Share This Page