(Yanfly Plugins) Creating Poison State based on origin stats.

Discussion in 'Javascript/Plugin Support' started by Servidion, Jul 23, 2016.

  1. Servidion

    Servidion Last Soul Keeper Veteran

    Messages:
    233
    Likes Received:
    26
    Location:
    Alberta, Canada
    First Language:
    English
    Primarily Uses:
    RMMV
    So I an hoping to obtain information on two things.


    The first thing is how do I dictate that I want the origin's stat to be taken into consideration for the damage?


    The second thing is how do I force an element (eg: poison) for the damage dealt?


    I'm sure this is wrong since it doesn't work, but this is what I have.


    <Custom Regenerate Effect>


    var value = Math.floor(1.2 x origin.mat * -1);


    user.gainHp(value);


    </Custom Regenerate Effect>


    I used to use Elly's State Damage to accomplish this, but I recently discovered compatibility issues between it and Yanfly's plugins.
     
    Last edited by a moderator: Jul 23, 2016
    #1

Share This Page