I'm using Yanfly's Death Common Events script right now, (which triggers a common event every time an enemy dies in battle)
Mostly I never noticed this because most of the common events I used are single enemy based (boss death) or variable based (adding enemy kill count) but after an extensive usage of it in making a Multi-Man Smash styled fight where you have to beat 100 enemies, (utilizing Hime's Enemy Reinforcements script and Battle Rules) I've started to notice the quirks.
The common events sometimes will not trigger.
At first I thought it was because, "Well, 100 enemies, it will eventually lag and die out probably so I'll just reduce it..." but I noticed the bugs started happening as early as the third kill (and the enemies hasn't actually respawned yet. The troop starts with 4 enemies.)
Then I thought it was something wrong with Yanfly's Enemy HP Bar script since the HP bars sometimes bug out and not pop up when an enemy is dying and then popping up simultaneously after the turn ends, but removing it had no result.
And then after that I thought it was the fancy animations from moghunter for enemy spawns but disabling that had no effect either.
Changing the death common event to only modify a variable and then calling a separate common event per turn to respawn depending on how many opponents were killed that turn via that variable did not work.
I already put the script as low as possible with my other scripts as well, and it only used aliases and new methods.
Can anyone help me with this?
EDIT: Also, killing the enemies with F8 always triggers the common event. Does it have anything to do with Yanfly's Battle Engine? As far as I know perform_collapse_effect is generally unchanged...
EDIT2: It seems the bugs start to occur when I add enemies into the battle through Enemy Reinforcements.
EDIT3: An example https://mega.co.nz/#!GdlVCAKC!Qx94oGwdAErKNzp9dIik44bx1mp8vVum627ihJC2spw
EDIT4: Editted the title of the topic in light of new info
Mostly I never noticed this because most of the common events I used are single enemy based (boss death) or variable based (adding enemy kill count) but after an extensive usage of it in making a Multi-Man Smash styled fight where you have to beat 100 enemies, (utilizing Hime's Enemy Reinforcements script and Battle Rules) I've started to notice the quirks.
The common events sometimes will not trigger.
At first I thought it was because, "Well, 100 enemies, it will eventually lag and die out probably so I'll just reduce it..." but I noticed the bugs started happening as early as the third kill (and the enemies hasn't actually respawned yet. The troop starts with 4 enemies.)
Then I thought it was something wrong with Yanfly's Enemy HP Bar script since the HP bars sometimes bug out and not pop up when an enemy is dying and then popping up simultaneously after the turn ends, but removing it had no result.
And then after that I thought it was the fancy animations from moghunter for enemy spawns but disabling that had no effect either.
Changing the death common event to only modify a variable and then calling a separate common event per turn to respawn depending on how many opponents were killed that turn via that variable did not work.
I already put the script as low as possible with my other scripts as well, and it only used aliases and new methods.
Can anyone help me with this?
EDIT: Also, killing the enemies with F8 always triggers the common event. Does it have anything to do with Yanfly's Battle Engine? As far as I know perform_collapse_effect is generally unchanged...
EDIT2: It seems the bugs start to occur when I add enemies into the battle through Enemy Reinforcements.
EDIT3: An example https://mega.co.nz/#!GdlVCAKC!Qx94oGwdAErKNzp9dIik44bx1mp8vVum627ihJC2spw
EDIT4: Editted the title of the topic in light of new info