- Joined
- Nov 18, 2012
- Messages
- 272
Can someone help me with this trigger? It won't cast if unit's life is not 100%.
-
Technomastery
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Technomastery
-
Actions
- Unit - Remove Gear Shield buff from Shieldedunit
- Set Shieldedunit = (Target unit of ability being cast)
- Set Tresspassdamage = (Life of Shieldedunit)
- Set ShieldHealth = (80.00 + (20.00 x (Real((Level of Technomastery for Technomancer)))))
- Unit - Create 1 Dummy Shield for (Owner of Technomancer) at (Position of Technomancer) facing Default building facing degrees
- Set dummy = (Last created unit)
- Unit - Order dummy to Orc Shaman - Bloodlust Shieldedunit
- Unit - Add a 2.00 second Generic expiration timer to dummy
- Trigger - Turn on Technocheck <gen>
- Set dummy = No unit
-
Events
-
Technocheck
-
Events
- Time - Every 0.25 seconds of game time
-
Conditions
- (Shieldedunit is alive) Equal to True
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ShieldHealth Less than or equal to 0.00
- (Shieldedunit has buff Gear Shield ) Equal to False
-
Then - Actions
- Trigger - Turn off (This trigger)
- Set Shieldedunit = No unit
- Set Tresspassdamage = 0.00
- Set ShieldHealth = 0.00
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Life of Shieldedunit) Less than Tresspassdamage
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Tresspassdamage - (Life of Shieldedunit)) Less than ShieldHealth
-
Then - Actions
- Set ShieldHealth = (ShieldHealth - (Tresspassdamage - (Life of Shieldedunit)))
- Unit - Set life of Shieldedunit to Tresspassdamage
-
Else - Actions
- Unit - Set life of Shieldedunit to ((Life of Shieldedunit) + ShieldHealth)
- Set ShieldHealth = 0.00
- Unit - Remove Gear Shield buff from Shieldedunit
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Else - Actions
- Do nothing
-
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
- (Life of Shieldedunit) Greater than Tresspassdamage
-
Then - Actions
- Set Tresspassdamage = (Life of (Target unit of ability being cast))
-
Else - Actions
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events