Stacking the same passive state on to an actor

Discussion in 'JS Plugin Requests' started by firestalker, Jul 20, 2018.

  1. firestalker

    firestalker Veteran Veteran

    Messages:
    326
    Likes Received:
    37
    First Language:
    English
    Primarily Uses:
    RMMV
    I'm wondering if there is a way to stack a passive state on to an actor.

    Example: Passive state 1: MaxMP + 20

    Actor 1 has Passive State 1 added 3 times... Max MP = 60

    As it is now, the passive states only applies the first Passive state added and ignores the rest. Is there a way to change this?

    I'm using Yanfly's plugin if it helps
     
    #1
  2. JGreene

    JGreene Veteran Veteran

    Messages:
    367
    Likes Received:
    280
    First Language:
    English
    Primarily Uses:
    RMMV
    #2
  3. firestalker

    firestalker Veteran Veteran

    Messages:
    326
    Likes Received:
    37
    First Language:
    English
    Primarily Uses:
    RMMV
    @JGreene I tried that plugin you sent me.... it doesn't work for me at all. It just sends up an error. It's a MrT plugin and I always have problems with them. It seems to do what I'm looking for, but doesn't seems to work well with others [specifically the Yanfly plugins for States].

    Maybe someone can fix it a bit and make it work with Yanfly's plugins?
     
    #3
  4. Astfgl66

    Astfgl66 Veteran Veteran

    Messages:
    652
    Likes Received:
    498
    First Language:
    French
    You can use my flat stat bonus state plugin and use a variable to do that.
    Just increase the variable instead of reapplying the state.
    The link is in my signature.
     
    #4
  5. JGreene

    JGreene Veteran Veteran

    Messages:
    367
    Likes Received:
    280
    First Language:
    English
    Primarily Uses:
    RMMV
    @firestalker Yeah I've sometimes found little typos in his plugins, but I use them because I can fix them lol.

    If you want to use @Astfgl66 plugin, it sounds like it will work. I'll look at the other one when I get home. Sitting at the auto shop right now waiting...
     
    #5
  6. firestalker

    firestalker Veteran Veteran

    Messages:
    326
    Likes Received:
    37
    First Language:
    English
    Primarily Uses:
    RMMV
    @JGreene Thanks, I'd really appreciate it if you could. I have like no JS experience so I could be looking at a major error in the code and not even know it.

    If it helps - The error is an "Unexpected Token <" error...

    @Astfgl66 I'll check out your plugin and see if it'll work for what I'm trying to do.
     
    Last edited: Jul 21, 2018
    #6
  7. JGreene

    JGreene Veteran Veteran

    Messages:
    367
    Likes Received:
    280
    First Language:
    English
    Primarily Uses:
    RMMV
    I've put the plugin into a test project and haven't had any errors pop up. It works as intended. Can you perhaps provide a screenshot of which states you're using it on and their note fields? And maybe one from in game when the error pops up?
     
    #7
  8. firestalker

    firestalker Veteran Veteran

    Messages:
    326
    Likes Received:
    37
    First Language:
    English
    Primarily Uses:
    RMMV
    @JGreene Okay.... Let's see if I can explain this a little better.

    I'm using Yanfly's Attach Augments to attach an item with a Passive State that raises the MaxTP [using SRD TP Upgrade Plugin]. Everything works just fine for the initial attachment. But nothing changes when you attach another of the same item. Basically, the item is a MaxTP+10 = works. 2 MaxTP + 10 still equals just 10 increase not 20.

    When I add the plugin the game works fine until I attach the item that has the passive state with the notetag in it. Only after attaching the item does the error appear so only after the passive state takes effect.
    [​IMG]
     
    Last edited: Jul 21, 2018
    #8
  9. JGreene

    JGreene Veteran Veteran

    Messages:
    367
    Likes Received:
    280
    First Language:
    English
    Primarily Uses:
    RMMV
    Do you know what's on line 583 of SRD's TP Upgrade? Open that in the console and see what it shows you.

    This is what I have:

    582 for(var i = 0; i < states.length; i++) {
    583 if(states && states.tpu_mtp_change) maxTp += Math.floor(eval(states.tpu_mtp_change));

    It's possible it either isn't compatible with Yanfly's plugin, or you have them in the wrong order. Post a screenshot of your plugin order.

    Also, what's the icfsoft_srdtpdistaddon.js? Nevermind, I found it. Nothing to do with this, but could still be a compatibility issue.
     
    Last edited: Jul 21, 2018
    #9
  10. firestalker

    firestalker Veteran Veteran

    Messages:
    326
    Likes Received:
    37
    First Language:
    English
    Primarily Uses:
    RMMV
    @JGreene But the plugins work well together for the most part. It's just that passive states don't seem to stack. Other than that the plugins work well without any major problems.

    But if it'll help:
    [​IMG]
     
    #10

Share This Page