State that changes default attack

I want to make a state that changes default attack. Actor in that state can not deal damage, only heal targets.
How to change default attack in MV?
It's not entirely clear what you want, but here are two possible answers.

If you want the state to make the actor unable to attack, but still use skills, add a "Seal Skill" trait and select the default attack skill.

If you want the state to make the target heal when it attacks, you might want to investigate the WeaponSkill Kadokawa plugin. With some programming skills it could be modified to make a state alter the attack skill.
as said above, if seal skill isnt what you're looking for, but you want their basic attack to heal, you can also put that in the damage formula. if (!b.isStateAffected(id)) a.atk*4-b.def*2; else b.gainHp(a.atk*4-b.def*2)
If I might toot my own horn, there's a plugin for this in my signature, AES_CommandControl. After installing it, making this state is as simple as a note tag: <Replace Attack: 12345> Replace 12345 with the id of the healing skill that you want to replace basic attack with and that should do it.
If you want the state to make the actor unable to attack, but still use skills, add a "Seal Skill" trait and select the default attack skill.
I need to make state that do not allows to use skills and forces to attack allies.
If you want the state to make the target heal when it attacks, you might want to investigate the WeaponSkill Kadokawa plugin. With some programming skills it could be modified to make a state alter the attack skill.
WeaponSkill works only with weapons, no?
WeaponSkill works only with weapons, no?
Yes, but a similar approach could be used to make a state switch the weapon skill. That's why that option requires some programming skills - you'd have to modify the plugin.

When an actor has a restriction forcing it to attack, it always uses its basic attack, so the approach of changing the attack skill (either by modifying WeaponSkill or by using Aesica's plugin) should work for what you want.
Yes, but a similar approach could be used to make a state switch the weapon skill. That's why that option requires some programming skills - you'd have to modify the plugin.

When an actor has a restriction forcing it to attack, it always uses its basic attack, so the approach of changing the attack skill (either by modifying WeaponSkill or by using Aesica's plugin) should work for what you want.
Okay, I understand.
I will try AES_CommandControl. I hope that there will be no errors because I am also using FROG_SignatureSkill plugin (to add Wait command).
If it doesn't work, let me know because there's a possible workaround for such a conflict.

Original thread: https://forums.rpgmakerweb.com/threads/state-that-changes-default-attack.122831/