havefaith
New Member
- Reaction score
- 2
but the defend ability allows me to prevent movement speed how would i do it with beserk?
but the defend ability allows me to prevent movement speed how would i do it with beserk?
Unit - Pause Triggering Unit
Unit - A unit Starts the effect of an ability
Melee Initialization
Events
Unit - A unit Is issued an order with no target
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Issued order) Equal to (Order(defend))
Then - Actions
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Issued order) Equal to (Order(undefend))
Then - Actions
Else - Actions
Melee Initialization
Events
Unit - A unit Is issued an order with no target
Conditions
[B]Unit-Type of (Triggering unit) Equal to YourUnitType[/B]
[B]Level of YourDefend for (Triggering unit) Greater than 0[/B] <-- [I]Either one condition would work[/I]
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Issued order) Equal to (Order(defend))
Then - Actions
[B]Unit - Set (Triggering unit) movement speed to 0.00[/B]
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Issued order) Equal to (Order(undefend))
Then - Actions
[B]Unit - Set (Triggering unit) movement speed to Default movement speed of (Triggering unit)[/B]
Else - Actions
Me said:Anyway, Defend itself allows you to adjust the unit's movement speed. You no need trigger to set it's movement speed.
* Take Cover
o Events
+ Unit - A unit Is issued an order with no target
o Conditions
+ (Level of Take Cover! for (Triggering unit)) Greater than 0
o Actions
+ If (All Conditions are True) then do (Then Actions) else do (Else Actions)
# If - Conditions
* (Issued order) Equal to (Order(([B]defend[/B])))
# Then - Actions
* Unit - Add Taking Cover! to ([B]Triggering[/B] unit)
# Else - Actions
* Unit - Create 1 Cover for (Owner of ([B]Triggering[/B] unit)) at ((Center of (Playable map area)) offset by 256.00 towards 0.00 degrees) facing Default building facing degrees
Events
Unit - A unit Is issued an order with no target
Conditions
(Level of Take Cover! for (Triggering unit)) Greater than 0
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Issued order) Equal to (Order(defend))
Then - Actions
Unit - Add Taking Cover! to (Triggering unit)
Unit - Create 1 Cover for (Owner of (Triggering unit)) at ((Position of (Triggering unit)) offset by 140.00 towards 110.00 degrees) facing Default building facing degrees
Set UnitVariable = (Last created unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Issued order) Equal to (Order(undefend))
Then - Actions
Unit - Remove [B]UnitVariable[/B] from the game
Else - Actions