- Joined
- Sep 21, 2009
- Messages
- 127
Can anyone tell me why this trigger doesn't work?
Only the first unit casts the ability. The second one does it if the first ability could not be done. Can someone tell me why?
-
MyAbility
-
Events
- Unit - A unit Begins casting an ability
-
Conditions
- (Ability being cast) Equal to MyAbility
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of MyAbility for (Casting unit)) Equal to 1
-
Then - Actions
- Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) + 500.00)
-
Unit Group - Pick every unit in (Units within PrayertotheGdsRange of (Position of (Target unit of ability being cast))) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
And - All (Conditions) are true
-
Conditions
- ((Triggering unit) is A structure) Equal to False
- ((Owner of (Target unit of ability being cast)) is an enemy of (Owner of (Casting unit))) Equal to True
-
Conditions
-
And - All (Conditions) are true
-
Then - Actions
- Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + 100.00)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of MyAbility for (Casting unit)) Equal to 2
-
Then - Actions
- Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) + 500.00)
- Unit - Set life of (Casting unit) to ((Life of (Casting unit)) + 250.00)
-
Unit Group - Pick every unit in (Units within PrayertotheGdsRange of (Position of (Target unit of ability being cast))) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
And - All (Conditions) are true
-
Conditions
- ((Triggering unit) is A structure) Equal to False
- ((Owner of (Target unit of ability being cast)) is an enemy of (Owner of (Casting unit))) Equal to True
-
Conditions
-
And - All (Conditions) are true
-
Then - Actions
- Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + 100.00)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
Unit Group - Pick every unit in (Units within PrayertotheGdsRange of (Position of (Target unit of ability being cast))) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
And - All (Conditions) are true
-
Conditions
- ((Triggering unit) is A Hero) Equal to True
-
Conditions
-
And - All (Conditions) are true
-
Then - Actions
- Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + 750.00)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of MyAbility for (Casting unit)) Equal to 3
-
Then - Actions
- Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) + 500.00)
- Unit - Set life of (Casting unit) to ((Life of (Casting unit)) + 250.00)
-
Unit Group - Pick every unit in (Units within PrayertotheGdsRange of (Position of (Target unit of ability being cast))) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
And - All (Conditions) are true
-
Conditions
- ((Triggering unit) is A structure) Equal to False
- ((Owner of (Target unit of ability being cast)) is an enemy of (Owner of (Casting unit))) Equal to True
-
Conditions
-
And - All (Conditions) are true
-
Then - Actions
- Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + 100.00)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
Unit Group - Pick every unit in (Units within PrayertotheGdsRange of (Position of (Target unit of ability being cast))) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
And - All (Conditions) are true
-
Conditions
- ((Triggering unit) is A Hero) Equal to True
-
Conditions
-
And - All (Conditions) are true
-
Then - Actions
- Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + 750.00)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
Unit Group - Pick every unit in (Units within PrayertotheGdsRange of (Position of (Target unit of ability being cast))) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
And - All (Conditions) are true
-
Conditions
- ((Triggering unit) is A structure) Equal to True
-
Conditions
-
And - All (Conditions) are true
-
Then - Actions
- Unit - Set life of (Picked unit) to 100.00%
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
- Unit - Create 1 Dummy - PayerFriend for (Owner of (Casting unit)) at (Position of (Casting unit)) facing Default building facing degrees
- Unit - Add a 2.00 second Water Elemental expiration timer to (Last created unit)
- Unit - Order (Last created unit) to Human Paladin - Resurrection
- Unit - Create 1 Dummy - PayerEnemy for (Owner of (Casting unit)) at (Position of (Casting unit)) facing Default building facing degrees
- Unit - Add a 2.00 second Water Elemental expiration timer to (Last created unit)
- Unit - Order (Last created unit) to Human Paladin - Resurrection
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
Last edited: