Event after enemy death?

I want to run an event after a boss battle where basically after the battle ends if the boss dies its sprite's graphics out of battle change and if the player dies instead they transition to another place

how can I do this in the simplest way possible? (I'm pretty bad with scripting and plugins so if there's an easy way that would be appreciated)
The part after a win is easy (just default eventing) but player death is automatic game over unless you're using Plugins.
New Event -> Battle Processing (select your boss), tick "Can Loose" , click OK and you will see event branch
if win:
control self-switch "A" - ON
if loose:
Transfer Player
and then click New Event Page and tick Self Switch "A"
New Event -> Battle Processing (select your boss), tick "Can Loose" , click OK and you will see event branch
if win:
control self-switch "A" - ON
if loose:
Transfer Player
and then click New Event Page and tick Self Switch "A"
Thanks! I didn't even notice
When you do battle, this is the flow:
Map -> Battle -> Map

@Landazar's method works on the Map phase. Basically, the battle has ended and you're now back on the map. This is pretty basic stuff too.


But if you intend to do a multi-stage boss battle, where if you defeat the boss, he'll transform into a new form, things get a little bit more difficult (but only a little bit). This part is obviously done in the Battle phase.

All battle-related events are handled in the Database, under "Troops".
For Page 1 of the Battle Event, you want the Condition to be Turn 0 (starts immediately before the player can do anything).
Inside Page 1, you want to "Change Enemy State" and give your enemy the "Immortal" state. That way, even if the enemy's HP is reduced to 0, he won't die (yet) and the battle won't end, this allows you to run additional events.

In Page 2, the condition should be Enemy HP <= 0%.
From there, you can do whatever it is you intend to do. You could, for instance, have the enemy say something, then remove his "Immortality" state to make him die, thus the battle ends and you're returned to the map.
If you don't make your enemy immortal first, he'll die before Page 2 can be executed, so the event will never run.


The same applies to the player as well. Make him immortal in Turn 0, then check if his HP is 0% or below.

Original thread: https://forums.rpgmakerweb.com/threads/event-after-enemy-death.96689/