Change enemy behaviour mid-turn (instant reaction to switch)

I'm currently testing some ideas with RPGMaker MV Battlesystem. One is to let enemies react according to the state of the hero.

For example: I've created an attack, that throws the hero to the ground. If that happens, the player has a skill to "get up" again (with a certain chance of success). What I want to achieve is, that enemies use different attacks when the player is on the ground. So i've set a switch, that indicates if the player is on the ground. That works for the most parts, but not in the turn where the "Get Up"-Skill is used. There the enemy always uses the "on the ground"-attacks. My guess is that the attacks are decided at the beginning of the turn before the switch is flipped?!? Is there a way to change this and let enemies react instantly on the outcome of the "Get up"-Skill?
Very likely, you'll need a plugin to do this.

I know in VX Ace, this was something Yanfly had tackled. I'd look at their plugins for MV.

Of course, if all else fails, some of the script experts here can definitely help, like @Trihan or @Engr. Adiktuzmiko ...
Thanks for the answer. Do you have any idea where to look exactly? I've checked out the Yanfly-Page but I think I'm just missing the right phrase to look for. What would you call my problem? What would be a good search query?
@AllesMeins
you missunderstood how the battlesystem works.

Each default turn has two distinct phases - decision and execution.
Nothing happens during decision, that is where the player enters what his actors should do and the computer calculates the enemy attacks based on attack patterns.
Only after all decisions have been made, all skills are executed in the order based on battler agility, skill speed and a random percentage.

This is neccessary to enably tactics that utilise different skill speeds, but it means that all decisions are made on the data from the beginning of the turn and not something that happens due to a skill execution.

To have it your way, you need to completely replace the default turn based battle with something else, either a CTB or ATB system or something like that. Unfortunately there are only limited numbers of CTB/ATB plugins, and yanfly even discontinued support on his CTB/ATB.
Did you use the skill to turn the switch on? I'm not fairly experienced with battle skills as most of my games are Adventure, but I really only see a problem if the switch is turned on by battle condition because, as Andar explained...

This plugin will let you eval script from item/skill notes when the item/skill is used, the same way MV handles event script.
PHP:
Game_Battler.prototype.useItem = function(item) {
   if(item.note !== undefined && item.note.match(/<eval>[\S\s]+?<\/eval>/g) !== null){
       var script = item.note.match(/<eval>([\S\s]+?)<\/eval>/g);
       for(var i = 0; i < script.length; i++){
           eval(script[i].substr(6, script[i].length - 7 - 6));
       }
   }
    if (DataManager.isSkill(item)) {
        this.paySkillCost(item);
    } else if (DataManager.isItem(item)) {
        this.consumeItem(item);
    }
};
Use it like this.
Screen%20Shot%202017-03-23%20at%208.53.33%20AM.png

Don't use alert though; that would be annoying.
Yanfly's AI core plugin allows for dynamic choices in enemy behavior, meaning they will change their actions dependent on character actions. Perhaps check that out and see if it helps you accomplish what you're looking for?

http://yanfly.moe/2015/10/19/yep-16-battle-a-i-core/
Yanfly's AI core should do since it allows "Dynamic Actions" instead of setting everything during start of turn (which Andar explained)

Original thread: https://forums.rpgmakerweb.com/threads/change-enemy-behaviour-mid-turn-instant-reaction-to-switch.76262/