$gameParty.x(y) used in damage formula or Alternative methods plz

hi, im trying to figure out how to use $gameParty in damage formula. but i dont think you can use it since its a script call. what im trying to do is reference party and do lots of interesting things with the damage formula, like addState(x) or addBuff(x,y) or addDebuff(x,y). but i dont know if you can reference party in damage formula, can you? if so how?


$gameParty.x(value) is all i know but wont work in damage formula in any way i try. please help.
There is a whole pinned thread where you can post to get help with damage formula.  I suggest you look through it (it's very long, which means LOTS of ideas) and see if you can figure things out.


If you can't, then you need to be more specific about what you want to do.  The damage formula has access to the user and target or a skill or item by default, but you can still do things with other party members.  However, in order to tell you what commands to use, we need to know more about what you're trying to do.


There is no such thing as $gameParty.x so $gameParty.x(value) won't work either.
i went through the pinned thread on damage formulas before i posted this. no one mentions referencing party members in damage formula. so i decided to seek help.


example.


(party).addBuff(x,y); b.addDebuff(x,y); b.mhp; - using HP Recover formula to target all enemies.


im trying to create a skill called "Balance" where it targets everyone, giving party buffs, and enemy debuffs. while 100% healing all the enemies. i plan to addBuff for all 7 stats and addDebuff for all 7 stats. so what would i put in place of (party) above??

so i somehow overlooked yanfly's target core. the target everyone does the trick. now im abusing it hahah

Original thread: https://forums.rpgmakerweb.com/threads/gameparty-x-y-used-in-damage-formula-or-alternative-methods-plz.73542/