Attack an NPC then it has an animation?

Hello! I want the player to be when they press shift near an NPC, it removes half its health. When it attacks again and health is 0, the NPC dies and has an animation. I got the animation and shift animations done, but I had it all complete until I messed up and didn't know what i did.

Original thread: https://forums.rpgmakerweb.com/threads/attack-an-npc-then-it-has-an-animation.172694/