MZ Force Action/s on Skill Use

This one is weird.
During battle, upon selecting the command "ExampleSkill", I want the Actor to do three things (in order):
  1. Attack itself with a different, specific skill (not decided by the player)
  2. Perform ExampleSkill as normal
  3. Attack itself with another different, specific skill (not decided by the player)
I recall there being some some way to have one Skill perform multiple actions back in MV with the Action Sequences plugin, but I'm struggling to find a similar solution in MZ.

I do have the VisuMZ Battle Core plugged in, so I can use <JS Pre-Start Action> to inject code before the rest of the skill plays out proper, I just don't know what to put here.
The VisuStella Battle Core includes Action Sequences. That's how I would implement it.

Trying to actually do it the way you describe with discrete, forced actions would result in screwy things happening, I suspect.

But it's fast to Google the script call for force action, if you want to try it.
For anyone wondering, the code for Force Action is this:
$gameParty.members()[index].forceAction(skillId, targetIndex);
Wasn't sure if the MV one would work but it does.

I'm putting this here because I have once again been bamboozled by the spreadsheet, which doesn't actually contain this code. I am having really bad luck with that, it seems.

I've since managed to put something together, however it's dawning on me that the RMMZ version of action sequences seems to be missing some things or I cannot find them.

My solution currently looks like this:
<JS Pre-Damage> $gameVariables.setValue(7,BattleManager._action._targetIndex) BattleManager._subject.forceAction(5, BattleManager._subject) </JS Pre-Damage>
This is a dummy skill used to select a target for the actual attack, which comes in after the self hit.
For some reason, BattleManager._action._targetIndex returns [object Object] if used anywhere before Pre-Damage, and so the dummy skill always needs to both do at least some damage (even if 0) and physically hit the target with the damage popup for the rest of it to function.

I recall the MV version having a BREAK ACTION notetag that would allow for interrupting this usual flow; you could queue up a bunch of skills and have them all be performed in sequence whilst skipping their startup animations and whatnot.

As this is still related to the initial post, I'll ask if it is possible to either:
  • Use BattleManager._action._targetIndex or otherwise determine the target of a skill before the skill has begun any animations.
  • Break a skill's animation sequence so that the dummy hit is (mostly) invisible to the player.
Any help would be greatly appreciated, even if the answer is just "lol go back to mv"

Original thread: https://forums.rpgmakerweb.com/threads/force-action-s-on-skill-use.164850/