- Joined
- Jul 9, 2008
- Messages
- 25
trigger
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to [some ability]
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
([some unit] is dead) Equal to True
Then - Actions
Destructible - Open Gate (Vertical) 8874 <gen>
Game - Display to (All players) the text: TRIGGER ACTIVATED
Sound - Play Reincarnation <gen> at 100.00% volume, located at (Position of (Triggering unit)) with Z offset 0.00
Trigger - Turn off (This trigger)
Else - Actions
Basically, I'm trying to make a gate open when a unit uses an ability, but only if a certain unit is dead. Almost everything about this trigger works fine: If the unit is dead the sound will play and the text telling me it worked will show up. However, the gate doesn't open.
I don't understand why the gate won't open; I've made other triggers to open gates in the past (by clicking on a unit, typing a string, or when a unit enters a region), but this one has me stumped. What did I do wrong?
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to [some ability]
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
([some unit] is dead) Equal to True
Then - Actions
Destructible - Open Gate (Vertical) 8874 <gen>
Game - Display to (All players) the text: TRIGGER ACTIVATED
Sound - Play Reincarnation <gen> at 100.00% volume, located at (Position of (Triggering unit)) with Z offset 0.00
Trigger - Turn off (This trigger)
Else - Actions
Basically, I'm trying to make a gate open when a unit uses an ability, but only if a certain unit is dead. Almost everything about this trigger works fine: If the unit is dead the sound will play and the text telling me it worked will show up. However, the gate doesn't open.
I don't understand why the gate won't open; I've made other triggers to open gates in the past (by clicking on a unit, typing a string, or when a unit enters a region), but this one has me stumped. What did I do wrong?