Help for a battle skill that applies a debuff using a common event.

So here's what I'm thinking of: I want to implement a skill called "Subjugate". This skill is an ability exclusively held by enemies in my game, which will decrease defense of the player.

Now here's the kicker: the big twist of this skill is that depending on how many enemies are in the troop the player is facing, more debuffs can be added, or the effects of already applied debuffs can be made worse.

What I had originally thought was to simply have the skill call a common event, use a script to count how many enemies are in the troop, then apply the debuff to all characters in the player's party depending on the conditions. I got through the first two steps just fine, but applying the debuff has proven difficult.

I first tried a script call to target the party, but I only got errors.

Is there something I'm missing? Am I going about this all wrong? Is there a different way to implement it? Any help would be greatly appreciated!
I first tried a script call to target the party, but I only got errors.

Is there something I'm missing? Am I going about this all wrong? Is there a different way to implement it? Any help would be greatly appreciated!

to tell you where you went wrong, youd have to show us what youve done. Errors dont happen because of magic. Theyre caused by making mistakes. theres other routes to take to make that effect, but a common event can do it.
So it's applying the debuff that's the issue? You using the "change actor state" event?
You using the "change actor state" event?
That command only adds states. event commands alone cant apply buffs or debuffs. a script call has to be used if its being done from a common event
That command only adds states. event commands alone cant apply buffs or debuffs. a script call has to be used if its being done from a common event

Unless I'm misunderstanding something isn't that what a buff/debuff is? A state?

I've used common events to apply states before?
states and buffs/debuffs are entirely different mechanics within the engine
1737372084948.png
1737372087557.png

1737372182995.png

Original thread: https://forums.rpgmakerweb.com/threads/help-for-a-battle-skill-that-applies-a-debuff-using-a-common-event.174835/