MV I'm having trouble with status effects

Okay, so we all know and love the "Charm" status effect, your party member is so bewitched by the enemy that they'll do anything to help them... But I have a few problems trying to replicate this.

Issue 1: I want to have the effect make the party member use healing items and healing skills on the enemy (Similar to Persona), and I can't really figure out how to do that. Maybe a skill target plugin...?
Issue 2: Since it's a behavior status, I can't let the player control this party member. I need help figuring out what to do for that because I don't want the character to attack other party members or do nothing at all; I just want them to use their turn casting supportive skills on the enemy.

P.S. I have no idea if this is already a question that's been asked because I couldn't find it in the forums by search, but if anyone has already asked about something similar, please direct me to that thread. Thanks!
Hmmm, make a state that adds auto-battle trait and adds skills/skill type where you have heals that target enemy. Then use Yanfly Auto Battle A.I. to make your dudes use those on the enemies. You can also have skill that imitates item use, like common event that checks for certain items in your inventory and then uses those effects on enemy and removes those items from you.
Its for mz, but Maliki has a plugin you can try thatd probably still work for you.

AFAIK, youd still have to use pseudo-item skills like mentioned above to fake item use though
Hmmm, make a state that adds auto-battle trait and adds skills/skill type where you have heals that target enemy. Then use Yanfly Auto Battle A.I. to make your dudes use those on the enemies. You can also have skill that imitates item use, like common event that checks for certain items in your inventory and then uses those effects on enemy and removes those items from you.
Do you think there's a way to change the targets for the skills themselves? I don't particularly want to copy 48 healing skills just for the opposite targets because that would require party members to learn each healing spell twice which gets really clunky and confusing.
Its for mz, but Maliki has a plugin you can try thatd probably still work for you.

AFAIK, youd still have to use pseudo-item skills like mentioned above to fake item use though
Does MZ work the same way with plugins? Ive never used MZ before so I assumed the plugins wouldn't be compatible.
Does MZ work the same way with plugins? Ive never used MZ before so I assumed the plugins wouldn't be compatible.
Plugins made for MV and MZ can work for the other. the code between MV/Z is largely the same. Theres a few areas where stuff is different enough that introducing code meant for the other engine can cause it to break, but a glance through the plugin leaves me with the impression that it wont be an issue here.

Try installing the plugin and go through the instructions to set up your states/classes. worst case scenario is it doesnt work or it crashes and you remove it and move on. @Maliki79 might know offhand

EDIT:
Also FWIW, the plugin does invert the target scope automatically so that skills for enemies become skills for allies and vice versa. you wouldnt need additional skills
Do you think there's a way to change the targets for the skills themselves? I don't particularly want to copy 48 healing skills just for the opposite targets because that would require party members to learn each healing spell twice which gets really clunky and confusing.

If you decide to go this route, I guess you can use Yanfly Target Core / Selection Control JS notetags to get around that.
Plugins made for MV and MZ can work for the other... the plugin does invert the target scope automatically so that skills for enemies become skills for allies and vice versa. you wouldnt need additional skills
Alright, thanks for the suggestion, I'll be sure to check it out!
If you decide to go this route, I guess you can use Yanfly Target Core / Selection Control JS notetags to get around that.
I'll re check the notetags because sometimes things are iffy, but thanks for the suggestion as well ^^
Hi all.

The Confusion Control plugin works fine in both MZ and MV.

Give it a shot and it should allow the skills to switch targets properly.

If you need more help getting my plugin working, let me know.

Thanks @Robro33
Hi all.

The Confusion Control plugin works fine in both MZ and MV.

Give it a shot and it should allow the skills to switch targets properly.

If you need more help getting my plugin working, let me know.

Thanks @Robro33
Okay, so I actually DO have a question!

How does the Charm notetag work? what do I have to do to make the status effect do what I'm aiming for? Do I have to put the ConSkill notetag somewhere for it to activate? I'm a bit lost...
Ok.

Let's backup just a bit to make sure everyone is on the same page here:

When normally confused, battlers will use the attack command ONLY on either friend or for.

What you want is for actors to use healing skills and items on enemies only while confused, right?

Now first of all, using items will not work unless you make a dummy skill that will consume the items.
We can touch on how to do that in a bit.
Firstly, you'll make your Confuse state however you normally would. We'll add the extras from my plugin below.

As far as using healing skills, what you would do (after adding my Confusion Control plugin) is decide if that is ALL you want confused actors to do.
If so, you would do well to seal ALL other skills available to actors and enemies that would not heal, since my plugin allows ALL skills a battler knows to be used and not just attack.

Now for the item use skills, you'd need to make dummy skills that mimic EACH of the items you'd want.
(You'll also need a plugin that has item requirement for skills.)
Once you have those skills ready, you'd need to add them to the pool of available skills all actors and enemies notes.
(Admittedly, it might be easier to make something like this a notetag for the state, but putting it on the battlers allows for some versatility... I'll probably update the plugin..., but for now, each actor and enemy! You could also just add the skill in the state's effects in the database which would circumvent my need to update! Maybe... As enemies cannot use other skills normally... Blah...)
So lets say you have 3 healing items and you made skills 30, 31 and 32 to represent those items.
You'd then add the following notetag to battlers:

JavaScript:
<conAttacks: 30, 31, 32>

Enemies most likely won't be able to use items, so you'd only need to put this on actors.

So now, if you sealed the other skills, the battlers would only be able to use healing skills and the three "item" skills in battle and will use them on friend or foe while under this Confusion state.

To make it so they will ONLY target the opposing side, you'd add the notetag <charm> to the state's notes.

I put a lot here, but I think it's fairly straightforward.
Let me know if I missed or need to further explain anything.

Original thread: https://forums.rpgmakerweb.com/threads/im-having-trouble-with-status-effects.177815/