RMMV Yanfly Battle Engine, trouble with sequencing.

FrogScholar

Villager
Member
Joined
Apr 1, 2020
Messages
9
Reaction score
1
First Language
English
Primarily Uses
RMMV
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 :)
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,754
Reaction score
14,503
First Language
English
Primarily Uses
RMVXA
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.
 

FrogScholar

Villager
Member
Joined
Apr 1, 2020
Messages
9
Reaction score
1
First Language
English
Primarily Uses
RMMV
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.
 

Attachments

  • KO.PNG
    KO.PNG
    102.1 KB · Views: 6

Stimulantfound

La Princesa Stephany
Veteran
Joined
Feb 14, 2021
Messages
60
Reaction score
92
First Language
Español
Primarily Uses
RMMZ
Can we see your Enemies tab, specifically Traits?
 

Sword_of_Dusk

Keyblade Master
Veteran
Joined
Sep 13, 2015
Messages
359
Reaction score
394
First Language
English
Primarily Uses
RMMV
@FrogScholar You should probably post your action sequence too. Maybe something in there is being weird.
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
696
Reaction score
372
First Language
English
Primarily Uses
RMMV
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)
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
41,863
Reaction score
14,516
First Language
English
Primarily Uses
RMMV

I've moved this thread to Plugin Support. Please be sure to post your threads in the correct forum next time. Thank you.

 

FrogScholar

Villager
Member
Joined
Apr 1, 2020
Messages
9
Reaction score
1
First Language
English
Primarily Uses
RMMV
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

Villager
Member
Joined
Apr 1, 2020
Messages
9
Reaction score
1
First Language
English
Primarily Uses
RMMV
@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>
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
696
Reaction score
372
First Language
English
Primarily Uses
RMMV
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.
 

Latest Threads

Latest Posts

Latest Profile Posts

I am adamant about not having missable quests, which means having to write entirely new scenes at each plot progression that takes into account that time and events have passed since the quest could first be accepted while still having there be a quest to solve in the first place. It's worth every second.
Surprisingly useful and thought provoking
Working on animation. Trying to see if I can apply it meaningfully to my games!
ddwk.png

working on the sprite for Devali <3
My Game Development Livestream

Forum statistics

Threads
110,378
Messages
1,052,807
Members
143,421
Latest member
keiberus
Top