How to make enemies "faint" after setting their hp to 0

((Sorry for the quality of pics))


View attachment 37165


Step 1) Create Common Event. Name it "Sacrifice" "Bomb" "Revenge" whatever you want to name it. Set it up as in Image 1:


-Change Enemy HP


-Enemy #1


-(x) Decrease


-Constant: 9999 (or however much dmg you want them to take, 9999 is enough to kill them, but won't work if you use a plug in that allows for exceeding default stats. If so, use the [Change Enemy State] instead)


-[x] Allow Knock Out


View attachment 37166


Step 2) Create the Skill


-Set as image 2.. be sure to choose your own Icon, MP, TP, Animation (to be played on the targets), etc.


-Set as All Enemies


View attachment 37167


-Set as HP Damage and choose an Element type.


-Set the Damage you wish the skill to cause (either constant, percentile, special formula, or even variances, etc.)


-Add Common Event and Sacrifice Skill Used (or whatever you named it) to Effects.


View attachment 37168


Step 3) Assign the skill to an Enemy


-Choose the conditions and priority rating in which you want the enemy to use the skill. If you want the enemy to use the skill absolutely under specific conditions, use Battle Events for that.


-In this example I have made, Sacrifice is the highest priority attack, and will trigger when their HP is between 0% and 25% of their Max HP.


View attachment 37169


Step 4) This one is important. Whenever you create a troop of enemies, be sure to add the Skeleton FIRST. That puts the Skeleton in the first position. If you recall, we created the common event to affect the enemy in the first position. so that's important that whomever is using this skill be #1.


-If you want to have several skeletons in the same Troop, just create a second, third, fourth, etc. Common Event targeted at those positions, and a copy/paste skill calling the second, third, fourth, etc. Common Event... and then be sure that those enemies are in those positions in the troop.


I hope this makes sense. I am not an expert tutorial writer. LOL!! There may even be easier ways to accomplish this that you will find or others may tell you.


But, this is a simple way to get'r'done.


You may even add explosion animations to the Battler using the skill.. or a death message.. so long as you use the Wait function until it's complete before setting the Skeleton to die. 🙂



Hey man, thanks for the guide! It worked like a charm. 🙂


One last question though, when I have multiple skeletons in the troop composition, each one has to be a new skeleton sprite, right? Because I can't give the same skeleton multiple "Self-Destruct" skills calling for Common Events for different positions.


Anyway, thanks so much for all your help!
Oh, yes, that would be correct. Because you are assigning a different skill set/common event to each one. I would advise you that you simply just make 8 Common Events and 8 Skills.. Each skill referencing each common event/enemy position, just to have it all at the ready. I would even name the skills "Self-Destruct (1)" "Self-Destruct (2)" etc.. just to make sure they are all assigned properly until you are ready to publish your project. There is a trickiness to it in certain situations.. like if you want a Skeleton to be hidden in battle until summoned.. still, make sure that the Skeleton is placed in the Troop first. That way he still counts as the first position. In my project, I will be having a self-destructing monster, but his self-destruct will be able to be learned by one of the actors when he's hit with it.. in which case.. I will have to create a separate skill and common event for an actor self destruct..


I also will be adding a destruct animation and a battle message (kinda like "Skeleton uses Self Destruct" to my common events. You can do it too, just be sure you do all of that BEFORE the Change Enemy HP call, and be sure to add a Wait For Completion tag to it. Other wise the enemy will be erased and THEN all the animations, messages, etc. will take place.


If you have any problems with this skill, please feel free to ask me. 🙂
Oh, yes, that would be correct. Because you are assigning a different skill set/common event to each one. I would advise you that you simply just make 8 Common Events and 8 Skills.. Each skill referencing each common event/enemy position, just to have it all at the ready. I would even name the skills "Self-Destruct (1)" "Self-Destruct (2)" etc.. just to make sure they are all assigned properly until you are ready to publish your project. There is a trickiness to it in certain situations.. like if you want a Skeleton to be hidden in battle until summoned.. still, make sure that the Skeleton is placed in the Troop first. That way he still counts as the first position. In my project, I will be having a self-destructing monster, but his self-destruct will be able to be learned by one of the actors when he's hit with it.. in which case.. I will have to create a separate skill and common event for an actor self destruct..


I also will be adding a destruct animation and a battle message (kinda like "Skeleton uses Self Destruct" to my common events. You can do it too, just be sure you do all of that BEFORE the Change Enemy HP call, and be sure to add a Wait For Completion tag to it. Other wise the enemy will be erased and THEN all the animations, messages, etc. will take place.


If you have any problems with this skill, please feel free to ask me. 🙂



Awesome, great information! Thank you for your patience and I'll ask you if I have more questions. 🙂

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-enemies-faint-after-setting-their-hp-to-0.60885/