MZ How do I make player characters use skills and spells when charmed?

I'm making a boss fight where one of the mechanics is that a character can get charmed for one turn, but when a spellcaster gets charmed they are only doing physical attacks which is kind of neutering the mechanic.
not by default - you'll need a plugin to change the autobattle and charm code.
Presumably "Charmed" is a state that affects party members. I don't know whether MZ is similar to MV in this regard, but in my MV game, I disable the ability to cast magic by the state sealing the magic skill type using the traits in the top right part of the skill window. Look under the "Skill" tab of Traits.

You can do the same with special skills as well.

They would still be able to use items or guard, so, if you thought it appropriate, you could set the auto-battle flag in the skill Traits which would make the Charmed party member attack physically. Look for "Special Flag" under the "Other" tab of Traits.

Edit: If you don't want the affected party member to be able to do anything, just choose "Cannot Move" under "Restriction:", and don't bother with the above.
Presumably "Charmed" is a state that affects party members. I don't know whether MZ is similar to MV in this regard, but in my MV game, I disable the ability to cast magic by the state sealing the magic skill type using the traits in the top right part of the skill window. Look under the "Skill" tab of Traits.

You can do the same with special skills as well.

They would still be able to use items or guard, so, if you thought it appropriate, you could set the auto-battle flag in the skill Traits which would make the Charmed party member attack physically. Look for "Special Flag" under the "Other" tab of Traits.
Isn't that literally the opposite of what OP was asking for? OP wants charmed actors to use skills, not seal them.
Since this will need a plugin:

I've moved this thread to Plugin Requests (from MZ Support). Thank you.

One of these might help~
Isn't that literally the opposite of what OP was asking for? OP wants charmed actors to use skills, not seal them.
Sorry, especially to the to OP, if I misunderstood. Is OP asking about a party member using skills against other party members? Can't think of any easy solution if that is the case.
Yeah, it was about letting ie. a magic user be able to cast fire on allies when I charmed. I've just balanced the fight around having charm basically being like a stun, just wasting a turn.
I made a plugin that should help here.

It makes it so battlers have access to all skills when confused and randomly use them on anyone.

The plugin also allows you to make charmed states that make battlers use offensive skills on allies and defensive ones on enemies.

Give it a try and see if it helps

Plugin Forum post

Link - Maliki's Confusion Control -Pastebin
I will for sure give it a look! It would certainly make charm encounters more interesting.
No prob.

Let me know if you need any further help with the plugin.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-make-player-characters-use-skills-and-spells-when-charmed.176955/