Enemies wont have death animation if killed with scripts

voxet

Veteran
Veteran
Joined
May 25, 2022
Messages
39
Reaction score
20
First Language
english
Primarily Uses
RMMV
<Custom Action End Effect>
if (user.mp==0) {
user.addState(1)
}
</Custom Action End Effect>
im using yanfy's buff stat core for this, when I kill an enemy normally (with attacks directed at their hp) they die normally but when I try and kill them like this, while they are dead and I cant target them anymore, they just stay there on battle wich is really annoying, any ideas on how to fix this?
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
5,523
Reaction score
3,590
First Language
English
Primarily Uses
RMMV
Yes, don't skip all of the steps and directly apply KO :stickytongue:

A good example of this can be seen in Yanfly's Thornmail Tip & Trick. He shows how to damage a target, then check if it's dead and make it collapse.
 

voxet

Veteran
Veteran
Joined
May 25, 2022
Messages
39
Reaction score
20
First Language
english
Primarily Uses
RMMV
Thank you, the answer was way simpler than I'd ever think
 

Latest Threads

Latest Posts

Latest Profile Posts

I've never felt prouder of my little game!! *o*
DamageEvil_2.png added!
index.php

Forum statistics

Threads
125,672
Messages
1,172,707
Members
164,802
Latest member
thesailing
Top