Formula for Gaining Yanfly Party Gauge?

Discussion in 'Javascript/Plugin Support' started by esterk, Jan 9, 2019.

  1. esterk

    esterk Lovable Rogue Veteran

    Messages:
    174
    Likes Received:
    134
    First Language:
    English
    Primarily Uses:
    RMMV
    Hey everyone,

    I am currently using Yanfly's Party Gauge plugin (http://yanfly.moe/2016/02/06/yep-67-party-limit-gauge/) in my game. However, I wanted to design a formula so that if a player hits an enemy weakness, they will gain extra party gauge. I believe the correct formula for this is something like

    if (b.elementRate(x) > 1) {100 + a.mat * 2 - b.mdf * 2 + $gameParty.gainPartyLimitGaugeIncrement(x); 100} else {100 + a.mat * 2 - b.mdf * 2}

    First off - is this correct?

    Second off - is there an easier way to do this so that I don't need to put this into EVERY formula box? Perhaps using Yanfly Auto Passive States (http://yanfly.moe/2015/10/17/yep-13-auto-passive-states/) or another plugin that can somehow just make this a passive function?

    Any advice is much appreciated! Thanks in advance!
     
    #1
  2. esterk

    esterk Lovable Rogue Veteran

    Messages:
    174
    Likes Received:
    134
    First Language:
    English
    Primarily Uses:
    RMMV
    Bumping this to try and get some help with this formula! :)
     
    #2
  3. VeryXInh

    VeryXInh Veteran Veteran

    Messages:
    47
    Likes Received:
    45
    First Language:
    Japanese
    Primarily Uses:
    RMXP
    i will explain why no one help you, it's because of this is more complex than you think.
    Each enemy can have many elements with different rate, how could one single formula can handle
    that much?
     
    #3
  4. esterk

    esterk Lovable Rogue Veteran

    Messages:
    174
    Likes Received:
    134
    First Language:
    English
    Primarily Uses:
    RMMV
    Could I not just have a passive state for each element using Yanfly's plugin?
    If not, is the first formula I posted the easiest way to do this then?
     
    #4
  5. esterk

    esterk Lovable Rogue Veteran

    Messages:
    174
    Likes Received:
    134
    First Language:
    English
    Primarily Uses:
    RMMV
    #5

Share This Page