How to increase a parameter when state expires

Discussion in 'RPG Maker MV' started by Gargoyle77, Aug 10, 2019.

  1. Gargoyle77

    Gargoyle77 Veteran Veteran

    Messages:
    47
    Likes Received:
    2
    First Language:
    English
    Primarily Uses:
    RMMV
    Hello, everyone! Well, what I want to do is basically what the title says. I need a way to increase a certain parameter by x points when certain state expires. Thanks for reading!
     
    #1
  2. Poryg

    Poryg Pixie of the Emvee kingdom, Ham of a Hamster Veteran

    Messages:
    3,777
    Likes Received:
    9,440
    Location:
    Czech Republic
    First Language:
    Czech
    Primarily Uses:
    RMMV
    You'd want to use Yanfly's buffs and states core with a remove effect:
    user._paramPlus[paramIndex, where 0 is max HP and 7 is luck - you can see the params inside Database->classes] += x;
     
    Last edited by a moderator: Aug 10, 2019
    #2
    Wavelength and Gargoyle77 like this.
  3. Wavelength

    Wavelength Pre-Merge Boot Moderator

    Messages:
    4,054
    Likes Received:
    3,385
    Location:
    Florida, USA
    First Language:
    English
    Primarily Uses:
    RMVXA
    @Poryg's solution is good. Put that line inside a <Custom Remove Effect> notetag once you've installed the Buffs & States Core.

    I modified the color of the "comment" to make the code line itself more clear (hope you don't mind, @Poryg! Change it back if you hate it).
     
    #3
    Gargoyle77 and Poryg like this.
  4. Poryg

    Poryg Pixie of the Emvee kingdom, Ham of a Hamster Veteran

    Messages:
    3,777
    Likes Received:
    9,440
    Location:
    Czech Republic
    First Language:
    Czech
    Primarily Uses:
    RMMV
    No stress, it looks pretty good in the dark theme. I think I might type using orange as my default color! :D
     
    #4
    Wavelength likes this.
  5. Gargoyle77

    Gargoyle77 Veteran Veteran

    Messages:
    47
    Likes Received:
    2
    First Language:
    English
    Primarily Uses:
    RMMV
    Thanks. This worked perfectly!
     
    #5

Share This Page