Jump to content
Tow

Define amount of enemies by variable

Recommended Posts

I have got a scenario, where the hero enters a cave and has to pass 4 orcs by sneaking an kill one after another silently. If one notices the hero the rest of the not killed orcs shall attack.

 

So. Is there a way to define the amount of orcs in the battle system (default system of ace).

 

Thanks for help.

Share this post


Link to post
Share on other sites

Use control variables to store the number of orcs in a variable, and then in your event use conditional branches to check the value of that variable and start the battle with the appropriate troop.

if variable == 4
   do battle with 4 orcs
if variable == 3
   do battle with 3 orcs
...

Share this post


Link to post
Share on other sites

This way I already know. But then I have to create different troops. I thought there could be a way to make it with only one troop, which takes references to a variable.

Share this post


Link to post
Share on other sites

There is a way.

 

Do what was said with the number of orcs in the variable.

 

Create a troop with 4 orcs.

 

Make 3 of them hidden by right clicking them and doing appear half-way.

 

At turn 0 - 0 do a check on the variable. Depending on how high the variable is, make the orc appear.

 

2 or more, Orc 2 appears.

 

3 or more, Orc 3 also appears.

 

4 or more, Orc 4 also appears.

Edited by Titanhex

Share this post


Link to post
Share on other sites

Guru, sorry I haven't noticed your answer.

 

EDIT: Thank you, I will try it

Edited by Tow

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

  • Recently Browsing   0 members

    No registered users viewing this page.

×
Top ArrowTop Arrow Highlighted