making spawning enemies in battle

hey so i wanted to create a monster which when their HP gets to 25% or below it spawns a copy of itself however i had problems with it in the troop menu i tried moment turn and battle battle does nothing turn does nothing and moment does work but it freezes the game


i also wanted to make a skill that spawns enemies at first i thought of using common events or switches but those did not work


does anyone know how to make this type of enemy?
please post a screenshot of your troop event so that we can see where it went wrong - because that is the regular and intended use for the "appear halfway" option and the troop events, and they should work (for all your stated cases) if done properly.
You know, I'm also going to ask this question. I was trying to make a skill spawn a clone of the enemy. I even tried scripts, but had little success...
It's definitely doable; I regularly do it in my games.  The basic setup is to use the Appear Halfway option in Troops, and the Event Command which makes an Enemy Appear.


The reasons for the Moment Freezes / Battle Doesn't Work is probably your incorrect usage of these scopes.  The Moment event will keep activating forever as long as its conditions are met (this can look like a Freeze), so you should give it a Switch condition as well and turn the switch OFF as soon as it runs.  The Battle event will activate once during the battle as soon as its Conditions are met, so if, for example, the Conditional Branch inside the event isn't met, it will look like the Event Page did nothing even though it ran once.  You could use @Tsukihime's Event Page Conditions script to add an appropriate condition to make sure it only runs when you want it to.


Finally, if you are Transforming an enemy aroundt the same time you make it appear, weird things can happen, including visual bugs.  Use a Battle Animation right after the Transform and right after the Appearance if you are using Transforms and Enemy Appear in close proximity.


If you are still having problems after these solutions, it means you didn't event it correctly and you will need to show us your Troop Event pages (and preferably your enemies from the DB as well) for us to provide any further help.
It's definitely doable; I regularly do it in my games.  The basic setup is to use the Appear Halfway option in Troops, and the Event Command which makes an Enemy Appear.


The reasons for the Moment Freezes / Battle Doesn't Work is probably your incorrect usage of these scopes.  The Moment event will keep activating forever as long as its conditions are met (this can look like a Freeze), so you should give it a Switch condition as well and turn the switch OFF as soon as it runs.  The Battle event will activate once during the battle as soon as its Conditions are met, so if, for example, the Conditional Branch inside the event isn't met, it will look like the Event Page did nothing even though it ran once.  You could use @Tsukihime's Event Page Conditions script to add an appropriate condition to make sure it only runs when you want it to.


Finally, if you are Transforming an enemy aroundt the same time you make it appear, weird things can happen, including visual bugs.  Use a Battle Animation right after the Transform and right after the Appearance if you are using Transforms and Enemy Appear in close proximity.


If you are still having problems after these solutions, it means you didn't event it correctly and you will need to show us your Troop Event pages (and preferably your enemies from the DB as well) for us to provide any further help.


thanks!

Original thread: https://forums.rpgmakerweb.com/threads/making-spawning-enemies-in-battle.60797/