- Joined
- May 24, 2012
- Messages
- 57
Have been messing around with that and after about 4 minutes of gameplay it quits functioning properly and causes game to lag to the point of nearly crashing. Eventually i want 10 levels of this trigger with the limit on the walls being up to 250. Any help is appreciated thanks in advance!
-
TestLimitWalls
-

Events
-


Time - Every 1.00 seconds of game time
-
-

Conditions
-

Actions
-


For each (Integer A) from 1 to 10, do (Actions)
-



Loop - Actions
-




Unit Group - Pick every unit in (Units owned by (Player((Integer A))) of type Wall Level 1) and do (Actions)
-





Loop - Actions
-






Custom script: set bj_wantDestroyGroup = true
-






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







If - Conditions
-








(Number of units in (Units owned by (Player((Integer A))) of type Wall Level 1)) Greater than or equal to 30
-








TownHallTechLevel Equal to 1
-
-







Then - Actions
-








Player - Make Wall Level 1 Unavailable for training/construction by (Player((Integer A)))
-
-







Else - Actions
-








Player - Make Wall Level 1 Available for training/construction by (Player((Integer A)))
-








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









If - Conditions
-










(Number of units in (Units owned by (Player((Integer A))) of type Wall Level 1)) Greater than or equal to 60
-










TownHallTechLevel Equal to 2
-
-









Then - Actions
-










Player - Make Wall Level 1 Unavailable for training/construction by (Player((Integer A)))
-
-









Else - Actions
-










Player - Make Wall Level 1 Available for training/construction by (Player((Integer A)))
-










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











If - Conditions
-












(Number of units in (Units owned by (Player((Integer A))) of type Wall Level 1)) Greater than or equal to 90
-












TownHallTechLevel Equal to 3
-
-











Then - Actions
-












Player - Make Wall Level 1 Unavailable for training/construction by (Player((Integer A)))
-
-











Else - Actions
-












Player - Make Wall Level 1 Available for training/construction by (Player((Integer A)))
-
-
-
-
-
-
-
-
-
-
-
-

