Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Untitled Trigger 001
Events
Destructible - A destructible within REGION <gen> dies
Conditions
(Destructible-type of (Last created destructible)) Equal to Barrel
Actions
Do nothing
Untitled Trigger 001

Events


Destructible - A destructible within Region <Gen> dies

Conditions


(Destructible-type of (Dying Destructible)) Equal to Barrel

Actions


Do nothing
That wouldn't work; where exactly was this "Barrel" created from that it was the last created unit? That doesnt make any sense.
Maybe you meant this:
This one checks if the dying destructible was equal to the barrel, and if it was it will continue with the actions.
Untitled Trigger 001
Events
Destructible - A destructible within Region <Gen> dies
Conditions
(Destructible-type of (Dying Destructible)) Equal to Barrel
Actions
Do nothing
I think the majority (if not all) of you missed the point. He wants to detect when a destructible is attacked, not taken down.
I doubt it's possible.
Events -

Time - Elapsed time is 1.00 seconds
Conditions
Actions -

Set DestructibleHealth = (Max life of Summer Tree Wall 0000 <gen>)

Trigger - Turn off (this trigger)

Trigger - Turn on (Trigger 2)
Events -

Time - Every 1.00 seconds of game time.
Conditions
Actions -

If (All conditions are true) then do (Actions) else do (Else Actions)


If (Conditions)



(Current Life of Summer Tree Wall 0000 <gen>) less than DestructibleHealth


Then (Actions)



Set DestructibleHealth = (Current Life of Summer Tree Wall 0000 <gen>)




-------- Rest of your actions for it being attacked --------


Else (Actions)

If (All conditions are true) then do (Actions) else do (Else Actions)


If (Conditions)



(Summer Tree Wall 0000 <gen> is dead) Equal to True


Then (Actions)



Trigger - Turn off (This trigger)



-------- Rest of your actions for it being killed --------



Else (Actions)
Don't you think that's awfully tedious for such a task? Plus, you can't catch which unit did the attacking.
I think the majority (if not all) of you missed the point. He wants to detect when a destructible is attacked, not taken down.
I doubt it's possible.
