Yanfly's attachable augments to affect Yanfly's weapon durability

Discussion in 'JS Plugin Requests' started by kwanzaabot, Jan 4, 2019.

  1. kwanzaabot

    kwanzaabot Veteran Veteran

    Messages:
    60
    Likes Received:
    11
    First Language:
    English
    I'm using both Yanfly's Attachable Augments and Yanfly's Item Durability and I was disappointed to learn that they don't seem to natively support each other. Which I think is a massive missed opportunity!

    I'm looking for a script that will allow me to create weapon and armour Augments that can increase the total Durability of a weapon or armour. Anyone interested?

    [​IMG]
     
    #1
    Maliki79 likes this.
  2. Maliki79

    Maliki79 Veteran Veteran

    Messages:
    591
    Likes Received:
    216
    Location:
    New Jersey
    First Language:
    English
    Primarily Uses:
    N/A
    Updated my Durability EX Plugin to allow changes to Max Durability.

    Check it out here:


    To make the change via Augments, just try:
    Code:
    <Upgrade Effect>
    Eval: item.durMax += x;
    </Upgrade Effect>
    Where x is the amount of the change.
    (You can't make durability go below 1.)
     
    #2
  3. kwanzaabot

    kwanzaabot Veteran Veteran

    Messages:
    60
    Likes Received:
    11
    First Language:
    English
    I'm having some trouble getting that notetag to run.
    I've added
    Code:
    <Upgrade Effect>
    
    Eval: item.durMax += 25;
    
    </Upgrade Effect>
    
    underneath the <Augment: type> tag from Yanfly's script, and it doesn't seem to do anything. The durability of my weapon stays the same.
     
    #3
  4. Maliki79

    Maliki79 Veteran Veteran

    Messages:
    591
    Likes Received:
    216
    Location:
    New Jersey
    First Language:
    English
    Primarily Uses:
    N/A
    You have to use

    <Augment Attach Eval: type>
    item.durMax += 25;
    </Augment Attach Eval: type>

    And BTW:

    <Augment Detach Eval: type>
    item.durMax -= 25;
    </Augment Detach Eval: type>
     
    #4
  5. kwanzaabot

    kwanzaabot Veteran Veteran

    Messages:
    60
    Likes Received:
    11
    First Language:
    English
    Hmm, yeah, I tried that too. Still not working.
    Tried disabling all my plugins, too.
     
    #5
  6. Maliki79

    Maliki79 Veteran Veteran

    Messages:
    591
    Likes Received:
    216
    Location:
    New Jersey
    First Language:
    English
    Primarily Uses:
    N/A
    Then it might be where you placed the plugins.
    Mine has to be DIRECTLY under YF Dura Plugin.
    I'm not exactly sure where the Augment one needs to be in relation to the others tho...

    And then of course you have to make sure you are following the original instructions for the plugins.
    (i.e. renaming TYPE to the augment type)

    And just for the sake of me saying so, remember that you have to start a new save when making these kinds of changes.
     
    #6

Share This Page