I am wanting to recreate Devoted Sacrifice from Unison League which is
To translate into RM words:
My question is how can I create this in MV?
To translate into RM words:
My question is how can I create this in MV?
I'm not familiar with Unison League, so let's go with an example to clarify what you're seeking. Say Harold and Therese are adventuring toegther. Harold has 1 x atk buff, 2 x def buff, and 1 x luk debuff, while Therese has 1 x atk buff, 1 x def debuff, and 1 x agi buff. If Harold uses this skill, do you expect Therese to end up with:
I think you'd need a plugin. This one looks worth a try: https://forums.rpgmakerweb.com/index.php?threads/random-repeats.49476/
Try putting this for the skill's damage formula:
Math.randomInt(2) === 0 ? a.atk * 4 - b.def * 2 : a.mat * 4 - b.mdf * 2
<Post-Damage Eval>
for (var p = 0; p < user.buffLength(); p++) {
if (!user.isBuffAffected(p)) continue;
if (target.buff(p) >= user.buff(p)) continue;
var t = Math.max(target._buffTurns[p], user._buffTurns[p]);
for (var n = (user.buff(p) - target.buff(p)); n >= 0; n--) {
target.addBuff(p, t);
}
}
</Post-Damage Eval>
<Post-Damage Eval>
for (var p = 0; p < user.buffLength(); p++) {
if (!user.isBuffAffected(p)) continue;
if (user == target) continue;
var t = Math.max(target._buffTurns[p], user._buffTurns[p]);
for (var n = user.buff(p); n > 0; n--) {
target.addBuff(p, t);
}
}
</Post-Damage Eval>

Original thread: https://forums.rpgmakerweb.com/threads/help-creating-this-skill-please.95818/