MZ Weapons that debuff

Is there a way to give weapons the possibility to inflict debuffs, preferably with a chance %?
I'm also using Visustella.
Is there a way to give weapons the possibility to inflict debuffs, preferably with a chance %?
I'm also using Visustella.
Can you describe what you're after with some detail?
Debuff on yourself? Debuff on target?
Is the debuff added by any attack as long as weapon is equipped?
Is the debuff added by attacks which are (physical) -- the weapon has to make contact/inflict damage?
Debuff on yourself?

Nope.

Debuff on target?

Yep.

Is the debuff added by any attack as long as weapon is equipped?

Ideally better with a % (may also be 100%).

Is the debuff added by attacks which are (physical) -- the weapon has to make contact/inflict damage?

Physical as in a skill? No, only if the weapon is used, and hits its target.
Much like a normal skill in reality.
I'm surprised MZ allows weapons to natively inflict states, but not debuffs.
You don't even need plugins for this, you can just make a state with the appropriate debuffs and have the weapon have a chance to inflict that state 🙂
You don't even need plugins for this, you can just make a state with the appropriate debuffs and have the weapon have a chance to inflict that state 🙂
This won't actually work. States allow you to manipulate the chance of having a debuff inflicted, but can't inflict debuffs themselves.

There is a way to do it via VS notetags, though. Give me a bit and I'll grab the syntax for you.
its target.addDebuff(paramId, turns)

paramId's
0 = maxHP
1 = maxMP
2 = ATK
3 = DEF
4 = MAT
5 = MDF
6 = AGI
7 = LUK

so,
Code:
target.addDebuff(0, 5)
will debuff max HP for 5 turns

50% chance to apply Debuff
Weapon note:
Code:
<JS Post-Apply as User>
chance = Math.randomInt(10);
if (chance >= 5 && target.result().hpDamage > 0) {
target.addDebuff(0, 5);
}
</JS Post-Apply as User>
Hi there!

It need to be specific a buff/debuff?
Because maybe you can workaround with a state doing it like that:
1664123461367.png


If the Attack of the battler is 10.
When this state is applied, it will be 2.
Then you can set a Auto-removal timing.
There is a way to do it via VS notetags, though. Give me a bit and I'll grab the syntax for you.

Thanks! 👍

It need to be specific a buff/debuff?

Yep this is specifically what I want. Basically that weapons have the same possibility as skills.

@NaosoX

Will try it, thanks!

Original thread: https://forums.rpgmakerweb.com/threads/weapons-that-debuff.151545/