- Joined
- Jul 13, 2006
- Messages
- 140
So, for some reason, this trigger refuses to work.
Any help would be greatly appreciated, as well as any notification of leaks.
Oh, and if anybody could help me with the request I've made in the request froum then that would also be greatly appreciated (it's trigger-related).
-
get construction sites
-
Events
- Unit - A unit Finishes casting an ability
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Ability being cast) Equal to Colonize
- (Ability being cast) Equal to Colonize (Light Conquest Ship)
- (Ability being cast) Equal to Capture (cruiser)
-
Conditions
-
Or - Any (Conditions) are true
-
Actions
- Set OtherPoint = (Position of (Target unit of ability being cast))
- Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units in (Region centered at OtherPoint with size (200.00, 200.00))) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Unit-type of (Picked unit)) Equal to Construction Site
- (Unit-type of (Picked unit)) Equal to Armaments Factory
- (Unit-type of (Picked unit)) Equal to Electronics Workshop
- (Unit-type of (Picked unit)) Equal to Steel Mill
- (Unit-type of (Picked unit)) Equal to Workshop
-
Conditions
-
Or - Any (Conditions) are true
-
Then - Actions
- Unit - Change ownership of (Picked unit) to (Owner of (Casting unit)) and Change color
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Unit-type of (Picked unit)) Equal to Advanced Shipyard
- (Unit-type of (Picked unit)) Equal to Research Facility
- (Unit-type of (Picked unit)) Equal to Robotics Facility
- (Unit-type of (Picked unit)) Equal to Shipyard
- (Unit-type of (Picked unit)) Equal to Development Centre
- (Unit-type of (Picked unit)) Equal to Stargate
-
Conditions
-
Or - Any (Conditions) are true
-
Then - Actions
- Unit - Change ownership of (Picked unit) to (Owner of (Casting unit)) and Change color
- Unit - Replace (Picked unit) with a Construction Site using The old unit's relative life and mana
- Else - Actions
-
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)
-
Loop - Actions
- Custom script: call RemoveLocation(udg_OtherPoint)
-
Events
-
Unit Group - Pick every unit in TempGroup and do (Actions)
-
Loop - Actions
- Set TempLoc = (Position of (Picked unit))
- Set TempLocus = (TempLoc offset by (-30.00, -150.00))
- Set TempPoint = (TempLoc offset by (30.00, -150.00))
- Unit - Create 1 Construction Site for Neutral Hostile at TempLocus facing Default building facing degrees
- Unit - Create 1 Construction Site for Neutral Hostile at TempPoint facing Default building facing degrees
- Custom script: call RemoveLocation(udg_TempLoc)
- Custom script: call RemoveLocation(udg_TempLocus)
- Custom script: call RemoveLocation(udg_TempPoint)
-
Loop - Actions
Any help would be greatly appreciated, as well as any notification of leaks.
Oh, and if anybody could help me with the request I've made in the request froum then that would also be greatly appreciated (it's trigger-related).