MV YEP Action Sequences adress all allies but target

Yo!
I'd like to create a skill that targets one ally, robs them of some HP/MP and heals the rest of the party. However as far as I know the plugin does not have a notetag command to adress something Like 'all allies but target', so I guess it has to be done using lunatic mode?

That's pretty much it, any help is appreciated. Thanks in advance!
1774304423512.png

1774304438229.png

From your description I'm assuming the user is not necessarily the target of the HP drain? In which case you could go and apply a dummy state to the target, then have a conditional branch, checking your party members for that state and apply healing to any who don't have it.

If the skill is user only, it's as simple as using actors not user.
Yup, the target is not the user, but an ally. Taking a look at that list was the first thing I die, but I could not find something that would target all allies but the target.

Your solution sounds logical though, but I still need some Help. The First Part is easy, since I can simply refer to 'target' for the Drain. Then I inflict a state to it, also easy, but how do I proceed from here? i guess something like

Code:
if !target.isStateAffected(X)
//Healing Effect

But it's not "target" right? How do I refer to everyone in the party, instead of the target. Is it just

Code:
$gameParty.members()

or does is work differently here?

Sorry, all I know about Javascript comes from looking at Code snippets other people wrote, so I am mostly lost without detailed instructions x.x
all I know about Javascript comes from looking at Code snippets other people wrote
Same, hahaha! Well, I'd just check each actor because using $gameParty.members() wouldn't work. You'd be basically asking "Does anyone have *not* have this state?" and the answer would always be true since only one guy will have it.

I'm sure you could simplify it with a "for each" or something, but my scripting knowledge is too limited for that too lol. So depending on how many party members you got, just checking each one might be feasible, otherwise I'm sure one of our script guys on here can help you out with that.
A quick script of how I would do this effect. The target loses HP equal to dmg, and all party members except target gain as much HP.

JavaScript:
target.gainHp(-dmg);

user.friendsUnit().aliveMembers().forEach(member => {

if (member !== target){
member.gainHp(dmg);
}
});

Original thread: https://forums.rpgmakerweb.com/threads/yep-action-sequences-adress-all-allies-but-target.182993/