Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
it should be something like
Create Variable, let's call it K - integer
Event:
Unit X dies
Condition:
None
Action:
Set K = random number between 1 and 6.
If K = 1, then create A unit.
If K = 2, then create B unit.
etc...
edit: i made this fast for you
Trigger
Events
Unit - Doom Beast 0041 <gen> Dies
Conditions
Actions
-------- Doom Beast is my Boss --------
Set Random = (Random integer number between 1 and 6)
If (Random Equal to 1) then do (Unit - Create 1 Peasant for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees) else do (Do nothing)
If (Random Equal to 2) then do (Unit - Create 1 Peon for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees) else do (Do nothing)
There is ability named summon hydras or something like that
Check Ancient Hydra unit and you will see it...
Edit ability, it work like this:
Unit die units set in ability are spawned
Play a little with it, maybe will you find it interesting and more useful that triggers.
As you can see Akhetaton's trigger, performs at a slower speed than mine, why ?
Because it uses IF/THEN/ELSE Multiple Function
The trigger, first, needs to check the current random number and decide which number is the unit related to
While mine, instant check, done.
It's up to you though to choose which one (Have you downloaded my test map?)
Open Object Manager and select abilities, hit Ctrl+F and write: "Spawn Hydra"
This spell and few others summon units when unit with ability die, if you add same unit with ability to this ability you will create infinite loop, in other words unit will be spawned as soon as it die
Play a little with it, maybe you find it useful
Anyway, trigger shown to you above is very basic, if you can't understand how it works, go check some tutorials fast, you will need skill for making good maps
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.