Well... I have this trigger but it doesn't seem to work. Is there any event response to get the unit which is killing the destructible?
-
WoodDropping
- Events
- Conditions
-
Actions
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Killing unit)) Equal to (==) Worker
-
Then - Actions
- Hero - Add 10 experience to (Killing unit), Show level-up graphics
- Else - Actions
-
If - Conditions
- Set TreeRandomer = (Random integer number between 1 and 30)
- Set Destructible_Point = (Position of (Dying destructible))
- Item - Create Wood at Destructible_Point
- Item - Create Wood at Destructible_Point
- Item - Create Wood at Destructible_Point
-
Item - Create Tinder at Destructible_Point
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- TreeRandomer Equal to (==) 20
-
Then - Actions
- Item - Create Egg at Destructible_Point
- Custom script: call RemoveLocation (udg_Destructible_Point)
-
Else - Actions
- Custom script: call RemoveLocation (udg_Destructible_Point)
-
If - Conditions
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)