Enemy Reinforcements

This script allows you to combine and remove troops from battle. You can add other troops to the current battle, or add individual enemies from other troops. This allows you to create battles with many enemies, and you have full control over how they should be positioned by setting up the sprites in another troop.

In a battle with multiple troops, you can also remove an entire troop from battle.

The purpose of this script is to allow you to set up your troops using the troop editor, and then add them to battles without having to worry about how to place them.

enemyReinforcements1.jpg


Download

Get it at Hime Works

Usage

We begin with a troop

enemyReinforcements2.jpg


We would like to add more enemies to this battle, so we set up the second troop.

You will need to remember the "index" of each enemy, so it would be best to place them from left to right so.

In this example, the bat on the left is "enemy 1" and the bat on the right is "enemy 2", which is the order they were added.

enemyReinforcements3.jpg


Adding troops

The simplest way to introduce more enemies is to add an entire troop to the battle.

Use a script call

add_troop(troop_id)And the entire troop will be added to the battle
enemyReinforcements4.jpg


Adding enemies

If you only want to add specific enemies from another troop, you can use this script call

add_enemy(troop_id, index)
enemyReinforcements5.jpg
Removing troops

You can remove troops from battle. If a troop is to be removed, all enemies from that troop will disappear.  They are not "defeated" so you would not receive exp or gold from them. Use the script call

Code:
remove_troop(troop_id)
enemyReinforcements6.jpg
Script updated.


There was a bug where additional enemy names were not drawn in the enemy selection window (it would just be an empty, selectable space)


Something I've been considering is to merge event pages. This way, you can set up events in multiple troops and when you add a troop over, the events are also added. But that will require a lot of investigation to properly implement.


Another thing is the ability to merge two troops completely. This is not the same as "adding" a troop during battle using script calls; it is literally reserving multiple blocks of troops for one troop battle. Will be done as a separate script.


For developers that want to have "summon" skills, there may be a need to check whether the "summon" exists or not in the battle. The script does not support something like that.
The script has been updated to add support for an add-on for enemy events


The add-on is provided as a separate script.

Original thread: https://forums.rpgmakerweb.com/threads/enemy-reinforcements.3096/