After lots of headache with figuring out how to repair equipment to a variable, changing around how I handle it via common events, I finally figured out that I could've just put
in the repair item's notetags. Waaaay easier than conditional branches checking the variable in an event. Only problem with that code is that it can repair items waaay past their max durability.
So, I need help making the repair effect only repair specific equipment types per repair kit - light armors, heavy weapons, etc. The notetag for that seems to be
but I'm having trouble figuring out the syntax for the custom repair effect checking the weapon/armor type in the repair kit item?
Basically I want a Light Armor Kit to repair only Light Armor types by adding variable 32 to the armor's durability and stopping at the item's Max Durability. And then I can switch it around for Heavy Armors and then get to making weapon repair kits for the different weapon types.
Also on a side note while I'm asking, if I want the Light Armor Kit to repair light armors by variable 32 + variable 22 also how would I put that math function in code?
Code:
<Custom Repair Effect>
item.durability += $gameVariables.value(32);
</Custom Repair Effect>
So, I need help making the repair effect only repair specific equipment types per repair kit - light armors, heavy weapons, etc. The notetag for that seems to be
Code:
<Repair WType x: y>
<Repair AType x: y>
Basically I want a Light Armor Kit to repair only Light Armor types by adding variable 32 to the armor's durability and stopping at the item's Max Durability. And then I can switch it around for Heavy Armors and then get to making weapon repair kits for the different weapon types.
Also on a side note while I'm asking, if I want the Light Armor Kit to repair light armors by variable 32 + variable 22 also how would I put that math function in code?