This script allows you to add enemy reinforcements by adding members from a particular troop into the current battle.
This allows you to set-up their position and appearance in the editor so that you can accurately indicate where reinforcements should appear.
Single enemies or entire troops may be added to the battle.
An entire troop may also disappear from the battle.Usage
There are two ways to add new enemies
-add one enemy
-add an entire troop
To add a new enemy to the battle, use the script call
where the troop_id is the ID of the troop that the enemy is in, and
the index is the order that they were added in the editor.
You may need to test it a few times to get the right index
To add an entire troop, use the script call
And the entire troop will be copied over.
It is also possible to remove an entire troop from battle.
All members of that troop will disappear when this script is called
Here is my troop 1, with one slime.
It has event that will add one enemy from troop 2, located at index 1.
This is troop 2, with two bats. It's not obvious which one is index 1
But it seems like the one on the top-left is index 1. So then the other one is index 0 (because there are only two of them)Download