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.
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.
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.