- Joined
- Sep 29, 2006
- Messages
- 447
ok so i made these trigger so that when a unit enter a region a building will start constructing. for some reason only the trigger for the middle works and i dont know why can anyone figure it out?
does anybody know why only the first trigger is working and not the rest? all of the regions and such are correct because the unit is moved instantly, but the tower is never built
==EDIT==
I just did some testing and it only works if i create the builder for the owner of the triggering unit and i have no idea why. does anyone have any idea?
-
mid point init
-
Events
- Unit - A unit enters Region 022 <gen>
-
Conditions
- ((Triggering unit) is A Hero) Equal to True
- MidBoolean Equal to False
-
Actions
- Set MidBoolean = True
- Set TempPoint = (Center of Region 022 <gen>)
- Set TempPoint2 = ((Center of Region 022 <gen>) offset by 200.00 towards ((Facing of (Triggering unit)) - 180.00) degrees)
- Unit - Move (Triggering unit) instantly to TempPoint2
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Triggering unit) belongs to an ally of Player 11 (Dark Green)) Equal to True
-
Then - Actions
- Unit - Create 1 dummy unit (builder) for Player 11 (Dark Green) at TempPoint facing Default building facing degrees
- Unit - Add a 25.00 second Generic expiration timer to (Last created unit)
- Unit - Order (Last created unit) to build a Control Tower at TempPoint
-
Else - Actions
- Unit - Create 1 dummy unit (builder) for Player 12 (Brown) at TempPoint facing Default building facing degrees
- Unit - Add a 25.00 second Generic expiration timer to (Last created unit)
- Unit - Order (Last created unit) to build a Control Tower at TempPoint
-
If - Conditions
- Custom script: call RemoveLocation(udg_TempPoint)
- Custom script: call RemoveLocation(udg_TempPoint2)
-
Events
-
bottom point init
-
Events
- Unit - A unit enters Region 023 <gen>
-
Conditions
- ((Triggering unit) is A Hero) Equal to True
- BotBoolean Equal to False
-
Actions
- Set BotBoolean = True
- Set TempPoint = (Center of Region 023 <gen>)
- Set TempPoint2 = ((Center of Region 023 <gen>) offset by 200.00 towards ((Facing of (Triggering unit)) - 180.00) degrees)
- Unit - Move (Triggering unit) instantly to TempPoint2
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Triggering unit) belongs to an ally of Player 11 (Dark Green)) Equal to True
-
Then - Actions
- Unit - Create 1 dummy unit (builder) for Player 11 (Dark Green) at TempPoint facing Default building facing degrees
- Unit - Add a 25.00 second Generic expiration timer to (Last created unit)
- Unit - Order (Last created unit) to build a Control Tower at TempPoint
-
Else - Actions
- Unit - Create 1 dummy unit (builder) for Player 12 (Brown) at TempPoint facing Default building facing degrees
- Unit - Add a 25.00 second Generic expiration timer to (Last created unit)
- Unit - Order (Last created unit) to build a Control Tower at TempPoint
-
If - Conditions
- Custom script: call RemoveLocation(udg_TempPoint)
- Custom script: call RemoveLocation(udg_TempPoint2)
-
Events
-
top point init
-
Events
- Unit - A unit enters Region 024 <gen>
-
Conditions
- ((Triggering unit) is A Hero) Equal to True
- TopBoolean Equal to False
-
Actions
- Set TopBoolean = True
- Set TempPoint = (Center of Region 024 <gen>)
- Set TempPoint2 = ((Center of Region 024 <gen>) offset by 200.00 towards ((Facing of (Triggering unit)) - 180.00) degrees)
- Unit - Move (Triggering unit) instantly to TempPoint2
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Triggering unit) belongs to an ally of Player 11 (Dark Green)) Equal to True
-
Then - Actions
- Unit - Create 1 dummy unit (builder) for Player 11 (Dark Green) at TempPoint facing Default building facing degrees
- Unit - Add a 25.00 second Generic expiration timer to (Last created unit)
- Unit - Order (Last created unit) to build a Control Tower at TempPoint
-
Else - Actions
- Unit - Create 1 dummy unit (builder) for Player 12 (Brown) at TempPoint facing Default building facing degrees
- Unit - Add a 25.00 second Generic expiration timer to (Last created unit)
- Unit - Order (Last created unit) to build a Control Tower at TempPoint
-
If - Conditions
- Custom script: call RemoveLocation(udg_TempPoint)
- Custom script: call RemoveLocation(udg_TempPoint2)
-
Events
does anybody know why only the first trigger is working and not the rest? all of the regions and such are correct because the unit is moved instantly, but the tower is never built
==EDIT==
I just did some testing and it only works if i create the builder for the owner of the triggering unit and i have no idea why. does anyone have any idea?
Last edited: