How to call a common event when a skill is selected in battle?

I have a skill in my game that spends a different actor's turn. A group skill, if you will. I'm using Visustella's ATB.

I'm trying to accomplish this effect by 'stunning' Actor 2 for 1 turn when Actor 1 uses the skill.

The problem is that the state is only applied when Actor 1 casts the skill. Not the moment it's selected. Because the common event is attached to the 'effect' of the skill and not being triggered the moment the user selects that skill.

So, how would I make a common event that's triggered by the selection of a particular skill? Not when that skill is used, but when it's selected by the player?
I do not think this doable by default, actually. There is no way of "conditioning" or triggering the choosing of a skill by itself. The only way a skill can do something is, as you said, by going off.

I took a look into the ATB plugin, but it did not seem to me that this is an added option - neither affecting skills in that regard, nor affecting other actors by your actions. The way this battle system works is that it will always only trigger the skills when the actor has reached their turn - and only these factors can be adjusted.
I am pretty sure one of their plugins should actually give you something like "cast skills". But I cannot remember which one it was right now, or if it works in a way that would suffice. Another thing are "instant skills", but these are normally added in by other battle systems I believe, which would obviously not really help you, I assume.

There might be plugins which give you the option to add "choose effects" to a skill (via notetag, for example). But I cannot remember seeing one. (Maybe in the plugin sub-forums?)
Or maybe there is simply a plugin that adds in the above mentioned skill options, without changing the whole battle system?

I will try to find out if there is an option with one of their plugins and will come back to this if I do.

Edit: I have checked their available plugins, as well as their core ones, but could not find anything that expends the skills to have any effect upon choosing them, sadly.
In regards of additional plugins, there is an "auto skill trigger" one - but from what I could tell based on the instructions, the triggers in question will only occur if the skill is already at "performing" stage.
This might still work out for you depending on what effect your group skill should actually have (or rather what target scope), though.
Their Battle Core gives you the ability to add additional effects before certain steps of an skill's action via code, as well as adding more powerful skill behaviours via "action sequences" - but again, from what I could tell, they all work around the point where a skill is actually in its performance state.
thanks for the reply @Ingwer ! super helpful.

what i realized was causing the delay was actually the “cast speed”. the common event is immediately triggered when the skill is cast, but having a cast speed means there’s a delay. the thought was bigger magic attack are somewhat balanced thru turn order….taking a few turns to actually cast.

as a work around, i can rebalance my game a bit around all attacks happening immediately and delete cast speed. i probably prefer the immediacy that way too with an atb.

the only problem i’m having now is running a check during battle to see if another actors ATB bar is filled.

because my dual techs involve two actors, the attack should only be usable if the both actors ATB bars are full. i was hoping to create a common event that could run during battle, performing checks that allow a character to make a selection. but not exactly sure how to return the ATB status of an actor and if that’s usable in several events that run parallel during battles. i’ve scoured the net for script commands but am having trouble finding anything RE atb or turn readiness data.
That indeed seems a bit tricky. I think making a check should be doable code-wise, as the scripts/plugins already do check what to do if a battler reaches a full time bar. I cannot really provide more than that, however, so maybe someone who knows these things can help you out.

In regards of events, I did not have the chance to toy around with something like this until now, but I did try it out a bit and it seems to be quite difficult to constantly check something like this.
From what I could see, a normal common event will not work during battle (If you activate it before entering the encounter). So you have to make the condition checks or the event call from the troop event page. Thing is, for your specific case you would need to set the occurrence span to "moment" in order to make it accurate. But as you can not stop this check from happening (or it would again not be accurate), it will then soft-lock your game.

That's the conclusion I came up with at least. If I made a mistake, feel free to correct me.
@Ingwer definitely makes sense. i think i saw galv has a plug-in that allows for common events to run, but yeah i’m a little nervous about the soft lock.

i could change my battle system. heroic jay has a plug-in that’s MZ compatible, but i ran into issues with its compatibility with visustellas battle core.

Jays plug-in works with the default ATB, i much prefer the ATB from visustella because of the bars over characters heads

i’ll do some more digging and ideating. my game is in its infancy, so i can work around some obstacles and pivot if need be. the mechanics of the risk reward a la chrono trigger of individual attacks vs group attacks seems very viable, though. so at least i know that
One way to solve this would be the skill use evals. "If Actor Bs ATB full then true" I have no idea what variables point to what to check this though. If you're really confused check the VS notetag help thread.
One way to solve this would be the skill use evals. "If Actor Bs ATB full then true" I have no idea what variables point to what to check this though. If you're really confused check the VS notetag help thread.

Yeah that's what i'm wondering about. Via notetags - can you enable / disable the use of the skill?

Ideally I'd want a conditional check on the ATB status of another actor (NOT the user). If the ATB isn't full, the skill would be visible but be greyed out and unselectable. Maybe a note pops up and says '____ isn't ready!'

I've had trouble identifying the check on how to see if the ATB bar is full. I'll see if I can't look into that thread.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-call-a-common-event-when-a-skill-is-selected-in-battle.150172/