I want to make the hero go to a drop loot area when killing a boss.
This is how it looks like:
Unit - A unit Dies
(Unit-type of (Dying unit)) Equal to Cavekeeper Mu'dar (Stoneflail)
Unit Group - Remove all units of Stoneflail from Stoneflail
Unit Group - Pick every unit in Stoneflail and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Picked unit) Equal to Hero1
Then - Actions
Set Hero_Stoneflail1 = (Picked unit)
Unit - Move (Picked unit) instantly to (Center of Loot Area Player 1 <gen>)
Unit - Set life of Hero_Stoneflail1 to 100.00%
Camera - Apply Camera 010 <gen> for (Owner of (Picked unit)) over 0.00 seconds
Set Stoneflail_Drop = (Random integer number between 1 and 5)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Stoneflail_Drop Equal to 1
Then - Actions
Item - Create Boss Item ftw 1 at (Center of Loot Area Player 1 <gen>)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Stoneflail_Drop Equal to 2
Then - Actions
Item - Create Boss Item ftw 2 at (Center of Loot Area Player 1 <gen>)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Stoneflail_Drop Equal to 3
Then - Actions
Item - Create Boss Item ftw 3 at (Center of Loot Area Player 1 <gen>)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Stoneflail_Drop Equal to 4
Then - Actions
Item - Create Boss Item ftw 4 at (Center of Loot Area Player 1 <gen>)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Stoneflail_Drop Equal to 5
Then - Actions
Item - Create Boss Item ftw 5 at (Center of Loot Area Player 1 <gen>)
Else - Actions
But it doesn't work. When I kill the boss, nothing happens. What is wrong?
Im sorry, i do not know how to make these smart windows.
This is how it looks like:
Unit - A unit Dies
(Unit-type of (Dying unit)) Equal to Cavekeeper Mu'dar (Stoneflail)
Unit Group - Remove all units of Stoneflail from Stoneflail
Unit Group - Pick every unit in Stoneflail and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Picked unit) Equal to Hero1
Then - Actions
Set Hero_Stoneflail1 = (Picked unit)
Unit - Move (Picked unit) instantly to (Center of Loot Area Player 1 <gen>)
Unit - Set life of Hero_Stoneflail1 to 100.00%
Camera - Apply Camera 010 <gen> for (Owner of (Picked unit)) over 0.00 seconds
Set Stoneflail_Drop = (Random integer number between 1 and 5)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Stoneflail_Drop Equal to 1
Then - Actions
Item - Create Boss Item ftw 1 at (Center of Loot Area Player 1 <gen>)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Stoneflail_Drop Equal to 2
Then - Actions
Item - Create Boss Item ftw 2 at (Center of Loot Area Player 1 <gen>)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Stoneflail_Drop Equal to 3
Then - Actions
Item - Create Boss Item ftw 3 at (Center of Loot Area Player 1 <gen>)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Stoneflail_Drop Equal to 4
Then - Actions
Item - Create Boss Item ftw 4 at (Center of Loot Area Player 1 <gen>)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Stoneflail_Drop Equal to 5
Then - Actions
Item - Create Boss Item ftw 5 at (Center of Loot Area Player 1 <gen>)
Else - Actions
But it doesn't work. When I kill the boss, nothing happens. What is wrong?
Im sorry, i do not know how to make these smart windows.