Complex formulas confuse enemy AI?

I've tried testing out a deathlock or combat lock skill, making the skill apply the same state to both the user and the target, and give the target a skill that gives it a chance to break this lock skill from both itself and the target, but the enemy AI doesn't do anything after I used the lock skill on them.  I tested the skill that only applies the lock state to the target, and they manage to respond normally, but when I make the skill affect both the target and the user, the enemies just stand there and do nothing.  Is this a bug or can the AI simply not handle this?  
Bump
MakeAndCreate, please do not bump your topic unless it has been 72 hours later since your last post. You can review our forum rules here. Thank you.

Please remember that this is a highly international site, therefore because of different time zones, people will be on a variety of work/leisure/sleep patterns.  Also people who answer queries here do so in their free time and have other commitments as well.
The basic enemy AI selects skills based on damage dealt, unless you're really tricky with the action patterns.

Please give screenshots of the skills, the state applied and the enemy action pattern and we'll check where your mistake is.
Okay, my bad.  ^^;

Here's the setup of the skills, state, and enemy.

Bind_Screenshot.png

Struggle_Screenshot.png

Bound_Screenshot.png

Bat_Screenshot.png
Are you sure that it is given and removed? I suggest adding state messages again so that you can see if it gets added or not.


And at least for testing purposes, set the skill success rate to 100% again (75% success means that in one of four tries, the skill will have no effect.


Other than that it should work, it just might have been that you didn't see the effect due to no state messages, or that you got unlucky with skill execution...
Are you sure that it is given and removed? I suggest adding state messages again so that you can see if it gets added or not.

And at least for testing purposes, set the skill success rate to 100% again (75% success means that in one of four tries, the skill will have no effect.

Other than that it should work, it just might have been that you didn't see the effect due to no state messages, or that you got unlucky with skill execution...
I tested it out with the messages, and the enemies definitely have the bound state, and do nothing once the bind skill connects.   
Try changing the scope of the Struggle skill to be the user. The problem might be that the system right now doesn't see a reason to use the skill as it sees no damage, and no state applied, so it is skipping it.

Also, I'd remove the damage formula totally, and have the skill Struggle just remove the state directly. That should avoid confusing the AI.
Try changing the scope of the Struggle skill to be the user. The problem might be that the system right now doesn't see a reason to use the skill as it sees no damage, and no state applied, so it is skipping it.

Also, I'd remove the damage formula totally, and have the skill Struggle just remove the state directly. That should avoid confusing the AI.
But it needs to also affect the one who used the bind skill as well, which is why I can't scope the user for it.  ^^;  
Found a solution.  Just needed to add an actual damage formula along with the addState command, even if the sum will equal 0.  

Original thread: https://forums.rpgmakerweb.com/threads/complex-formulas-confuse-enemy-ai.48896/