Yanfly Durability Repair w/ Variables?

Discussion in 'Javascript/Plugin Support' started by Aryn, Aug 2, 2018.

  1. Aryn

    Aryn Villager Member

    Likes Received:
    First Language:
    Primarily Uses:
    Unfortunately, although I have a little familiarity with code, I don't really understand how the plugins work in detail, so I'm not sure what I can and can't input. I think with Yanfly's Lunatic Mode at least I should be able to do this, but I'm not sure about the syntax. So, I like Yanfly's repair system a lot, but I'd like to be able to affect the repair value with a variable. (Using Yanfly's ActorVariables, the variable is a new parameter==repair skill.) The basic notetag is
    <Repair Durability: x>. I thought maybe I could simply replace x with a variable...v[x] or $gameVariables.value(x), etc., but that didn't work. So maybe I could use <Custom Repair Effect>, but I don't know what the syntax might be, and I'm not finding anything in the code that would help. I'd like it to be something as simple as:
    <Custom Repair Effect>
    item.repair += v[x]
    </Custom Repair Effect>

    Is this possible within the parameters of the plugin or elsewise? Please help; thank you!!

Share This Page