- Joined
- Jan 16, 2008
- Messages
- 156
I'm having some issues with memory leaking in my game. The newer versions of my game only added a few triggers, one was a playsound trigger, which leaked, I fixed it, but have no way of telling whether or not this fix will fix the issues until I play an extended game online with lots of players (which means releasing a new version).
So I need this trigger checked. Does it leak, if so how do I fix it Is there a better way to do this?
So I need this trigger checked. Does it leak, if so how do I fix it Is there a better way to do this?
-
Alliance Item Point Divider
-
Events
- Time - Every 60.00 seconds of game time
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Player 1 (Red) slot status) Not equal to Is playing
-
Then - Actions
- Set GoldRedDivider = ((Player 1 (Red) Current gold) / (Number of players in (All players matching ((((Matching player) slot status) Equal to Is playing) and (((Matching player) is an ally of Player 1 (Red)) Equal to True)))))
- Player Group - Pick every player in (All players matching ((((Matching player) slot status) Equal to Is playing) and (((Matching player) is an ally of Player 1 (Red)) Equal to True))) and do (Player - Add GoldRedDivider to (Picked player) Current gold)
- Player - Set Player 1 (Red) Current gold to 0
-
Else - Actions
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Player 2 (Blue) slot status) Not equal to Is playing
-
Then - Actions
- Set GoldBlueDivider = ((Player 2 (Blue) Current gold) / (Number of players in (All players matching ((((Matching player) slot status) Equal to Is playing) and (((Matching player) is an ally of Player 1 (Red)) Equal to True)))))
- Player Group - Pick every player in (All players matching ((((Matching player) slot status) Equal to Is playing) and (((Matching player) is an ally of Player 1 (Red)) Equal to True))) and do (Player - Add GoldBlueDivider to (Picked player) Current gold)
- Player - Set Player 2 (Blue) Current gold to 0
-
Else - Actions
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Player 3 (Teal) slot status) Not equal to Is playing
-
Then - Actions
- Set GoldTealDivider = ((Player 3 (Teal) Current gold) / (Number of players in (All players matching ((((Matching player) slot status) Equal to Is playing) and (((Matching player) is an ally of Player 1 (Red)) Equal to True)))))
- Player Group - Pick every player in (All players matching ((((Matching player) slot status) Equal to Is playing) and (((Matching player) is an ally of Player 1 (Red)) Equal to True))) and do (Player - Add GoldTealDivider to (Picked player) Current gold)
- Player - Set Player 3 (Teal) Current gold to 0
-
Else - Actions
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Player 4 (Purple) slot status) Not equal to Is playing
-
Then - Actions
- Set GoldPurpleDivider = ((Player 4 (Purple) Current gold) / (Number of players in (All players matching ((((Matching player) slot status) Equal to Is playing) and (((Matching player) is an ally of Player 1 (Red)) Equal to True)))))
- Player Group - Pick every player in (All players matching ((((Matching player) slot status) Equal to Is playing) and (((Matching player) is an ally of Player 1 (Red)) Equal to True))) and do (Player - Add GoldPurpleDivider to (Picked player) Current gold)
- Player - Set Player 4 (Purple) Current gold to 0
-
Else - Actions
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Player 6 (Orange) slot status) Not equal to Is playing
-
Then - Actions
- Set GoldOrangeDivider = ((Player 6 (Orange) Current gold) / (Number of players in (All players matching ((((Matching player) slot status) Equal to Is playing) and (((Matching player) is an ally of Player 1 (Red)) Equal to True)))))
- Player Group - Pick every player in (All players matching ((((Matching player) slot status) Equal to Is playing) and (((Matching player) is an ally of Player 1 (Red)) Equal to True))) and do (Player - Add GoldOrangeDivider to (Picked player) Current gold)
- Player - Set Player 6 (Orange) Current gold to 0
-
Else - Actions
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Player 7 (Green) slot status) Not equal to Is playing
-
Then - Actions
- Set GoldGreenDivider = ((Player 7 (Green) Current gold) / (Number of players in (All players matching ((((Matching player) slot status) Equal to Is playing) and (((Matching player) is an ally of Player 1 (Red)) Equal to True)))))
- Player Group - Pick every player in (All players matching ((((Matching player) slot status) Equal to Is playing) and (((Matching player) is an ally of Player 1 (Red)) Equal to True))) and do (Player - Add GoldGreenDivider to (Picked player) Current gold)
- Player - Set Player 7 (Green) Current gold to 0
-
Else - Actions
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Player 8 (Pink) slot status) Not equal to Is playing
-
Then - Actions
- Set GoldPinkDivider = ((Player 8 (Pink) Current gold) / (Number of players in (All players matching ((((Matching player) slot status) Equal to Is playing) and (((Matching player) is an ally of Player 1 (Red)) Equal to True)))))
- Player Group - Pick every player in (All players matching ((((Matching player) slot status) Equal to Is playing) and (((Matching player) is an ally of Player 1 (Red)) Equal to True))) and do (Player - Add GoldPinkDivider to (Picked player) Current gold)
- Player - Set Player 8 (Pink) Current gold to 0
-
Else - Actions
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Player 9 (Gray) slot status) Not equal to Is playing
-
Then - Actions
- Set GoldGrayDivider = ((Player 9 (Gray) Current gold) / (Number of players in (All players matching ((((Matching player) slot status) Equal to Is playing) and (((Matching player) is an ally of Player 1 (Red)) Equal to True)))))
- Player Group - Pick every player in (All players matching ((((Matching player) slot status) Equal to Is playing) and (((Matching player) is an ally of Player 1 (Red)) Equal to True))) and do (Player - Add GoldGrayDivider to (Picked player) Current gold)
- Player - Set Player 9 (Gray) Current gold to 0
-
Else - Actions
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events