• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

I need help with triggering

Status
Not open for further replies.
Level 8
Joined
Jun 13, 2010
Messages
344
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.
 
Status
Not open for further replies.
Top