Is there a Script code to set the collapse method for an enemy?

Hi all! Im playing with some code on basic attacks and Im wondering if there is a way to set the collapse type (normal, boss, instant) via code to an enemy before it dies.

Thanks!!
If you don't want to set the collapse effect via the Enemy's Traits, I would first recommend using a State effect to add that trait, rather than trying to use a script call.

Original thread: https://forums.rpgmakerweb.com/threads/is-there-a-script-code-to-set-the-collapse-method-for-an-enemy.87154/