Create a troop with random enemies
In this topic I'll present a simple way to Create a troop with random enemies
First: Create a new troop
Then add some enemies (like tow Ghosts and one Basilisk)
-Now hide enemies : right click on enemy then select "Appear Halfway" ,Do that for each enemy.
Second: Create a variable call it : eni ,for example.
Third: Now we'll write the event in Battle Event of troop:
-Insert "Control Variable" command ,then set eni to random between 1 to 3.
-Insert a conditional branch with Else section
Set condition to : if eni =1
Then insert "Enemy Appearance " command in this conditional branch to show the first Ghost as a result of condition.
Then In Else section insert a new conditional branch this with Else section ,and insert "Enemy Appearance " command to show the second Ghost as a result of condition
Then In Else section insert a new conditional branch this without Else section ,and insert "Enemy Appearance" command to show Basilisk as a result of condition
-with that the enemies will appear according to variable.
You can play with that to make a complex thing like:
Show the first and second enemies if eni is 4 or show all if eni is 5 and so…..