- Joined
- Dec 30, 2011
- Messages
- 13
This is the trigger
-
Shipyard wea
-

Events
-


Map initialization
-
-

Conditions
-

Actions
-


-------- Capture distance --------
-


-------- -------------------------------------------------- --------
-


Set Shipyard_Real[1] = 200.00
-


-------- -------------------------------------------------- --------
-


Set Shipyard[1] = (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to Shipyard))
-


Unit Group - Pick every unit in Shipyard[1] and do (Actions)
-



Loop - Actions
-




Trigger - Add to Shipyard return1 <gen> the event (Unit - A unit comes within Shipyard_Real[1] of (Picked unit))
-
-
-
-
-
Shipyard return1
-

Events
-

Conditions
-

Actions
-


Set Shipyard_Loc_1[1] = (Position of (Triggering unit))
-


Set Shipyard_Group_1[1] = (Units within (Shipyard_Real[1] + 25.00) of Shipyard_Loc_1[1] matching ((Owner of (Matching unit)) Equal to (Owner of (Triggering unit))))
-


Unit Group - Pick every unit in Shipyard_Group_1[1] and do (Actions)
-



Loop - Actions
-




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





If - Conditions
-






(Mana of (Picked unit)) Equal to 10.00
-






(Unit-type of (Picked unit)) Equal to Transport Ship
-
-





Then - Actions
-






Player - Add 2 to (Owner of (Picked unit)) Current gold
-






Unit - Set mana of (Picked unit) to 0.00
-
-





Else - Actions
-
-
-
-


Custom script: call DestroyGroup(udg_Shipyard_Group_1[1])
-


Custom script: call RemoveLocation(udg_Shipyard_Loc_1[1])
-
-

