Hi guys, i trying made a sharpness system for the weapons, but all the way i did don' gave the correct result and sometime don't even worked, i would like that each weapon have differente level of sharpness, and everytime use attack/skill you lose sharpenss, i tried use the sharpness as TP cuz my game don't use and i think could work correctly TP = Sharpness, but with conditional branch i can't take the TP Value for show the icon in game, have a way to do?
Sorry for my english.
If you have Yanfly plugins, you can use his 'item durability' plugin for this (just make the items unbreakable if that's what you want).
Yeah, you should be able to get the durability value of the weapon with a script and then you can have a passive state on the weapon that modifies the damage value, or some other solution.
I think it's like for your state notetag (here I just modify the damage value by division, using start and max value of durability 100):
<Custom Confirm Effect>
if (this.isPhysical())
value *= (user.equips()[0].durability / 100);
</Custom Confirm Effect>
Put the state on the weapon as a passive state (you'll need the passive states plugin). Maybe there's other ways too, but I think this is one way of doing it.
EDIT: Changed the notetag to Confirm + changed target to user. I think that one's more correct? 😀 Also added the if this is physical check.
could be work this formula?
(a.atk * 2 + a.weapon()[0].durability) - b.def
i guess the [0] is the slot weapon no? cuz the skills are assigned to the weapons not to the chars