- Joined
- Nov 5, 2008
- Messages
- 536
-
Actions
-

Set Point1 = (Position of (Your unit))
-
I select my variable but what do I select to get this: (Position of (Your Unit))
Anyone knows?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Actions

Set Point1 = (Position of (Your unit))
Move1
Events

Time - Every 0.06 seconds of game-time
Conditions
Actions

Set Point1 = (Position of (Your unit))
Move2
Events

Time - Every 0.08 seconds of game-time
Conditions
Actions

Set Point2 = (Position of (Your unit))

If/ Then/ Else


If (Conditions)



(Distance between Point2 and Point1) Equal to 0


Then (Actions)



Unit - Add Ability to (Your unit)


Else (Actions)



Unit - Remove Ability from (Your unit)

Custom script: call RemoveLocation (udg_Point2)

Custom script: call RemoveLocation (udg_Point1)
Set Unit=(Last Created Unit)
Events, Conditions, Actions, stuff...
Unit - Create 1 Building for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees
Set Unit = (Last created unit)
Adding Aura to WarCaravan

Events


Unit - A unit Finishes construction

Conditions


(Unit-type of (Triggering unit)) Equal to War Caravan

Actions


Unit - Add War Caravan Aura (Neutral Hostile) to (Triggering unit)


Set WarCaravanVariable = (Unit-type of (Triggering unit))
Move1
Events

Time - Every 0.06 seconds of game-time
Conditions
Actions

Set Point1 = (Position of (Your unit))
Add WarCaravan Aura

Events


Unit - A unit Begins casting an ability

Conditions


(Ability being cast) Equal to War Caravan Turn On

Actions


Unit - Add War Caravan Aura to (Triggering unit)


Unit - Remove War Caravan Turn On from (Triggering unit)


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




(Unit-type of (Triggering unit)) Equal to War Caravan




(Issued order) Equal to (Order(move))



Then - Actions




Unit - Remove War Caravan Aura from (Triggering unit)




Unit - Add War Caravan Turn On to (Triggering unit)



Else - Actions
Untitled Trigger 001

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




Unit - Add Test Aura to (Triggering unit)



Else - Actions




Unit - Remove Test Aura from (Triggering unit)
(Unit-type of (Triggering unit)) Equal to Footman
Untitled Trigger 001

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




Unit - Add Test Aura to (Triggering unit)



Else - Actions




Unit - Remove Test Aura from (Triggering unit)
Untitled Trigger 001

Events


Unit - A unit Is issued an order with no target

Conditions


Or - Any (Conditions) are true



Conditions




(Issued order) Equal to (Order(defend))




(Issued order) Equal to (Order(undefend))

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 Test Aura to (Triggering unit)



Else - Actions




Unit - Remove Test Aura from (Triggering unit)
