MV YEP ActionSeq: Splash Damage

This is for MV:

I found an action sequence that is doing, pretty much, what I want (thanks to those on this thread HERE). However; how I have the first part of the sequence setup (target action) is a physical attack that does lightning damage. The character jumps to the enemy and attacks. This is great. When I set up the next series of sequences (Custom Target Eval & Pre-Damage Eval), they're actually making the character just jump to each enemy in that row, attacking them, as well.

What I want the skill to do is attack the target the player selects, and then just have the lightning animation and action effect hit the other enemies. I don't want the player to jump to each additional target and physically attack. Does anyone know how I can update the action sequence below to accomplish this?

<target action>
SE: Battle_R3-M1_Sword Attack1, 100, 100, 0
SE: Battle_Damage_Electric, 100, 100, 0
move user: target, base, 8, auto offset x -50
motion SWING: user
WAIT: 10
animation 162: user
action animation: target
SE: Battle_Damage1, 100, 100, 0
action effect
if !target.result().missed && !target.result().evaded
...
ELSE
...
END
</target action>

<Custom Target Eval>
targets.push(target);
target.addState(55);
var members = foes.aliveMembers();
members.splice(members.indexOf(target), 1);
targets.push(...members);
</Custom Target Eval>

<Pre-Damage Eval>
if (!target.isStateAffected(55)) value *= 0.5;
</Pre-Damage Eval>
It's a paid plugin unfortunately, but Irina's Action Sequence Impact plugin includes a function for action sequences to target the next or previous battler in the lineup, which may simplify things for you considerably.
It's a paid plugin unfortunately, but Irina's Action Sequence Impact plugin includes a function for action sequences to target the next or previous battler in the lineup, which may simplify things for you considerably.
Thank you for this. I'm not opposed to paying for plugins that make my job easier 🙂 Irina does some amazing work, I'd love to support them. I'll check this out. Thanks for this! 😂
The thing you're doing wrong is a very common mistake with multi-target skills (which has a bunch of existing threads about it, which is okay 😉 ) - and you can see exactly what it's doing in your game.

Your complaint - you don't want to have your actor move to each enemy as they get hit.

You can see this is because your target action is getting executed for each target that your skill hits.

So, logically, take your movement out of the target action. Move those lines with move user and swing and such into your setup action and just leave the damage and animation in the target action
The thing you're doing wrong is a very common mistake with multi-target skills (which has a bunch of existing threads about it, which is okay 😉 ) - and you can see exactly what it's doing in your game.

Your complaint - you don't want to have your actor move to each enemy as they get hit.

You can see this is because your target action is getting executed for each target that your skill hits.

So, logically, take your movement out of the target action. Move those lines with move user and swing and such into your setup action and just leave the damage and animation in the target action
Just a quick question. I have my skill set up the way you said. I didn't even think of doing it that way. Thanks!

The issue I'm having now, though... the player character isn't going to the selected target. Instead... he's just going to the bottom target, and the damage is hitting all characters (which I want it to do). I just can't figure out why the character isn't moving to the actual enemy they target. Here's how I have it set up.

I believe it's something within the <custom target eval> When I test the skill removing that... it moves the player to the intended target.

Spoiler: Screenshot Example
1654488807348.png

Select the middle enemy...

1654488892505.png

They attack the bottom enemy. This happens no matter who I target in battle.



<setup action> SE: Battle_R3-M1_Sword Attack1, 100, 100, 0 SE: Battle_Damage_Electric, 100, 100, 0 move user: target, base, 8, auto offset x -50 motion SWING: user WAIT: 10 animation 162: user </setup action> <target action> action animation: target SE: Battle_Damage1, 100, 100, 0 action effect if !target.result().missed && !target.result().evaded ... ELSE ... END </target action> <Custom Target Eval> targets.push(target); target.addState(55); var members = foes.aliveMembers(); members.splice(members.indexOf(target), 1); targets.push(...members); </Custom Target Eval> <Pre-Damage Eval> if (!target.isStateAffected(55)) value *= 0.5; </Pre-Damage Eval>
I believe it's something within the <custom target eval> When I test the skill removing that... it moves the player to the intended target.
Yes...I'd have to look it up, but I'd guess from your description the action sequence goes through the target list in order of enemy index.

What precisely is the point of the custom target eval? You could add the state in the action sequence, so it looks like it's just a bit of a complicated way to make the skill target all enemies. Correct?

Original thread: https://forums.rpgmakerweb.com/threads/yep-actionseq-splash-damage.148233/