Effect execution on skill selection?

I tried searching for the subject but I couldn't find any results. I've probably been using the wrong terms because i figured it would have been asked before.

Is it possible to move a skill's effect off its execution and into it's selection in the battle menu? In my project, one class's major mechanic is that they freely use skills to alter the properties of their spells cast. Up until now, I've been doing it through yanfly's instacast plugin to play an animation and to add a state to the battler without consuming the turn.
It works, but it gets cumbersome when you want to play more than one modifier in a turn. it becomes having to select one modifier, waiting for the action to fully resolve, getting sent back to the actor's battle menu, having to renavigate to the modifiers, and then repeating for each additional modifier.
Is it possible to make it so that just selecting the skill from within the menu adds the state and plays the animation on the user without actually starting up a game action and causing further delay?
It's possible, but you'd have to write it.

It would be easier to just execute a chunk of code when selecting the skill, but you'd have to write that, too - I haven't seen any plugin with a notetag that happens at that time.

To make the entire execution of the skill happen out of order and then go back to the actor's turn without breaking things is going to be more convoluted.
And your workaround is a problem in its own - continuing in that direction will basically remove the entire concept of action speed from the engine, which is why it is that problematic.

you would be much better off if you request or commission a new plugin that implements the mechanic you want directly, without messing up the action selection.
You mean like this?

Actor A selects a skill
Actor A executes a skill
Actor B selects a skill
Actor B executes a skill
Actor C selects a skill
Actor C executes a skill
Enemy A selects a skill
Enemy A executes a skill
Enemy B selects a skill
Enemy B executes a skill
Enemy C selects a skill
Enemy C executes a skill

In that case you can use yanfly's YEP_BattleEngineCore plugin. And it's extention for the right battle mode. (STB = Standard Turn Battle) This Extention is called YEP_X_BattleSysSTB

This should work with instacast too.

Edit: The order is not actually going to be actor A,B,C and enemy A,B,C. The order will be decided by the characters agility.
You mean like this?
no, he means

actor a selects and applies a state to itself
actor a selects and applies a state to itself
actor a selects and applies a state to itself
actor a selects a skill
actor b selects and applies a state to itself
actor b selects a skill
<...>
skills get exectuted in battle
It's possible, but you'd have to write it.

It would be easier to just execute a chunk of code when selecting the skill, but you'd have to write that, too - I haven't seen any plugin with a notetag that happens at that time.
you would be much better off if you request or commission a new plugin that implements the mechanic you want directly, without messing up the action selection.

I have a new project goal to work towards now. thanks for the confirmation.

You mean like this?
no, he means
Andar has the right of it. Ideally, only one skill would be executed by each battler per turn. the modifier skills would be used first and would just add states to the user from within the menu to speed up the skill selection.
right now with instacasts, if the player wanted to activate 3 modifiers and then cast a spell, it would be 4 actions in total and would take as long as it would take to pick 4 individual actions and watch all 4 action execute. almost like choosing your whole party's actions and watching them all act, but its all for one character essentially doing one skill. not very time-friendly
I see.

Sorry, I wouldn't know how to do multiple insta casts in 1 turn. With yanfly's plugin, only the first skill you use per turn can be an insta cast. The second skill per turn would be a regular skill.
Is it possible to go with a branching skill selection route here, instead of instant cast and applying states for the properties?

I’m thinking of this plugin in particular:

For example, if you’re building up your skills on the fly, by selecting element, selecting scope, selecting additional modifiers, this could be possible, if it’s a less structured than that, this option probably wouldn’t work.
Is it possible to go with a branching skill selection route here, instead of instant cast and applying states for the properties?
Unfortunately, its not a solution in this case. Its not as structured as just picking one modifier and casting with it per action. the spell mods may be combined, and that alone breaks any reasonable implementation of it through extend skills
There may be more robust ways to do this, but you could try something like this maybe:
(Right now the plugin might not work with certain battle UIs or certain battle action effects without adjustment, it just copies parts of what would normally happen during a standard battle action)
Spoiler
Code:
// ==========================================================================
// Snap Action Plugin
// --------------------------------------------------------------------------
/*:
 * @plugindesc
 * Allow specific actions to activate upon selection during battle.
 * @help
 * How to use:
 * -----------
 *
 * Place the following tag in a skills or items note box:
 *
 * <snap action>
 *
 * The item will now be used upon selection without consuming a turn.
 * - Targeting effects like substitutions or magic reflection are disabled.
 * - "Call Common Event" effects are not supported (they will get delayed).
 *
 *
 * Compatibility:
 * --------------
 *
 * This plugin might need to be placed below other battle related plugins.
 *
 * Reselecting the action may not work correctly if that part of the battle UI
 * has been modified:
 * See this plugins Window_ActorCommand.prototype.tryReselectAction
 *
 * Some action related effects may not work with snap actions:
 * See this plugins BattleManager.executeSnapAction
 */
// ==========================================================================

(function() {
    const old = Scene_Battle.prototype.selectNextCommand;
    Scene_Battle.prototype.selectNextCommand = function() {
        let action = BattleManager.inputtingAction();
        if (action && action.isSnapAction()) {
            BattleManager.executeSnapAction();
            this.refreshStatus();
            if (!BattleManager.isInputting()) {
                this.endCommandSelection();
                return;
            }
            let actor = action.subject();
            if (actor === BattleManager.actor() && actor.canInput()) {
                let lastSymbol = this._actorCommandWindow.currentSymbol();
                let lastExt    = this._actorCommandWindow.currentExt();
                this.startActorCommandSelection();
                this._actorCommandWindow.tryReselectAction(lastSymbol, lastExt);
                return;
            }
            action.clear();
        }
        old.call(this);
    };
})();

Game_Action.prototype.isSnapAction = function() {
    let item = this.item();
    return (item && item.meta["snap action"]);
};

BattleManager.executeSnapAction = function() {
    let action = this.inputtingAction();
    action.subject().useItem(action.item());
    action.applyGlobal();
    let targets = action.makeTargets();
    this._logWindow.showAnimation(action.subject(), targets, action.item().animationId);
    targets.forEach(target => {
        action.apply(target);
        if (target.result().isStateAdded(target.deathStateId())) {
            target.performCollapse();
        }
    });
    this.checkBattleEnd();
};

Window_ActorCommand.prototype.tryReselectAction = function(symbol, ext) {
    let index = (ext ? this.findExt(ext) : symbol ? this.findSymbol(symbol) : -1);
    if (index >= 0) {
        this.select(index);
        if (this.isCurrentItemEnabled()) {
            if (symbol === 'skill' || symbol === 'item') {
                this.deactivate();
                this.callOkHandler();
            }
        }
    }
};

Edit: Small correction
There may be more robust ways to do this, but you could try something like this maybe:
From what I've seen so far, it works exactly as needed. Thank you!
I put it into where it was needed most and I haven't run into any problems with it.

Original thread: https://forums.rpgmakerweb.com/threads/effect-execution-on-skill-selection.161211/