- Joined
- Jun 27, 2010
- Messages
- 3,304
So i have two triggers that keep track of buildings of players that decrease.
1 is building is destroyed and 2 is building cancels construction
when a bulding is canceled, it is also counted as ddestroyed, so the count goes -2 when actually must go -1.
this causes a problem with the counted ahead in the game when you keep building/canceling an destroiying buildings, so teh score becomes very wrong.
My question is how does this problem get fixed. Any ideas?
as you can see in the triggers i tried to urn on and off the destroy trigger but its nto working
1 is building is destroyed and 2 is building cancels construction
when a bulding is canceled, it is also counted as ddestroyed, so the count goes -2 when actually must go -1.
this causes a problem with the counted ahead in the game when you keep building/canceling an destroiying buildings, so teh score becomes very wrong.
My question is how does this problem get fixed. Any ideas?
as you can see in the triggers i tried to urn on and off the destroy trigger but its nto working
-
Cancel Building
-

Events
-


Unit - A unit Cancels construction
-
-

Conditions
-

Actions
-


Set TempInt = (Player number of (Owner of (Triggering unit)))
-


Trigger - Turn off Destroed Building <gen>
-


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



If - Conditions
-




TeamIsDead[TempInt] Equal to False
-
-



Then - Actions
-




Set Score_Buildings[TempInt] = (Score_Buildings[TempInt] - 1)
-




Leaderboard - Change the value for (Player(TempInt)) in Leaderboard to Score_Buildings[TempInt]
-




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





If - Conditions
-






Workers_Count[TempInt] Equal to 0
-
-





Then - Actions
-






Leaderboard - Change the color of the label for (Player(TempInt)) in Leaderboard to (100.00%, 100.00%, 100.00%) with 0.00% transparency
-
-





Else - Actions
-






Leaderboard - Change the color of the label for (Player(TempInt)) in Leaderboard to (R[TempInt]%, G[TempInt]%, B[TempInt]%) with 0.00% transparency
-
-
-




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





If - Conditions
-






Score_Buildings[TempInt] Equal to 0
-
-





Then - Actions
-






Leaderboard - Change the color of the value for (Player(TempInt)) in Leaderboard to (100.00%, 100.00%, 100.00%) with 0.00% transparency
-
-





Else - Actions
-






Leaderboard - Change the color of the value for (Player(TempInt)) in Leaderboard to (R[TempInt]%, G[TempInt]%, B[TempInt]%) with 0.00% transparency
-
-
-




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





If - Conditions
-






Score_Buildings[TempInt] Less than 100
-
-





Then - Actions
-






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







If - Conditions
-








Unit_Limitator[TempInt] Equal to No unit
-
-







Then - Actions
-








Set TempLoc = (Random point in RequirementF <gen>)
-








Unit - Create 1 < 100 structures (Limitation) for (Player(TempInt)) at (Center of (Playable map area)) facing Default building facing degrees
-








Set Unit_Limitator[TempInt] = (Last created unit)
-








Custom script: call RemoveLocation(udg_TempLoc)
-
-







Else - Actions
-
-
-





Else - Actions
-
-
-



Else - Actions
-
-


Trigger - Turn on Destroed Building <gen>
-
-
-
Destroed Building
-

Events
-


Unit - A unit Dies
-
-

Conditions
-


((Triggering unit) is A structure) Equal to True
-
-

Actions
-


Set TempInt = (Player number of (Owner of (Triggering unit)))
-


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



If - Conditions
-




TeamIsDead[TempInt] Equal to False
-
-



Then - Actions
-




Set Score_Buildings[TempInt] = (Score_Buildings[TempInt] - 1)
-




Leaderboard - Change the value for (Player(TempInt)) in Leaderboard to Score_Buildings[TempInt]
-




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





If - Conditions
-






Workers_Count[TempInt] Equal to 0
-
-





Then - Actions
-






Leaderboard - Change the color of the label for (Player(TempInt)) in Leaderboard to (100.00%, 100.00%, 100.00%) with 0.00% transparency
-
-





Else - Actions
-






Leaderboard - Change the color of the label for (Player(TempInt)) in Leaderboard to (R[TempInt]%, G[TempInt]%, B[TempInt]%) with 0.00% transparency
-
-
-




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





If - Conditions
-






Score_Buildings[TempInt] Equal to 0
-
-





Then - Actions
-






Leaderboard - Change the color of the value for (Player(TempInt)) in Leaderboard to (100.00%, 100.00%, 100.00%) with 0.00% transparency
-
-





Else - Actions
-






Leaderboard - Change the color of the value for (Player(TempInt)) in Leaderboard to (R[TempInt]%, G[TempInt]%, B[TempInt]%) with 0.00% transparency
-
-
-




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





If - Conditions
-






Score_Buildings[TempInt] Less than 100
-
-





Then - Actions
-






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







If - Conditions
-








Unit_Limitator[TempInt] Equal to No unit
-
-







Then - Actions
-








Set TempLoc = (Random point in RequirementF <gen>)
-








Unit - Create 1 < 100 structures (Limitation) for (Player(TempInt)) at (Center of (Playable map area)) facing Default building facing degrees
-








Set Unit_Limitator[TempInt] = (Last created unit)
-








Custom script: call RemoveLocation(udg_TempLoc)
-
-







Else - Actions
-
-
-





Else - Actions
-
-
-



Else - Actions
-
-
-
