MZ Force Actions not being carried out no matter what?

As per the title, I was working on a skill that inflicts a state onto the user causing them to emit lightning damage to all enemies every turn. I was using a Force Action for this, but it seems that no matter what (with script call or just regular event command) not a single Force Action actually gets carried out, even those that aren't tied to said skill. I've tried turning several of my plugins on and off (especially any that aren't Visustella's, and I'm using most of the plugins they have available). Googling the issue pointed me towards the OTB plugin (turning it off didn't help) or the Battle Core, which doesn't have any settings related to it as far as I'm aware, and the game depends too much on it at this point. Does anyone have any idea which of their other plugins could be causing this, and/or know a possible fix to this? I know I could probably get around the issue by using troop events instead if I really have to, but it wouldn't fix the original issue and would kinda waste switch slots 😅
Very difficult to offer suggestions without seeing your code.

Aside from that, I generally consider Force Action to be a last resort because of how it interacts in various battle systems and can mess with actors' turns.

Unless you need actual action sequence programming to happen with people moving around, you should be able to do this simply from a state notetag.

But, again, we'd need to see what you're trying to do.
The state in question is just a basic thunderstorm, no movements needed; just an animation and lightning damage to all enemies. But later in the game I plan on having a character sometimes refuse commands and use a random skill they have access to, and I can't think of a way to pull that off without the Force Action command. The battle system I use is OTB, and like I said, strangely enough turning it off has no effect, Force Actions are still getting ignored. Same with removing any plugins that aren't VisuStella's, so it's likely one of theirs acting up, but I'm not sure which one of them it could possibly be.

