Sharpness System

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).
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).
and have a possiblity that in base of sharpness the weapon have increase/decrease damage or attak parameter?
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.
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.
Do u have some guide/video/screenshot for how do the script or this process? :/
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.
There's no particular need to go through passive states and state notetags, just put it into the damage formula.

a.weapons()[0].durability gets the attacker's weapon's durability. Incorporate it into your damage formula however you like, just make sure the skill can't be used by enemies or unarmed actors.

You might benefit from this thread:
There's no particular need to go through passive states and state notetags, just put it into the damage formula.

a.weapons()[0].durability gets the attacker's weapon's durability. Incorporate it into your damage formula however you like, just make sure the skill can't be used by enemies or unarmed actors.

You might benefit from this thread:
@rpgLord69 thanks guys, now i try
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

Original thread: https://forums.rpgmakerweb.com/threads/sharpness-system.169120/