MV - Yanfly Durability Repair w/ Variables?

● ARCHIVED · READ-ONLY
Started by WillowWren 3 posts View original ↗
  1. 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!!
  2. Bumping because I was going to ask the same thing - and hilariously enough already tried the exact same thing with the $gameVariables.value(x)
  3. I FIGURED IT OUT :D
    At least I think I did. Replace the XXX with the variable number you want to add to the item's durability.

    Code:
    <Custom Repair Effect>
    item.durability += $gameVariables.value(XXX);
    </Custom Repair Effect>

    Now, I'm no code junkie so if anyone knows more about scripting than my essentially 0 knowledge in this area, please let me know if the code can be made any better. It seems to work for now, though!