Ah, that's a total goof on my part. If you want to use the damage formula to add this effect from the weapons you will need to check the actor has it equipped. The best check to use for this would be
Now to get that into damage formulas with the above would look something like this:
It's messy, but it should work in your skills damage formula.
Code:
a.hasWeapon($dataWeapons[id])
//where id = weapons database idNow to get that into damage formulas with the above would look something like this:
Code:
if (a.hasWeapon($dataWeapons[weaponId]) && (b.isStateAffected(confusedId) || b.isStateAffected(blindId) || Math.randomInt(100) < 25)) {b.addState(stunId)}; damageFormulaIt's messy, but it should work in your skills damage formula.
Thank you! I will try to put this and see if it works ^^
