Skill that applies multiple states to different groups

Title may be a bit confusing (there's not really a concise way of explaining it, I think), but I have an example which hopefully clears things up:


Let's say I have a skill which buffs all party's members stats when used. However, the user will also get a debuff for the duration of the buff. For instance, "increases party's damage by 20% but decreases the user's defense by 20% for 3 turns", or something like that.


What are some approaches to doing this, or is there a plugin capable of adding this? I'm at a roadblock so I was wondering if anybody else had some insight.
Have you checked the damage formula thread for MV? I believe there are posts on how to do this on that thread. I don't recall off the top of my head how to do that myself, but do seem to recall reading it there.
Have you checked the damage formula thread for MV? I believe there are posts on how to do this on that thread. I don't recall off the top of my head how to do that myself, but do seem to recall reading it there.



I did peruse it a bit earlier to find things to try, but haven't had any success yet, however I will definitely keep experimenting with different things I find.
the way to do this is make a skill that targets all allies and place the buffs as an effect as normal


then activate the damage formula and use the command to add a state to the user there.


I don't know the exact syntax in case of MV, on ace that was a.add_state(ID);0 (the 0 is for zero damage)


If you don't use a state but a debuff, you have to keep in mind that this formula will be processed on every ally - which means the skill user gets the add_state several times per skill use. In the case of states that doesn't matter, because states don't stack - if you're using devuffs, those allow a two-time stacking and the debuff will be different if there is only one party member.
the way to do this is make a skill that targets all allies and place the buffs as an effect as normal


then activate the damage formula and use the command to add a state to the user there.


I don't know the exact syntax in case of MV, on ace that was a.add_state(ID);0 (the 0 is for zero damage)


If you don't use a state but a debuff, you have to keep in mind that this formula will be processed on every ally - which means the skill user gets the add_state several times per skill use. In the case of states that doesn't matter, because states don't stack - if you're using devuffs, those allow a two-time stacking and the debuff will be different if there is only one party member.



I believe this would be a.addState(#);0 for MV. I had this in place temporarily since the arbitrary '0' pop-up annoyed me in-game, but It'll have to do for now.

Original thread: https://forums.rpgmakerweb.com/threads/skill-that-applies-multiple-states-to-different-groups.69986/