A better enemy reinforcement script

I was wondering if anyone could help me find a script for making it so that when all on-screen enemies die, that more enemies can be put on screen?

It's possible to do so without extra scripting, but it's not done until the end of the turn, and, frankly, a bit messy. Not to mention it's limited to 8 enemies.
You can have more than 8 enemies by creating large troops


http://himeworks.wordpress.com/2013/03/09/large-troops/
Okay, that's one thing. How about the enemy reinforcements, though? I don't really want to have that many enemies active and on screen at once.(The player won't stand a chance Dx )

Ooh, wait. I think End Phase Triggers might be the answer.

EDIT: It's almost working....

But how am I supposed to make it work when the battle starts with multiple enemies onscreen?

http://himeworks.wordpress.com/2013/03/06/end-phase-triggers/
Possibly custom page conditions along with the end phase triggers.

http://himeworks.wordpress.com/2013/03/23/event-page-conditions/

Code:
$game_troop.alive_members.empty?
It doesn't quite seem to be working.

dtOSD8k.jpg
I've updated the custom page condition script.


Previously, the page condition commands were deleted, which is not intuitive to use.


It should work now.
Perfect. That should do it. Thanks.

Admins, close the thread please?

Original thread: https://forums.rpgmakerweb.com/threads/a-better-enemy-reinforcement-script.21113/