Hello, I have been trying to figure out how to keep my enemies dead, but their sprite remains on the spot and they still activate battles when I touch them. How do I keep the enemies dead? How do I make sure their sprite is not visible anymore when they are defeated? Please help, I have been trying to figure this out for a while now, and it's making me very confused. I tried Google and Youtube, but I think it is a very specific thing, and I can't seem to find it, or I don't know how to word it correctly. Anyway, I shall post some screenshots of what I have tried:
how to make enemies disappear once killed?
RPG Maker MZ SupportTwo things:
You need to make it so that when the player wins, they flip one of the the event's self switches.
Then you need to add a 2nd page, leave it empty, and make the condition be that the self switch is on.
You need to make it so that when the player wins, they flip one of the the event's self switches.
Then you need to add a 2nd page, leave it empty, and make the condition be that the self switch is on.
Robro's suggestion will work perfectly fine, but it's worth noting that enemies won't respawn - which is useful for any event type (enemy or otherwise) that you don't want to repeat - such as a boss battle or chest.
If for some reason you want enemies to respawn, you can simply add the "erase event" event command to the win conditions.
This will, as the name implies, erase the event. However, reloading the map will restore the event. This allows for respawning events which could be useful for some common enemy encounters, resource nodes, or maybe some set dressing like a bird that flies away if you get too close.
If for some reason you want enemies to respawn, you can simply add the "erase event" event command to the win conditions.
This will, as the name implies, erase the event. However, reloading the map will restore the event. This allows for respawning events which could be useful for some common enemy encounters, resource nodes, or maybe some set dressing like a bird that flies away if you get too close.
Hello, thank you for your reply! I have tried the steps, this is what happened:
I couldn't start any battle with the blob-like creature, it disappeared when I booted the game. Maybe I misunderstood. But here are screenshots to show what I did.
So I have turned on the self switch A, and I made a new page like you have suggested. The enemy is gone without even battling it.
Thank you for your tips! I want most enemies to stay dead, that is the thing. Like this crowd enemy that I will use for some areas, like narrow hallways. But!!!! I could use that for some specific enemies that just *won't* die, just to be more of a creepy nuisance.

On event page one, you should not check the self switch conditional.
The check boxes on the left side of the event page are the conditions that need to be met in order for the event page to be active. So the first page should have no conditions - meaning it's active always until another condition overrides it. Which to that end, you should understand how event pages are handled.
Event pages are read in order of:
First condition met from the highest number page.
So if you have 3 event pages, page 1 has no condition, page 2 has Self Switch A condition, and page 3 has Self Switch B condition. When Self Switch A is activated, page 1 will no longer be active, page 2 will become active. If self switch B gets turned on, then page 3 will become active (even if self switch A is still on. This is because Page 3 has the highest priority)
So, for you case, page 1 should have no conditions checked.
In battle processing, on Win condition: enable Self Switch A
on page 2, check the self switch A conditional. Leave everything else blank.
viola! The enemy disappears as if defeated.
This type of eventing, and how event pages are handled, is important fundamental information in understanding how many operations are handled in the game.
Such as picking up an item; the concept is more-or-less the same, just without the battle processing. Page 1: do things, then enable self switch. Page 2: leave blank, self-switch condition checked.
The check boxes on the left side of the event page are the conditions that need to be met in order for the event page to be active. So the first page should have no conditions - meaning it's active always until another condition overrides it. Which to that end, you should understand how event pages are handled.
Event pages are read in order of:
First condition met from the highest number page.
So if you have 3 event pages, page 1 has no condition, page 2 has Self Switch A condition, and page 3 has Self Switch B condition. When Self Switch A is activated, page 1 will no longer be active, page 2 will become active. If self switch B gets turned on, then page 3 will become active (even if self switch A is still on. This is because Page 3 has the highest priority)
So, for you case, page 1 should have no conditions checked.
In battle processing, on Win condition: enable Self Switch A
on page 2, check the self switch A conditional. Leave everything else blank.
viola! The enemy disappears as if defeated.
This type of eventing, and how event pages are handled, is important fundamental information in understanding how many operations are handled in the game.
Such as picking up an item; the concept is more-or-less the same, just without the battle processing. Page 1: do things, then enable self switch. Page 2: leave blank, self-switch condition checked.
Thank you! It worked! Good to know, I will look into events further, very happy that it works now!!!
Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-enemies-disappear-once-killed.180943/