can i deal variable damage with a common event?

i want to have an attack that damages everybody on the field, friend and foe alike. it seems that the best way for me to do this is for the attack to damage every enemy, but also call a common event that damages every party member. this will hopefully work around the lack of an 'all battle participants' option.
i've gotten as far as event commands > change hp > entire party > decrease, but i'm not certain how to input a damage formula. i assume that i'll set a variable of [character who uses the move]'s MATK divided by target's MDEF times whatever number i end up plugging in to the formula and blah blah, but i don't think i can actually put that formula anywhere? i assume i assign a variable to it, but i can barely figure out how to access those, let alone set them as anything. and if i'm overcomplicating things needlessly and this isn't the right way to go about the process at all, is there another way that i can make a skill affect every single battle participant?
You should be able to have the common event call Force Action and force a skill to be used. (You'd need to make 2 versions of the "Damage All" skill, one that targets all enemies and one that targets all allies)

Untitled.png
Hate to be That Guy No, screw it, I love being that guy.

Yanfly's target manager will allow you to do that and more, which would allow you to account for stuff like elemental resistance, defense, etc. all the easier.


I know it's not an exact answer to your question, but it's done wonders for me.
You should be able to have the common event call Force Action and force a skill to be used. (You'd need to make 2 versions of the "Damage All" skill, one that targets all enemies and one that targets all allies)

View attachment 151773
sweet, thanks! as far as i can tell that should work exactly how i want it to.

Original thread: https://forums.rpgmakerweb.com/threads/can-i-deal-variable-damage-with-a-common-event.124213/