(edit: actually, the state also needed a battle log popup, but I'm not sure how to add that one)
(edit 2: a different Force Action used for a summon skill does carry out, but I don't know why: the thunderstorm skill has no costs or weapon requirements, and it's of a skill type the actor should have access to 😅 is there any other reason it could refuse to do anything? I would still like help with moving the thunderstorm part to its state code though.)
Well, I still can't offer any suggestions as to why the Force Action didn't work because you still didn't show what you have for code.

But to just zap everybody, you should be able to simply put in your state:
Code:
<JS Post-End Action>
user.startAnimation (X); // Put in the ID of an animation to play
$gameTroop.aliveMembers().forEach(enemy => enemy.gainHp(-100));
</JS Post-End Action>

That will play an animation and damage all enemies for 100. If you want there to be randomized damage, you can just create a variable and set it to a formula, then pass that variable into gainHp()
Code-wise I had used both the regular event command (which worked previously, I think) and
JavaScript:
user.forceAction(67, 0);
Neither of them work for seemingly this specific skill (I force summons to do a skill to apply a buff to their summoner, and that one all works fine). Changing the 0 to -1 or -2 for targeting didn't change anything either.

(edit: What about the script call to make it display a message in the battle log (e.g. "A storm is brewing...", or changing the element to lightning-based?)
That's incomplete syntax for force action. You've queued the action on the battler, but you need to actually call it via the battle manager.
Code:
BattleManager.forceAction(user);

(edit: What about the script call to make it display a message in the battle log
You should be able to Google the script call for the battle log.

or changing the element to lightning-based?)
Well, this depends on whether you're doing funky things with VisuStella plugins for elements. In the default engine, all you do is modify the damage by the enemy's element rate.

So you'd change the $gameTroop line to something like this:
Code:
for (let i=0; i<$gameTroop.aliveMembers().length; i++)
{
    let dam=100;
    dam*=$gameTroop.aliveMembers()[i].elementRate(ID); // Plug in the ID of your lightning element
    $gameTroop.aliveMembers()[i].gainHp(-dam);
}
Even with the battle manager part, it refuses to do anything. I've tried common/troop events with the event command for it too, but nothing happens. Maybe there's something I missed regarding requirements to cast it? It has no cost, weapon requirements, wrong skill type, etc.
Regarding the elements part, I don't think I modified the VisuStella parameters for that, so I think that should work fine.
@Navas
Then show us screenshots of your events.

as you have been told several times we cannot tell you what you did wrong without you showing us what you did. It's often the context of something that causes problems, and your descriptions will never be able to show that context as well as screenshots of events or states or whatever might make the problem.
1690896550378.png

I have it set up like this, inside the base troop event. Although triggering it on turn 0 in a regular battle, whether cast by enemies or actors, has zero effect too. The summon skill has a force action inside an action sequence, and that's the only one that does go through. Changing the target to last target, random or whatever other options also does nothing.
This is just silly. There's clearly something wrong with the skill, and ten posts in you still haven't shown a screenshot of it. You're the one who needs help, and we have to keep begging for each individual thing 😛

You've seen other support threads. You know that when people describe their problems, attach half a dozen screenshots so we can see every aspect of what's going on, they get their problem solved.

Best of luck.
I'm so sorry, I must have been a bit sleepy and thought y'all wanted force action screenshots, not of the skill 😅

1690897206395.png

This skill, with ID 67, is the one in question. My bad! (note: adding or removing the otb tag doesn't change anything.)
No, we didn't ask for only events or only skill - we both asked for EVERYTHING involded in the problem.

That said, the incomplete screenshot of the event shows that you didn't even read (or understood) what the options of the visustella battlecore mean.

A common event is NOT and NEVER a troop event or base troop event.
You naming it as that does NOT mean that it gets executed at all.
so your force action commands are never even used, that is why nothing happens
I meant to say no matter where I place the force action command, it doesn't play out. Whether its in a common event called by a troop event, directly in a troop event (for example the one I placed the visual battle env commands in, which all play out) or the base troop one, nothing happens. I have assigned this base troop event in the battle core (it has ID 1) and every other page in said troop event does play out, so I'm not sure where the problem is 😅 I apologize for not understanding, and will try to put all the pictures in 1 post next time from the start (I'm not sure why I didn't this time)!
then show us the screenshot of the troop event - we should not have to ask every time.
and place a show text before the force action so that you can check if the problem is the command or if the event itself never runs.

And please, COMPLETE screenshots of the entire window, nothing cut off - in previous case you cut off part of the data, but the properties are as important as the rest.
I have assigned this base troop event in the battle core (it has ID 1) and every other page in said troop event does play out, so I'm not sure where the problem is
But your super-cropped screenshot clearly is showing a common event, not a troop event.

The ID specified in the plugin parameters is for a troop.
1690898362513.png

The above one is where I try to make the boss cast it on turn 1. The commands before the Force Action all carry out.

1690898425224.png

This one calls the common event I showed a few posts above, containing only a check if an actor has the Lightning Call state, and if so, try the Force Action. Pages 2, 4 and 5's conditions are all switches and set to Moment span, but Page 3 is a turn 0 event containing a different common event for an unrelated skill (from the Rewind Time tutorial). Is it possible page 3 is interfering with page 1, even though page 1 is supposed to trigger on turn end and not turn start? Putting a message window here will display the message, but not trigger the skill. (edit: none of these switches are on!)

1690898999221.png

(edit 2: the troop ID is set in battle core here)
(edit 3: I now see the actor's portrait visibly showing up at the end of the turn order display (the OTB one) indicating they're about to do a Force Action, but they don't actually end up casting it; moving the message window to the action sequence results in it not appearing)
The above one is where I try to make the boss cast it on turn 1.
Actually, it shows Turn 0, which is after battlers enter but before any turns start. I don't know if you can Force Action at that point.

I'm really not going to try to get into all the rest of it - I don't use the VisuStella plugins, so I have neither the knowledge nor the desire to try to troubleshoot anything with them.

I can only say that unless they severely modify the actual code for force action, the function call I provided you above should work inside a state notetag. And even if it doesn't, the first piece of code is (I think) a better solution for this specific case anyway.

Someone like @Trihan would be much more knowledgeable as to why there's a reason why what you're trying to do doesn't work.
If I recall correctly, at least in MV it was possible to do a force action on turn 0. The thing is, this event should trigger at the end of every turn like in the picture, for as long as the Lightning Call state lasts. So even on subsequent turns, it doesn't work. Also, turning the OTB plugin off entirely changes nothing. It's true for this specific skill, the state code should work, but as for making actors cast a random skill they have access to while refusing actor commands for that turn, mentioned in my original post (triggered through troop event conditions at the end of a turn), I'm not sure if that can also be done with a state. (e.g. a 25% chance to ignore the task they have been given for that turn, and instead cast a random skill).
I have been summoned. Gimme a sec to read.

First of all, have you read/been made aware of this change to force action in Battle Core, as per the wiki?

1690910747002.png
Yeah, I did check sections related to force actions in VisuStella's battle plugins. I even made sure to wait a couple turns to see if the queue'd action would eventually go through, but it didn't. 😴 Could something else be cancelling it?

Original thread: https://forums.rpgmakerweb.com/threads/force-actions-not-being-carried-out-no-matter-what.159924/