[Chrono Engine]Fun with dead enemies

I'm trying to make it so when an enemy event is defeated, it just switches to another state. Like the koopa troopas in Mario Bros where you jump on it and it turns into a shell you can kick around.

The notetag which is supposed to do this is Dead Selfswitch Id. The problem is once the enemy dies, the event fades out. From what I can tell, the notetag is only good for giving the event a different character sprite half a second before it dies.
what about using a normal switch with an event that was hidden until switch is turned on.
page 1 empty
page 2 req switch autorun, moves into the place of the encounter event, turn on self switch
page 3 req self switch, koppa shell event page

trick had to use couple times with rpgmFes
yes
the only work around is replace it by spawn or morp or move other event to that place
unless you know how to edit code
and chrono engine is not the easy one to edit
Darn...I was hoping to avoid creative jury-rigging. Not to rail on Tiamat's suggestion too hard, but that's only going to work on a single stationary enemy. I want to do it on a class of enemies which can move around.

When I figure this out, I'll make a post describing what I did for future reference.
So, I ended up with something that closer resembles the Magic Powder from Legend of Zelda: Link to the Past. It's a special skill that's awkward with a one tile range, which if it connects transforms the target into....well, whatever I end up saying it does. At the moment I plan on having the magic powder transform the enemy into a sentient cudgel that the player can then pick up and use to beat more enemies with, because that's what heroes do.

I did this with a combination of the Chrono Engine as well as Yanfly's "Event Triforce" plugins. Since I've been learning by modifying a copy of the demo, I have all of the Yanfly mods referencing the map 001 "Tool Map".

To do this, you need:
A skill on the skills database with associated skill event on the tool map
A to be spawned event which the enemy will be transformed into. At the moment mine is a teddy bear, though as I said I plan on it being a cudgel eventually.
An event in the corner of the playable map for running parallel processes. I call mine "MCU"
Two variables "transX" and "transY"
Two switches "marco" and "polo"
And finally, a bad guy on the enemies database with associated event on the playable map

I have the magic powder skill applying an insta-kill effect to get rid of the bad guy. I'll have to balance it later to stop it from being effective on bosses.

The magic powder event is just a projectile that takes one step forward and doesn't repeat. After all the chrono engine comments, it'll set transX and transY to the player's coordinates, then run a series of conditional checks to find the direction the player is facing, then add or subtract 1 as appropriate. I've found that chrono engine spawned events don't have coordinates, which is why I'm having the event plot where it is relative to the player. Finally, the magic powder event will turn the "marco" switch on.

The Bad Guy in the enemies database has the "Dead Switch Id" note set for "polo"

The MCU then runs parallel checks. One event page activates if "marco" is on, where it'll wait 5 frames and then turn it off. A greater priority event page activates if "polo" is on. This one will run a conditional check if "marco" is on, and if so will spawn in a Teddy Bear at transX and transY. After the conditional check, the event page will turn "polo" off regardless.

So, if Magic Powder kills the Bad Guy, both "marco" and "polo" are turned on, and the MCU spawns in a Teddy Bear one step in front of the player.

If the Bad Guy dies from something that isn't Magic Powder, "polo" is turned on, but immediately turned off by the MCU. Nothing happens.

If the magic powder skill is used but hits nothing, "marco" is turned on, stays on for 5 frames, and is turned off by the MCU. In theory, if a Bad Guy were to die within those 5 frames from something other than Magic Powder, the Teddy Bear would be spawned in, but that's impossible due to skill cooldowns.

Original thread: https://forums.rpgmakerweb.com/threads/chrono-engine-fun-with-dead-enemies.119425/