Working with Confusion state

I know this is a rather unusual question (I haven't found anything about it on this subforum), but is there any script out there that lets one work with the Confusion state when inflicted on enemies?

For example: some way to have monsters use their special attacks on other monsters while Confused. Or even, to control Confused monsters! (I doubt that's possible, however). 

I'm working on an idea which revolves a lot around the Confusion state and I'd love any script you know that does anything with it. 
I'm not sure of any script that does it...

But, I do know a few things you can do with the program itself.  I think you can put in troop events "if X monster is confused, use X skill against random enemy".  I'm fairly certain that's doable, but it might require a considerable amount of time investment to implement (though it might be worth it, if it's really cool or interesting... like it could be in FFVI in that confused monsters used skills they didn't normally use in combat).

As for controlling them yourself?

I'm... not sure that's doable, even with a script.  I think it would require the program thinking that they are "characters" at some point and they'd have to be added (temporarily, during the fight) to your party... and you've got the 4 person party limit thing... And then you'd have to turn these creatures into actors to even get access to their skills and commands...  While also keeping them somehow on the field to be attacked, but not attack your allies either (or not attack at all, if you want to maintain the illusion).

Sounds really complicated, even for a script.
Yes, I would be interested in using troop events if that works. I can see that you can force a battle action when an enemy is in a certain state, and you can choose what action. However, it seems I can't have them target another creature? I don't quite understand this "action target" business. 
You can go to the third tab of the Events and under battle, there is "Force Action..." and you should find what you're looking for under that.  Just put it after the conditional of "if confused".

EDIT:  However, I could be wrong.  I've never tried such a thing before.  I'm also not sure what "Index" means as a target.  Maybe it could use a skill that "targets random ally" instead of "target random enemy", though that might require making several "duplicate" skills... one they use when confused, one they use when not.
Yea that seems to work, you were right. Setting the skill to apply to allies means it can be targeted to other creatures. Very interesting. I like it! The only problem now is that confused monsters have two attacks per turn: their normal one and the forced one at the end. How do I make the forced action replace their normal attack?
Um... not sure.  Is it possible to make Confusion inflict a "cannot act" state on the creature and yet still force it to act so that it only gets the forced action?
I was hoping for a solution in the event itself... because otherwise that means I'd have to code every single troop so the Confused state would work properly... but I suppose I'll do it if I have no other choice.
The event would have to be coded into every single troop command anyway.  There might be simpler ways to do it though.  I've never tried to do it.
In the enemies tab you can set a skill to be used only if a certain state is applied.  You would need to create a duplicate for each skill you want enemies to use against their allies and have the duplicates' scope be one of the ally options.  In the states tab in the database you could also have confusion's restriction set to attack ally if you only want confused enemies to attack their allies.
In the enemies tab you can set a skill to be used only if a certain state is applied.  You would need to create a duplicate for each skill you want enemies to use against their allies and have the duplicates' scope be one of the ally options.  In the states tab in the database you could also have confusion's restriction set to attack ally if you only want confused enemies to attack their allies.
I tried this, but it doesn't seem to work. As far as I can tell, the Confused state limits the monster to simple attacks unless you override it somehow...
You can make a "Confused State" that isn't "attack anyone".  As said before, you could just have the state be absolute do nothing.  It could have a "paralyze" effect in place and then in every troop commands, just have actions be forced depending on which monsters are inflicted with the "Confused" state.  You could then create custom skills the monsters would only use when in that state, and they would only be set to "Target random ally".  These new skills would be mirror copies of existing skills that only target enemies.

The default "Confused" state can only be used to make enemies attack randomly by mashing the "Attack" command.  If you want to do something more robust than that, you have to get creative.
My first suggestion worked when I set the restriction for the confusion state to none, and had the ability rating at 10.
You can make a "Confused State" that isn't "attack anyone".  As said before, you could just have the state be absolute do nothing.  It could have a "paralyze" effect in place and then in every troop commands, just have actions be forced depending on which monsters are inflicted with the "Confused" state.  You could then create custom skills the monsters would only use when in that state, and they would only be set to "Target random ally".  These new skills would be mirror copies of existing skills that only target enemies.

The default "Confused" state can only be used to make enemies attack randomly by mashing the "Attack" command.  If you want to do something more robust than that, you have to get creative.
Yea exactly. I think that's what I'm gonna go for. 
My first suggestion worked when I set the restriction for the confusion state to none, and had the ability rating at 10.
Still doesn't work for me... the confused enemy just doesn't do anything. 
I can't help you on your basic problem, but I noticed your comment about having to do this in every troop.  That isn't necessary if you use Yanfly's Base Troop Event script which you can get here This allows you to put something in just once and it then runs for every troop.  Saves a lot of time and frustration.
I can't help you on your basic problem, but I noticed your comment about having to do this in every troop.  That isn't necessary if you use Yanfly's Base Troop Event script which you can get here This allows you to put something in just once and it then runs for every troop.  Saves a lot of time and frustration.
Thank you for that script. Unfortunately it doesn't really work for what I want to do, which involves different actions for different enemies. But I will keep it in my script bookmarks.

Original thread: https://forums.rpgmakerweb.com/threads/working-with-confusion-state.40457/