MV Yanfly Battle Engine, trouble with sequencing.

Hi guys! I am using Yanfly's scripts as the base for my battle system, I've recently noticed that there are some enemies who will not day when they have lost all their HP. Upon googling, I found that people were having this problem connected to the Yanfly Sequence Action Packs. My research showed me that it may be due to the script making enemies immortal until the end of the combat sequence. To remedy this, I added this to my skills:

<follow action>
immortal: targets false
</follow action>

However, this has not solved my problem. If anyone else has any other ideas I would really appreciate it 🙂
Check your state 1. If state 1 is not KO no one will die in the game. The other thing to check is did you make the enemy state immune to state 1? If you do that they can never die either.
Check your state 1. If state 1 is not KO no one will die in the game. The other thing to check is did you make the enemy state immune to state 1? If you do that they can never die either.
KO is state 1 for this project. I made sure to compare it with the KO State in a clean version of MV too.
Can we see your Enemies tab, specifically Traits?
@FrogScholar You should probably post your action sequence too. Maybe something in there is being weird.
Also post the action sequence for the skill where enemies aren't dying. Just having the plugin in your game won't randomly cause enemies to become immortal unless you tell them to. If you have just one section of an action sequence (e.g. only a follow action), it will screw with how the skill functions. If you have anything, you should include setup, target and finish to guarantee functionality. (and Yanfly recommends removing immortal flags in the follow action section)
Moved to: Plugin Support
Also post the action sequence for the skill where enemies aren't dying. Just having the plugin in your game won't randomly cause enemies to become immortal unless you tell them to. If you have just one section of an action sequence (e.g. only a follow action), it will screw with how the skill functions. If you have anything, you should include setup, target and finish to guarantee functionality. (and Yanfly recommends removing immortal flags in the follow action section)

It's happening for every skill which is why I am confused. I took your advice and added the other action phases to each skill but this has caused most of my skills to just do nothing. For example this is the action sequence for "Thunderbolt", a single target electric type damaging skill.

<setup action>
</setup action>
<target action>
</target action>
<follow action>
immortal: targets false
</follow action>
<finish action>
</finish action>

Before adding in the other phases (setup, target and finish) this skill would deal damage, now it just gets skipped battle. I appreciate the assistance 🙂
@FrogScholar You should probably post your action sequence too. Maybe something in there is being weird.

I posted it in response to ATT_Turan but here is a copy of the action sequence for my Thunderbolt skill 🙂

<setup action>
</setup action>
<target action>
</target action>
<follow action>
immortal: targets false
</follow action>
<finish action>
</finish action>
If you use an action sequence, you need to have it do the entire skill. That will do nothing because you have programmed no actions in the entire sequence.

If you're not using an action sequence for a skill, you shouldn't put just one portion of it in there because it could cause erratic behavior.

Again, to reiterate, if you have not created an action sequence making your enemies immortal, then your problem is not from the action sequences. To test this, you can turn off the plugin in your plugin manager and go fight those enemies.

You'll need to check (and if you don't find the problem, post screenshots of) the Enemy entry in your database for the enemies that aren't dying...the Troop that they're in...the Skills that you're using (unless it's all skills and attacks won't kill them, that's probably not the problem).

Just for surety, go through your plugins and make sure they're in the order recommended by the developers, especially anything by Yanfly.

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-battle-engine-trouble-with-sequencing.134209/