- Joined
- Jul 13, 2006
- Messages
- 140
So, I need help in patching this trigger, because I am fairly certain that it leaks.
It might be easy, but I'm pretty lousy at spotting leaks.
It might be easy, but I'm pretty lousy at spotting leaks.
-
Limit check
-
Events
-
Time - Every 1.00 seconds of game time
-
-
Conditions
-
Actions
-
Player Group - Pick every player in (All players) 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
-
((Picked player) Current gold) Greater than (MoneyLimit + ((Number of living Storage units owned by (Picked player)) x 50))
-
-
Then - Actions
-
Player - Set (Picked player) Current gold to (MoneyLimit + ((Number of living Storage units owned by (Picked player)) x 50))
-
-
Else - Actions
-
-
-
-
Player Group - Pick every player in (All players) and do (Actions)
-
Loop - Actions
-
Custom script: set bj_wantDestroyGroup = true
-
Set Limit = (((((Number of living City units owned by (Picked player)) + (Number of living R units owned by (Picked player))) + ((Number of living N units owned by (Picked player)) + (Number of living M (Finnish) units owned by (Picked player))
-
Custom script: set bj_wantDestroyGroup = true
-
Set Limit = (Limit + ((((Number of living B units owned by (Picked player)) + (Number of living E units owned by (Picked player))) + (Number of living H units owned by (Picked player))) x 8))
-
Custom script: set bj_wantDestroyGroup = true
-
Set Limit = (Limit + (((Number of living A units owned by (Picked player)) + (Number of living S units owned by (Picked player))) x 2))
-
Custom script: set bj_wantDestroyGroup = true
-
Set Limit = (Limit + (((Number of living C units owned by (Picked player)) + (Number of living F units owned by (Picked player))) x 3))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Picked player) Current lumber) Greater than (Limit + 4)
-
-
Then - Actions
-
Player - Set (Picked player) Current lumber to (Limit + 4)
-
-
Else - Actions
-
-
-
-
-
Last edited: