Enemy skips turns at low HP

I have a boss that begins to skip turns when it's near death (HP bar showing practically empty). These are its attack patterns:


Action_patterns.png



As shown in the image, it should always be able to attack, but it doesn't even do that when its HP is close to zero. How to fix it?
unless you broke the engine with a plugin, the only thing that can make an enemy loose an action is if it can no longer pay for that action (which means TP and MP costs are higher than the remaining points).


But it would be regular not to attack on the turns the charge skill is conditioned.


Can you give us screenshots of the earth shaker and the attack skills to check them?
unless you broke the engine with a plugin, the only thing that can make an enemy loose an action is if it can no longer pay for that action (which means TP and MP costs are higher than the remaining points).


But it would be regular not to attack on the turns the charge skill is conditioned.


Can you give us screenshots of the earth shaker and the attack skills to check them?



The enemy doesn't use any MP or TP, so that shouldn't be the problem. This is a screenshot of his Attack, that then calls a Common Event to perform Quake.


Geolem_Attacks.png



Earth Shaker is shown next to Attack, and calls to a Common Event that forces it to perform a similar kind of action. If it's to do with a plugin, I'm probably never going to find our what it is, why it does it and how to make it stop doing it, so I might as well give up and accept it won't attack at low HP.
If it's to do with a plugin, I'm probably never going to find our what it is, why it does it and how to make it stop doing it, so I might as well give up and accept it won't attack at low HP.

That would be the worst decision you could do in this case - because if such a result is caused by a plugin, it will not be the only problem caused and you need to find out what caused the problem to remove that cause, not waiting for the next problem to surface.


The fastest way to test that is to make a new project without plugins, copy those skills there and test them if they function there.


However, while nothing in your screenshot shows a direct problem, there is one thing that makes me suspicious:


How many skills with the name "Attack" do you have?


The note and effects on that skill indicates that this is NOT the default 001:attack skill.


But if you have several skills named "Attack", you can't see if the skill set in the attack patterns is the one you want there, because that selector does not list the ID number of the skill. You should always give skills different names, especially for enemies (the player can read the skill names in the command list, the enemy skills are never listed by name anywhere).


Because if you set the attack pattern to a different attack skill, that could cause a wrong logic especially with such linked skills.
That would be the worst decision you could do in this case - because if such a result is caused by a plugin, it will not be the only problem caused and you need to find out what caused the problem to remove that cause, not waiting for the next problem to surface.


The fastest way to test that is to make a new project without plugins, copy those skills there and test them if they function there.



I might have found what causes it. I was trying to play around with the boss defying Knock Out under certain circumstances, but it seemed that was causing it to stop moving. Is that supposed to happen, though?
Unless you show us what you did, we can't tell you what went wrong - and you didn't answer my question in the previous post, which can cause that effect.
Unless you show us what you did, we can't tell you what went wrong - and you didn't answer my question in the previous post, which can cause that effect.



I have like 8 different kinds of skills that are named Attack (all for different enemies). I double-checked to make sure he uses the version I showed in the screenshot.


After more playtests, I'm confident it was caused by the boss sitting at 0 HP while affected by a state resisting Knock Out. But I don't know if it's supposed to do that.
it will only do that if the state causes this - as I said, show us the state and we can tell you if it could do that. States have that option (that is how dead battlers are denied their actions), but if it does it means that you made a mistake in the state - and without seeing the state we can't check that.

Original thread: https://forums.rpgmakerweb.com/threads/enemy-skips-turns-at-low-hp.70128/