When hitting 3 or more enemies in a single attack, Mana +20%.
How to recreate this in rpg maker mv, using yanfly plugins
I tried this way but without success.
How to recreate this in rpg maker mv, using yanfly plugins
I tried this way but without success.
Code:
<Custom Conclude Effect>
var hits = 0;
for (var i = 0; i < targets.length; i++) {
if (targets[i] && targets[i].result().isHit()) {
hits++;
}
}
if (hits >= 3) {
var gain = Math.floor(user.mmp * 0.20);
user.gainMp(gain);
}
</Custom Conclude Effect>