- Joined
- Jan 31, 2010
- Messages
- 3,552
I need if someone can clear all the leaks and optimize them for me. I also need some things to be changed in them.
Many more is to come, I just started with this one.
Okay, tell me if this can be optimized, or it leaks. How to make player leaver's gold split in equal parts and send it to allies (not AI ones (Red and Yellow)) every 5 seconds of game, not only at beginning?
-
Player Leavers
-
Events
-
Player - Player 2 (Blue) leaves the game
-
Player - Player 3 (Teal) leaves the game
-
Player - Player 4 (Purple) leaves the game
-
Player - Player 6 (Orange) leaves the game
-
Player - Player 7 (Green) leaves the game
-
Player - Player 8 (Pink) leaves the game
-
-
Conditions
-
Actions
-
Quest - Display to (All players) the Warning message: ((Name of (Triggering player)) + has left the game.)
-
Player - Set name of (Triggering player) to (|cff4e504b + (player_name_raw[(Player number of (Triggering player))] + |r))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Triggering player) is in PlayersElvesPlaying) Equal to True
-
-
Then - Actions
-
Set TempInteger = ((((Triggering player) Current gold) / (Number of players in PlayersElvesPlaying)) + 1)
-
Player Group - Remove (Triggering player) from PlayersElvesPlaying
-
Player Group - Pick every player in PlayersElvesPlaying and do (Actions)
-
Loop - Actions
-
Player - Add TempInteger to (Picked player) Current gold
-
Player - Make (Triggering player) treat (Picked player) as an Ally with shared vision and shared units
-
-
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Triggering player) is in PlayersOrcPlaying) Equal to True
-
-
Then - Actions
-
Set TempInteger = ((((Triggering player) Current gold) / (Number of players in PlayersOrcPlaying)) + 1)
-
Player Group - Remove (Triggering player) from PlayersOrcPlaying
-
Player Group - Pick every player in PlayersOrcPlaying and do (Actions)
-
Loop - Actions
-
Player - Add TempInteger to (Picked player) Current gold
-
Player - Make (Triggering player) treat (Picked player) as an Ally with shared vision and shared units
-
-
-
-
Else - Actions
-
-
-