MV self switch parallel process (Chrono Engine)

The weird thing is, I just tried all this in the (cross engine) demo, and it still happens.

I set an enemy's event page (self switch C) to play a sound (parallel process) on that page, and nothing happens when the enemy dies.

(Obviously, I commented out the plugin line so the event doesn't disappear.)

The enemy stays stuck in its corpse sprite. But if I leave the map and re-enter, the sound plays.

Demo here.
There is some automated Chrono Engine process to erase the event before your C page kicks in. However the C self switch still gets toggled, so when you re-enter the map the C page plays.
There is some automated Chrono Engine process to erase the event before your C page kicks in. However the C self switch still gets toggled, so when you re-enter the map the C page plays.

Yes, I know, but don't you understand that I already commented out the line that prevents the event from being deleted?

The line is this:

JavaScript:
//this.executeCollapse(char,battler)
// Do not remove enemy sprite upon death

If the event is no longer deleted by commenting out that line, which it is (because the event remains fixed on the corpse sprite), it should execute all the instructions on that page in parallel, which it doesn't.

It only does this if I re-enter the map (which doesn't help). I need the instructions to execute once the enemy is on page 3 (its corpse).
Yes and I told you commenting out that line wasn't enough.

Changing what happens when an enemy dies is going to require a patch plugin.
Here's a video of what happens.

The page (self switch C) has the corpse sprite with a simple instruction: a message that says "test," which only executes when I exit the map and re-enter.

Does anyone know how to fix this? There must be a way to refresh the event so it executes the instructions on that page again.

The easiest way to do what you want is find the line of code responsible for decreasing the enemy's opacity then erasing it on death and replace it with a line of code to change the enemy's character sheet to a dead one instead.
The easiest way to do what you want is find the line of code responsible for decreasing the enemy's opacity then erasing it on death and replace it with a line of code to change the enemy's character sheet to a dead one instead.
What does opacity have to do with it? Did you watch the full video?

There you can see that the monster corpse sprite is displayed on the third page of the event with maximum opacity.

What you need to find is the line that disables the event so that no instructions are executed (once self-switch C is activated), regardless of whether it's in a parallel process or not.
Because you need to change the section of code that is executing when an enemy dies to play your custom death animation instead, and dropping opacity is part of that section of code.

Original thread: https://forums.rpgmakerweb.com/threads/self-switch-parallel-process-chrono-engine.178992/