Attack using action sequences not killing the target?

Hello, I've been using the Yanfly action sequences to add animations to my enemy's attack, and I've come across an issue. One of my attacks will NOT defeat the opponent, even if their HP drops to 0. I've seen the Collapse command and tried putting in the action sequence, but the target will always live with 0 HP. Does anybody know why this is happening? I will put the full action sequence for the attack below, thank you.

<Target Action>
clear battle log
display action
move user: user, back base, 30, auto offset x -80, offset y -100
face user: target
motion attack: user
animation 93: user, mirror
animation wait: 8
opacity user: 0%, 0
animation wait: 8
action effect
animation wait: 8
action effect
animation wait: 8
action effect
animation wait: 8
action effect
animation wait: 8
move user: home, 1
</Target Action>

<Follow Action>
opacity user: 100%, 0
motion spell: user
animation 95: user
action effect
</Follow Action>

<Finish Action>
clear battle log
wait: 60
</Finish Action>
When you're hitting multiple times, you should either:
1 - put immortal on the target first, then remove it at the end
or
2 - put a death break after each one

Right now your action sequence can glitch because you're dealing damage which might kill the target but just doing more stuff without any checking.

If that doesn't fix, then paste the actual skill entry from your database, including the full damage formula - that's what "action effect" does.
If an enemy stays alive with 0 HP, then it is protected by an immortal effect.
what you need to do is find out where that effect comes from, in order to remove it.

the usual way is a state with the resist death trait, but I know that yanfly implemented an additional immortal effect into the action sequences to allow for commands and displays after the target had been reduced to 0 HP, because otherway the action sequence might be aborted prematurely.
When you're hitting multiple times, you should either:
1 - put immortal on the target first, then remove it at the end
or
2 - put a death break after each one

Right now your action sequence can glitch because you're dealing damage which might kill the target but just doing more stuff without any checking.

If that doesn't fix, then paste the actual skill entry from your database, including the full damage formula - that's what "action effect" does.
Alright, I thought the multi-hit was the problem, I tired the immortal and death break but neither worked, the formula for the attack is just 12, would I just put "12" instead of "action effect"?

If an enemy stays alive with 0 HP, then it is protected by an immortal effect.
what you need to do is find out where that effect comes from, in order to remove it.

the usual way is a state with the resist death trait, but I know that yanfly implemented an additional immortal effect into the action sequences to allow for commands and displays after the target had been reduced to 0 HP, because otherway the action sequence might be aborted prematurely.
I've tried removing it, but couldn't because there was no way it could've gotten on the target, if the target is hit by any other attack after being reduced to 0 HP with this one, they will die.
the formula for the attack is just 12, would I just put "12" instead of "action effect"?
...I...you...what?
...I...you...what?
The attack does 12 damage, no other calcs.
I have no idea how you could've read what I said and interpreted it as "don't use the Action Sequence command that Yanfly has in the instructions, type a number instead."

None of this looks like a screenshot of your skill in the database.
The attack does 12 damage, no other calcs.
ATT_Turan wasn't asking for the damage formula, he was asking for the entire skill picture of the database, including but not just only the damage formula.
because the other properties of the skill might interfere

ninja'd
ATT_Turan wasn't asking for the damage formula, he was asking for the entire skill picture of the database, including but not just only the damage formula.
because the other properties of the skill might interfere

ninja'd
Oh ok

I have no idea how you could've read what I said and interpreted it as "don't use the Action Sequence command that Yanfly has in the instructions, type a number instead."

None of this looks like a screenshot of your skill in the database.
Screenshot 2023-11-10 121723.png

I added the immortal bit as a potential fix, forgot to remove it after it didn't work.

@Misk-ivus , please avoid double posting, as it is against the forum rules. You can use the "Edit" function on your posts to add additional information you've forgotten or respond to multiple people. You can review our forum rules here. Thank you.

I'll merge them for you, but if you want to respond to multiple people please use the '+Quote' button or '@' them.
I added the immortal bit as a potential fix
I never told you to ADD an immortal effect.

I told you to find out if it was added without your knowledge and then remove that case
I never told you to ADD an immortal effect.

I told you to find out if it was added without your knowledge and then remove that case
I added it as one of ATT_Turan's potential fixes where I add an immortal state then remove it at the end. I've removed it and it still doesn't work.

I could find no way an immortal state was added. The database entry is very simple, so the issue must be the action sequences.
Well, your move user command is wrong...you can't move the user to the user's back.

I shouldn't imagine that would glitch the entire sequence, but you should still fix it.
Well, your move user command is wrong...you can't move the user to the user's back.

I shouldn't imagine that would glitch the entire sequence, but you should still fix it.
Huh, well, it works, it makes the user move diagonally upwards, which is what I wanted. But I did temporarily remove it and it didn't fix anything. Not like it would.
Huh, I wouldn't have thought that was acceptable syntax. Oh well, my bad.
I could find no way an immortal state was added. The database entry is very simple, so the issue must be the action sequences.
you dont have a setup action, and im pretty sure that when you dont have one, immortal is set true by default. add
Code:
immortal: targets, false
after the last hit of your skill

i think either follow or finish usually sets it off by default, but since youre using both of them and never do it yourself, it doesnt happen
you dont have a setup action, and im pretty sure that when you dont have one, immortal is set true by default. add
Code:
immortal: targets, false
after the last hit of your skill

i think either follow or finish usually sets it off by default, but since youre using both of them and never do it yourself, it doesnt happen
I added a blank setup action and it works now, thank you!
you dont have a setup action, and im pretty sure that when you dont have one, immortal is set true by default.
Nice call, I never knew that.

But it's still weird, because then my initial suggestion of setting immortal to false at the end should've worked, regardless of where it was being turned on.
But it's still weird, because then my initial suggestion of setting immortal to false at the end should've worked, regardless of where it was being turned on.
it should, but they might have made an error in doing it.
a long time ago i tried doing something with action sequences and just copy pasted yanfly's example for immortality directly off of the webpage without looking at its usage. In their example for it, it doesnt have the comma after immortal and it wont work without it. So if Misk did the same thing it wouldnt have worked for them either
1699644954181.png
@Robro33 Good point, there are a few errors in the usage examples on the page.

Always a good reason to make changes and then post the changes, as requested above, rather than just saying the changes didn't work 😉

But glad it's working now.

Original thread: https://forums.rpgmakerweb.com/threads/attack-using-action-sequences-not-killing-the-target.162806/