Condition for the durability

I can't give you values that would work best for your game as I wouldn't know, but you could try something like this. This allows the Skill to decrease in damage as durability drops:

updated
JavaScript:
a.atk * (a.weapons()[0].durability / a.weapons()[0].durMax) - b.def
$gameParty.members()[a.index()]
Is this not just a?

it would be easier to use this as the example, no?
Code:
a.atk * (a.weapons()[0].durability / a.weapons()[0].durMax) - b.def
Is this not just a?

it would be easier to use this as the example, no?
Code:
a.atk * (a.weapons()[0].durability / a.weapons()[0].durMax) - b.def
Yep, you're right. I didn't realize you could do it that way. I updated my post.

Original thread: https://forums.rpgmakerweb.com/threads/condition-for-the-durability.169211/