How to Create Subspecies of Passive Skills

Hello, I hope this message finds you well. I believe there are many plugins featuring passive skills.

I would appreciate it if you could let me know if there is a plugin that allows me to create a skill where, while I am alive, it permanently boosts the attack power of all allies by 10%.

If you’re on MV, Yanfly’s Passive Aura Effects does exactly this. It needs YEP_AutoPassiveStates installed above it. Make a state with an ATK 110% trait and leave the rest empty. Then give your character a passive state with this in its notebox, where x is that ATK state’s ID:

<Ally Aura: x>

The plugin only counts members who are alive, so the buff should only be up while the source is alive. Also, a state can’t use itself as its own aura, which is why it takes two states.

I couldn’t find a plugin for MZ that does just this, so here’s a small one I think should work in either engine. Put <AllyAtkAura: 10> in the passive skill’s note, and as long as anyone alive in the party knows that skill, the whole party gets +10% ATK:

/*:
 * @target MZ
 * @plugindesc Ally ATK aura from a passive skill.
 * @help Put <AllyAtkAura: 10> in a skill's note.
 * While an alive party member knows it, the party gets +10% ATK.
 */
(() => {
    const _paramRate = Game_BattlerBase.prototype.paramRate;
    Game_BattlerBase.prototype.paramRate = function(paramId) {
        let rate = _paramRate.call(this, paramId);
        if (paramId === 2 && this.isActor()) {
            let bonus = 0;
            for (const member of $gameParty.aliveMembers()) {
                for (const skill of member.skills()) {
                    if (skill.meta.AllyAtkAura) bonus += Number(skill.meta.AllyAtkAura);
                }
            }
            rate *= 1 + bonus / 100;
        }
        return rate;
    };
})();

The number in the tag is the percent, so you can make 5% or 20% versions too. Hopefully that helps!

1 Like