- Joined
- Nov 17, 2019
- Messages
- 224
I had an idea where a hero summons a cloud of mist for his ultimate, and if the mist survive for 12 in game seconds the cloud or mist turns into a powerful unit. So far it works, but it only summons an earth titan (earth elemental) the other parts of it somehow don't work, it also does not flash the integer that was picked for the randomizing process, here is the trigger below, plz help
-
Untitled Trigger 1A
-
Events
-
Unit - A unit Spawns a summoned unit
-
-
Conditions
-
(Unit-type of (Summoned unit)) Equal to Cosmic Mist (Summoning) 2
-
-
Actions
-
Set ASummonU = (Summoned unit)
-
Set I = (Random integer number between 0 and 4)
-
Game - Display to (All players) the text: (String(I))
-
Wait 12.00 game-time seconds
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(ASummonU is alive) Equal to True
-
-
Then - Actions
-
Special Effect - Create a special effect at (Position of ASummonU) using Abilities\Spells\Items\AIil\AIilTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
Wait 0.30 game-time seconds
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
I Equal to 1
-
-
Then - Actions
-
Unit - Replace ASummonU with a Rock Titan using The new unit's max life and mana
-
Unit - Add a 120.00 second Generic expiration timer to (Last replaced unit)
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
I Equal to 2
-
-
Then - Actions
-
Unit - Replace ASummonU with a Faceless One Deathbringer using The new unit's max life and mana
-
Unit - Add a 120.00 second Generic expiration timer to (Last replaced unit)
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
I Equal to 3
-
-
Then - Actions
-
Unit - Replace ASummonU with a Magnataur Destroyer using The new unit's max life and mana
-
Unit - Add a 120.00 second Generic expiration timer to (Last replaced unit)
-
-
Else - Actions
-
-
-
-
-
-
-
Else - Actions
-
Do nothing
-
-
-
-