- Joined
- Sep 27, 2011
- Messages
- 141
Hi everyone I have a problem with my trigger where the trigger never turns off and therefore does not stop producing trees also in the first one the gold mines are not produced can someone please help.
-
Resource Mode
-
Events
- Player - Player 1 (Red) types a chat message containing - as A substring
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Entered chat string) Equal to -lr
-
Then - Actions
- Set Terrain_Count = 26
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Entered chat string) Equal to -nr
-
Then - Actions
- Set Terrain_Count = 50
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Entered chat string) Equal to -hr
-
Then - Actions
- Set Terrain_Count = 100
- Else - Actions
-
If - Conditions
-
For each (Integer Temp_Int2) from 1 to (Terrain_Count / 2), do (Actions)
-
Loop - Actions
- Custom script: loop
- Set Temp_Loc = (Random point in Region 000 <gen>)
- Set Temp_Group = (Units within 800.00 of Temp_Loc matching (((Matching unit) is alive) Equal to True))
- Set Temp_Int = (Number of units in Temp_Group)
- Custom script: call DestroyGroup(udg_Temp_Group)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Temp_Int Greater than or equal to 1
-
Then - Actions
- Custom script: call RemoveLocation(udg_Temp_Loc)
- Else - Actions
-
If - Conditions
- Custom script: exitwhen(udg_Temp_Int == 0 )
- Custom script: endloop
- Unit - Create 1 Gold Mine for Neutral Passive at Temp_Loc facing Default building facing degrees
- Custom script: call RemoveLocation(udg_Temp_Loc)
-
Loop - Actions
- Set Terrain_Count_Max = Terrain_Count
- Set Terrain_Count = 0
- Trigger - Turn on Generate Resources <gen>
- Trigger - Turn off (This trigger)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
-
Generate Resources
-
Events
- Time - Every 0.03 seconds of game time
- Conditions
-
Actions
- Set Temp_Int2 = 0
- Custom script: loop
- Set Temp_Int2 = (Temp_Int2 + 1)
- Custom script: loop
- Set Temp_Loc = (Random point in Region 000 <gen>)
- Set Temp_Group = (Units within 600.00 of Temp_Loc matching ((((Matching unit) is alive) Equal to True) and (((Owner of (Matching unit)) controller) Equal to User)))
- Set Temp_Int = (Number of units in Temp_Group)
- Custom script: call DestroyGroup(udg_Temp_Group)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Temp_Int Greater than or equal to 1
-
Then - Actions
- Custom script: call RemoveLocation(udg_Temp_Loc)
- Else - Actions
-
If - Conditions
- Custom script: exitwhen(udg_Temp_Int == 0 )
- Custom script: endloop
- Destructible - Create a Summer Tree Wall at Temp_Loc facing (Random angle) with scale (Random real number between 0.80 and 1.20) and variation 0
- Custom script: call RemoveLocation(udg_Temp_Loc)
- Custom script: exitwhen(udg_Temp_Int2 == 40 )
- Custom script: endloop
- Set Terrain_Count = (Terrain_Count + 1)
- Cinematic - Clear the screen of text messages for (All players)
- Game - Display to (All players) the text: (Loading Resources: + ((String((Integer((((Real(Terrain_Count)) / (Real(Terrain_Count_Max))) x 100.00))))) + %))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Terrain_Count Greater than or equal to Terrain_Count_Max
-
Then - Actions
- Trigger - Turn off (This trigger)
- Else - Actions
-
If - Conditions
-
Events