Making skills do more/less damage depending on states the target has?

Discussion in 'RPG Maker MV' started by ALTERED STATE ?, Apr 3, 2016.

  1. ALTERED STATE ?

    ALTERED STATE ? They/Them Veteran

    Messages:
    183
    Likes Received:
    271
    First Language:
    English
    Primarily Uses:
    RMMV
    How can I make a skill/anything that can inflict damage do more/less/no damage depending what State(s) the target


    Preferably without Events, Using Yanfly's Buff & States Core Lunatic Mode


    I have no skill in JavaScripting


    (Yes I did search but I didn't find anything, could have been the phrases)
     
    Last edited by a moderator: Apr 3, 2016
    #1
  2. bgillisp

    bgillisp Global Moderators Global Mod

    Messages:
    12,064
    Likes Received:
    12,234
    Location:
    USA
    First Language:
    English
    Primarily Uses:
    RMVXA
    This has worked so far for me. Post this code in the notes section of the state you wish to reduce the damage the target takes:


    <Custom React Effect>


    value -= 25;


    </Custom React Effect>


    If you wish it to be more damage, change the - to +. Change the 25 to whatever amount of damage you wish blocked.


    If you need it to block a percent of damage instead, you'll need someone a little more proficient in JavaScript than me, though I think it could be easily edited to do that instead.


    For no damage, just make the state give an element rate of 0 to whatever element the skill is you wish to have do no damage. No need for lunatic code for that one.
     
    Last edited by a moderator: Apr 3, 2016
    #2
  3. Victor Sant

    Victor Sant Veteran Veteran

    Messages:
    1,694
    Likes Received:
    1,434
    Location:
    Brazil
    First Language:
    Portuguese
    Why not simply add an element to the skill and make the state change the resistance against that element?
     
    Last edited by a moderator: Apr 3, 2016
    #3
    ALTERED STATE ? likes this.
  4. ALTERED STATE ?

    ALTERED STATE ? They/Them Veteran

    Messages:
    183
    Likes Received:
    271
    First Language:
    English
    Primarily Uses:
    RMMV
    Because I have the world's largest brain and didn't think of that
     
    #4

Share This Page