End Phase Triggers
This script allows you to run events before the victory/defeat processing occur.
I call it "end phase event processing", since it is just an extra check right after the last enemy/actor dies before the end phase occurs.
Get it at Hime Works
It is just standard eventing. I just made it so that there is some flexibility.
So for example, if you have an event that should run when the boss is defeated, you can set the event to run when the boss' HP is 0% or less. When the boss has 0% HP or less (eg: dead, or maybe not depending on the boss' state immunity), the event will run.
1. A boss appears when all minions have died.
2. A variable is incremented each time a particular enemy is killed.
You can use extended event page conditions with this script. More information at
Basically, by combining these two scripts, you can have arbitrary page conditions. Now you can really run an event when "all enemies are dead" by simply writing