Wondering about how to change skills on enemies

I wanted to add states that would force a change in the skills an enemy can cast. If I give an enemy 4 skills but wanted to use apply a state that blocked those skills and added different ones, would I have to manually add the changed skills into the enemy action list regardless? I see an option for if state is applied, I take it I will have to do it this way at least for the computer side of things, yes?

What about when there are two enemies in a troop and one of them has a state like petrify? How would I get the partner to recognize and heal the petrified ally on the enemy side? It looks like the state applied option is only going to focus on the individual to which these things are applied...
I've moved this thread to VX Ace Support. Please be sure to post your threads in the correct forum next time. Thank you.
The way how the default attack patterns work requires you to enter all skills ever possible to that enemy into its attack pattern, but condition some of those skills to switches or states (or specific values) to make sure they are only used when that option is conditioned.

Unfortunately you have only a limited number of option in the attack pattern condition - for example, you can only condition to states the enemy itself has, not to states of other enemies.

One option to change that would be to make a troop event that checks all enemies for states and force action skills depending on those states - then you can write a troop event that checks for "petrify" and force action another enemy to heal that.

Unfortunately that will require a lot of conditional branches to determine which force action would be needed.

Even more work would be to request scripts that change the attack pattern behaviour - that is really complex, and I don't know how it could be done (but I'm no scripter, perhaps someone else can help there).

Original thread: https://forums.rpgmakerweb.com/threads/wondering-about-how-to-change-skills-on-enemies.18779/