Hello. I'd like a trigger to detect the many orders a specific unit is given.
Then, "moving", "attacking" and "holding position" may trigger some effects.
Note that stop and holdposition orders are different and smart (on ground) is the same action as smart (on an enemy or allied unit). So the Issued Order is not returning it as well.
Also when the unit uses metamorphosis order, the trigger stops working. Some one can help me?
Triggers Below:
TRIGGER 1:
Then, "moving", "attacking" and "holding position" may trigger some effects.
Note that stop and holdposition orders are different and smart (on ground) is the same action as smart (on an enemy or allied unit). So the Issued Order is not returning it as well.
Also when the unit uses metamorphosis order, the trigger stops working. Some one can help me?
Triggers Below:
TRIGGER 1:
- Unit - A unit Learns a skill
- (Learned Hero Skill) Equal to Space Suit
- Set SuitOwner = (Learning Hero)
- Unit - Set level of Attack Speed Suit for SuitOwner to (Level of Space Suit for SuitOwner)
- Unit - Set level of Move Speed Suit for SuitOwner to (Level of Space Suit for SuitOwner)
- Unit - Set level of Life Regen Suit for SuitOwner to (Level of Space Suit for SuitOwner)
- Unit - Set level of Mana Regen Suit for SuitOwner to (Level of Space Suit for SuitOwner)
- Countdown Timer - Start PointA as a Repeating timer that will expire in 0.10 seconds
- Countdown Timer - Start AlternateTimer as a One-shot timer that will expire in 0.05 seconds
- Countdown Timer - Start CheckingTimer as a Repeating timer that will expire in 0.20 seconds
- Time - AlternateTimer expires
- Countdown Timer - Start PointB as a Repeating timer that will expire in 0.10 seconds
- Time - PointA expires
- Set A = (Position of SuitOwner)
- Time - PointB expires
- Set B = (Position of SuitOwner)
- Unit - A unit Is issued an order with no target
- Unit - A unit Is issued an order targeting a point
- Unit - A unit Is issued an order targeting an object
- (Triggering unit) Equal to SuitOwner
- (Issued order) Not equal to SuitOwnerOrder
- Set SuitOwnerOrder = (Issued order)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
- SuitOwnerOrder Equal to (Order(stop))
- SuitOwnerOrder Equal to (Order(holdposition))
-
Conditions
-
Or - Any (Conditions) are true
-
Then - Actions
- Trigger - Run Apply Regen <gen> (checking conditions)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- SuitOwnerOrder Equal to (Order(attack))
-
Then - Actions
- Trigger - Run Apply Attack <gen> (checking conditions)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- SuitOwnerOrder Equal to (Order(move))
-
Then - Actions
- Trigger - Run Apply Move <gen> (checking conditions)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- SuitOwnerOrder Equal to (Order(smart))
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Target unit of issued order) Equal to No unit
-
Then - Actions
- Trigger - Run Apply Move <gen> (checking conditions)
- Set SuitOwnerOrder = (Order(move))
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Owner of SuitOwner) is an enemy of (Owner of (Target unit of issued order))) Equal to True
-
Then - Actions
- Trigger - Run Apply Attack <gen> (checking conditions)
- Set SuitOwnerOrder = (Order(attack))
-
Else - Actions
- Trigger - Run Apply Move <gen> (checking conditions)
- Set SuitOwnerOrder = (Order(move))
-
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)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- SuitOwnerOrder Equal to (Order(patrol))
-
Then - Actions
- Unit - Order SuitOwner to Stop
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Issued order) Equal to (Order(flamestrike))
- (Issued order) Equal to (Order(metamorphosis))
- (Issued order) Equal to (Order(ward))
- (Issued order) Equal to (Order(tranquility))
-
Conditions
-
Or - Any (Conditions) are true
-
Then - Actions
- Player - Disable Move Speed Suit for (Owner of SuitOwner)
- Player - Disable Attack Speed Suit for (Owner of SuitOwner)
- Player - Disable Mana Regen Suit for (Owner of SuitOwner)
- Player - Disable Life Regen Suit for (Owner of SuitOwner)
- Set SuitOwnerOrder = (Issued order)
- Else - Actions
-
If - Conditions
- Countdown Timer - Start ThreeSecondTimer[1] as a One-shot timer that will expire in 3.00 seconds
- Countdown Timer - Pause ThreeSecondTimer[2]
- Countdown Timer - Pause ThreeSecondTimer[3]
- Countdown Timer - Start ThreeSecondTimer[2] as a One-shot timer that will expire in 3.00 seconds
- Countdown Timer - Pause ThreeSecondTimer[1]
- Countdown Timer - Pause ThreeSecondTimer[3]
- Player - Disable Mana Regen Suit for (Owner of SuitOwner)
- Player - Disable Life Regen Suit for (Owner of SuitOwner)
- Player - Disable Attack Speed Suit for (Owner of SuitOwner)
- Countdown Timer - Start ThreeSecondTimer[3] as a One-shot timer that will expire in 3.00 seconds
- Countdown Timer - Pause ThreeSecondTimer[2]
- Countdown Timer - Pause ThreeSecondTimer[1]
- Player - Disable Mana Regen Suit for (Owner of SuitOwner)
- Player - Disable Life Regen Suit for (Owner of SuitOwner)
- Player - Disable Move Speed Suit for (Owner of SuitOwner)
- Time - ThreeSecondTimer[1] expires
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (In-game time of day) Greater than or equal to 6.00
- (In-game time of day) Less than 18.00
-
Conditions
-
Or - Any (Conditions) are true
-
Then - Actions
- Player - Enable Mana Regen Suit for (Owner of SuitOwner)
- Player - Enable Life Regen Suit for (Owner of SuitOwner)
- Else - Actions
-
If - Conditions
- Time - ThreeSecondTimer[2] expires
- Player - Enable Move Speed Suit for (Owner of SuitOwner)
- Time - ThreeSecondTimer[3] expires
- Player - Enable Attack Speed Suit for (Owner of SuitOwner)
Last edited: