making a skill to buff allies and debuff enemies

I think the title explains it enough, but basically I want to make a skill that raises the stats of the party and also lowers the stats of the enemies. Obviously, that's not exactly an option listed in the "scope" menu, so I'd like to know how/if I can make a skill like this.

I'd prefer not to use an additional plugin, since I'm only doing this for one skill, but it makes sense if I have to. I also need the skill to be usable by enemies to affect the party.

The plugins I'm currently using, just in case they can do this and I just don't know, or if they'd cause a conflict with a plugin someone might suggest:
  • Yanfly Core
  • Eli Book
  • Eli mini map
  • Yanfly Quest Log
  • MOGhunter Picture Gallery
  • Szyu's crafting system
I'd prefer not to use an additional plugin, since I'm only doing this for one skill, but it makes sense if I have to. I also need the skill to be usable by enemies to affect the party.
strictly speaking, you could make 2 skills and a common event for each that loops over the party and troop separately and (de)buffs each member via scriptcall.

id sooner either use the skill core to make the skill self targeting and have it buff the user's friend unit and debuff the opponents unit after eval, or use the skill core alongside the target core to have it actually target all battlers and then (de)buff them accordingly if theyre a friend or not.
id sooner either use the skill core to make the skill self targeting and have it buff the user's friend unit and debuff the opponents unit after eval, or use the skill core alongside the target core to have it actually target all battlers and then (de)buff them accordingly if theyre a friend or not.
I assume these are Yanfly plugins you're talking about? I'll have to take a look at them
I assume these are Yanfly plugins you're talking about?
yeah, my bad. i meant to highlight you saying
  • Yanfly Core
when i mentioned those plugins.
afaik, the only way to get the skill to actually select and target battlers, youd need the target core. if that visual feedback isnt an issue and you dont mind the side effects of the skills not actually targeting anything like not being able to miss or be reflected/counter/deal damage as an action at all, then the common event can work
Code like this will do what you're asking:
Code:
$gameParty.aliveMembers().forEach(actor => actor.addBuff(2, 3));
$gameTroop.aliveMembers().forEach(enemy => enemy.addDebuff(3, 3));
That will add an attack buff to all actors and a defense debuff to all enemies, 3 turns each.

Adjust the parameter IDs and turn counts to your preference.

As @Robro33 said, the best place for this would be in a Skill Core notetag or embedded in an Action Sequence so it happens during the skill, but you could call a common event and stick it in a Script box there.

Original thread: https://forums.rpgmakerweb.com/threads/making-a-skill-to-buff-allies-and-debuff-enemies.174187/