- Joined
- Mar 28, 2015
- Messages
- 631
Now I came up with 2 triggers that allow a unit to use critical strike only when it's hp is low (when it has learned a certain hero ability) but it can only be used by a single unit at a time because of the way the triggers work, can anything be done to make it work when the ability is given to multiple units? Nevermind the Garithos condition, it's there for testing purposes
--- = Hero ability which enables this
++++-Critical Stike+++ = Critical strike ability (x3)
--- = Hero ability which enables this
++++-Critical Stike+++ = Critical strike ability (x3)
-
Untitled Trigger 12
-
Events
-
Unit - A unit Is attacked
-
-
Conditions
-
And - All (Conditions) are true
-
Conditions
-
(Unit-type of (Attacked unit)) Equal to Lord Garithos
-
(Level of --- for (Triggering unit)) Greater than or equal to 1
-
-
-
-
Actions
-
Set ECSUnit = (Attacked unit)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
And - All (Conditions) are true
-
Conditions
-
(Level of --- for (Triggering unit)) Equal to 1
-
(Level of ++++-Critical Stike+++ (Neutral Hostile) for ECSUnit) Equal to 0
-
(Life of (Attacked unit)) Less than or equal to ((Max life of (Attacked unit)) / 5.00)
-
-
-
-
Then - Actions
-
Unit - Add ++++-Critical Stike+++ (Neutral Hostile) to ECSUnit
-
Trigger - Turn on Remove Critical Strike <gen>
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
And - All (Conditions) are true
-
Conditions
-
(Level of --- for (Triggering unit)) Equal to 2
-
(Level of ++++-Critical Stike+++ (Neutral Hostile) for ECSUnit) Equal to 0
-
(Life of (Attacked unit)) Less than or equal to ((Max life of (Attacked unit)) / 4.00)
-
-
-
-
Then - Actions
-
Unit - Add ++++-Critical Stike+++ (Neutral Hostile) to ECSUnit
-
Trigger - Turn on Remove Critical Strike <gen>
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
And - All (Conditions) are true
-
Conditions
-
(Level of --- for (Triggering unit)) Equal to 3
-
(Level of ++++-Critical Stike+++ (Neutral Hostile) for ECSUnit) Equal to 0
-
(Life of (Attacked unit)) Less than or equal to ((Max life of (Attacked unit)) / 3.00)
-
-
-
-
Then - Actions
-
Unit - Add ++++-Critical Stike+++ (Neutral Hostile) to ECSUnit
-
Trigger - Turn on Remove Critical Strike <gen>
-
-
Else - Actions
-
-
-
-
(the ability below is not initially on)
-
Remove Critical Strike
-
Events
-
Time - Every 0.50 seconds of game time
-
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(ECSUnit is alive) Equal to False
-
And - All (Conditions) are true
-
Conditions
-
(Level of --- for ECSUnit) Equal to 1
-
(Life of ECSUnit) Greater than ((Max life of ECSUnit) / 5.00)
-
-
-
And - All (Conditions) are true
-
Conditions
-
(Level of --- for ECSUnit) Equal to 2
-
(Life of ECSUnit) Greater than ((Max life of ECSUnit) / 4.00)
-
-
-
And - All (Conditions) are true
-
Conditions
-
(Level of --- for ECSUnit) Equal to 3
-
(Life of ECSUnit) Greater than ((Max life of ECSUnit) / 3.00)
-
-
-
-
-
-
Actions
-
Unit - Remove ++++-Critical Stike+++ (Neutral Hostile) from ECSUnit
-
Trigger - Turn off (This trigger)
-
-