Tsukihime

Enemy Reinforcements

9 posts in this topic

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

remove_troop(troop_id)
enemyReinforcements6.jpg Edited by Tsukihime

Share this post


Link to post
Share on other sites

Then I can create a summoner skill by using the script call on a common event? or this is just to be used on the troop events?

Share this post


Link to post
Share on other sites

The script was done only with (troop) events in mind, but any event call should work as long as you are in battle. I don't know what happens if you are not in battle.

 

You are doing things like adding more enemies in a certain position without having to do any scripting or measurements (for accurate placement). Everything is done using built-in features.

 

You can use a common event to have enemies summon enemies into the current battle, placing the enemies in designated places.

Edited by Tsukihime

Share this post


Link to post
Share on other sites

Hello! First of all I love this script! Its a life saver. I'm having a little trouble with it though!

 

Screen%20shot%202013-02-11%20at%204.45.4

 

Two enemies are called Left Arm Monster and Right Arm Monster, but only Left Arm Monster's name shows up when selecting targets, you can select this empty space and hit the Right arm monster, but its name isnt visible. Can you help me figure out what's causing this? 

Thanks in advance :)

Share this post


Link to post
Share on other sites

I like this script, but unfortunately the yami order gauge script don't show icons for these added enemies.

 

Somebody can help me for fix it?

Edited by thottee

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.