Are you tired of making a ton of conditionals to have a controlled random effect?
Well anyway here are some new effects:
Selector Position Auto
Saves a list of positions from units on the map.
The units used may be destroyed afterwards.
Selector Position Manual
Saves a list of positions.
Selector Protounit Auto
Saves a list of protounits from units on the map.
The units used may be destroyed afterwards.
Selector Protounit Manual
Saves a list of protounits.
Army Change Type Selector
Changes the army to a random Protounit chosen from a selector.
Army Deploy Selector
Deploys an army with a random Protounit chosen from a selector.
If Different Units is ON and Count is greater than the Protounit will be randomized for each unit deployed.
Army Deploy Selectors
Deploys an army with a random Protounit and a random Location chosen from a selector.
If Different Units is ON and Count is greater than the Protounit will be randomized for each unit deployed.
Army Move Selector
Moves an army to a random Destination chosen from a selector.
Army Teleport Selector
Teleports an army to a random Destination chosen from a selector.
(Intended for Wave Systems but can be used for whatever.)
They are just Quest Var arrays but with a nicer interface.
Let's imagine a scenario where we defend the middle. I wanna spawn bad guys. And I want the protounit and position to be randomly chosen from a set of protounits and positions.
I put the possible bad guys on in the corner, let's say a pig, a goat and a cow, and I select them with Selector Protounit Auto. Then I put cin blocks where I want them to spawn and I select them with Selector Position Auto.
I make another trigger with loop and timer condition. I use Army Deploy Selectors with the two Selectors we previously made, a normal Army Move to the middle, and that's it! I got a wave system with different bad guys attacking from different angles without twenty conditional checks!
You can use the Manual versions of the effects if you don't want to use units on the map and do everything from triggers. You can also control the chance by selecting more of the same units. For example if you selected four pigs, two goats and one cow, a pig will spawn twice more often than a goat and four times more often than a cow.