じ☆ve冰风 发表于 2026-7-30 18:54:22

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.


http://dl.dropbox.com/u/23043573/RPG%20Maker/Screenshot/enemyReinforcements1.jpg


Download

Get it at Hime Works

Usage

We begin with a troop


http://dl.dropbox.com/u/23043573/RPG%20Maker/Screenshot/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.


http://dl.dropbox.com/u/23043573/RPG%20Maker/Screenshot/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
http://dl.dropbox.com/u/23043573/RPG%20Maker/Screenshot/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)
http://dl.dropbox.com/u/23043573/RPG%20Maker/Screenshot/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)


http://dl.dropbox.com/u/23043573/RPG%20Maker/Screenshot/enemyReinforcements6.jpg



本贴来自国际rpgmaker官方论坛作者:Tsukihime处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/enemy-reinforcements.3096/
页: [1]
查看完整版本: Enemy Reinforcements