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.
Download
Get it at
Hime Works
Usage
We begin with a troop
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.
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
Adding enemies
If you only want to add specific enemies from another troop, you can use this script call
add_enemy(troop_id, index)
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:
本贴来自国际rpgmaker官方论坛作者:Tsukihime处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:
https://forums.rpgmakerweb.com/threads/enemy-reinforcements.3096/