On death triggers?

hey,

I am trying to build a boss who summons 4 minions every x turns and kills them before he spawns them anew.
Those minions never attack and are just there to trigger different events based on what type of minion it was upon dying.

Spoiler: Solution
I figured it out by myself using a lot of conditional branches and setting the life of the minions to a ridicolous height.
Now I let the trigger happen on 99% life or below and kill it after the force action.

For the kill from the Boss itself I extended the commom event to summon them also with a lot of conditional branches so that the effect happens before the "new" ones are summoned.

Spoiler: Problem
Right now I let them appear and then transform them into the randomized type it should be.
But I stepped upon the problem, that I can only trigger an event based upon a minion on a certain position dying.

Is there a way to trigger it based on the type of monster it was?
And can I trigger a different event, if the boss kills them himself?
'Scripts' is where people who have written a completed script they want to share with others can post it.

Moved to: RPG Maker XP
Sorry about that - i didnt see that I was in the script section...
thanks for moving it to the correct spot
Figured it out by myself - using skills to call common events now. :LZYgrin:

Now I am still stuck to make the enemys disappear during the battle without dying (because that causes the trigger for some events).
I have read about a script-command but I only got error messsages as I tried to use it.

Edit: After putting a lot of hours into figuring it out - I think I got it but there is still 1 thing missing...
I use the immortal state to activate triggerred events of dying enemys before letting them truly die.
how do I reapply the immortal state after the boss summoned "new" minions?
You just use the change state command for enemies.

Original thread: https://forums.rpgmakerweb.com/threads/on-death-triggers.117388/