• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Is there any leak? How to fix it?

Status
Not open for further replies.
Level 16
Joined
May 2, 2011
Messages
1,345
Hello guys,
I did not call remove or call destroy the tempGroup because I use it temporarily always, does it leak to give it another value?[TRIGGER=fullshare]FullShareUnits
Events
Player - Player 1 (Red) types a chat message containing -fullshare as An exact match
Player - Player 2 (Blue) types a chat message containing -fullshare as An exact match
Player - Player 3 (Teal) types a chat message containing -fullshare as An exact match
Player - Player 4 (Purple) types a chat message containing -fullshare as An exact match
Player - Player 5 (Yellow) types a chat message containing -fullshare as An exact match
Player - Player 6 (Orange) types a chat message containing -fullshare as An exact match
Player - Player 7 (Green) types a chat message containing -fullshare as An exact match
Player - Player 8 (Pink) types a chat message containing -fullshare as An exact match
Player - Player 9 (Gray) types a chat message containing -fullshare as An exact match
Player - Player 10 (Light Blue) types a chat message containing -fullshare as An exact match
Player - Player 11 (Dark Green) types a chat message containing -fullshare as An exact match
Player - Player 12 (Brown) types a chat message containing -fullshare as An exact match
Conditions
Actions
Set temp_p = (All allies of (Triggering player))
Player Group - Pick every player in temp_p and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked player) controller) Equal to Computer
Then - Actions
Player - For (Picked player), turn Full shared units On toward (Triggering player)
Else - Actions
[/TRIGGER]


[TRIGGER=share]ShareUnits
Events
Player - Player 1 (Red) types a chat message containing -share as An exact match
Player - Player 2 (Blue) types a chat message containing -share as An exact match
Player - Player 3 (Teal) types a chat message containing -share as An exact match
Player - Player 4 (Purple) types a chat message containing -share as An exact match
Player - Player 5 (Yellow) types a chat message containing -share as An exact match
Player - Player 6 (Orange) types a chat message containing -share as An exact match
Player - Player 7 (Green) types a chat message containing -share as An exact match
Player - Player 8 (Pink) types a chat message containing -share as An exact match
Player - Player 9 (Gray) types a chat message containing -share as An exact match
Conditions
Actions
Set temp_p = (All allies of (Triggering player))
Player Group - Pick every player in temp_p and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked player) controller) Equal to Computer
Then - Actions
Player - For (Picked player), turn Full shared units Off toward (Triggering player)
Player - For (Picked player), turn Shared units On toward (Triggering player)
Else - Actions
[/TRIGGER]
[TRIGGER=unshre]Unshare
Events
Player - Player 1 (Red) types a chat message containing -unshare as An exact match
Player - Player 2 (Blue) types a chat message containing -unshare as An exact match
Player - Player 3 (Teal) types a chat message containing -unshare as An exact match
Player - Player 4 (Purple) types a chat message containing -unshare as An exact match
Player - Player 5 (Yellow) types a chat message containing -unshare as An exact match
Player - Player 6 (Orange) types a chat message containing -unshare as An exact match
Player - Player 7 (Green) types a chat message containing -unshare as An exact match
Player - Player 8 (Pink) types a chat message containing -unshare as An exact match
Player - Player 9 (Gray) types a chat message containing -unshare as An exact match
Player - Player 10 (Light Blue) types a chat message containing -unshare as An exact match
Conditions
Actions
Set temp_p = (All allies of (Triggering player))
Player Group - Pick every player in temp_p and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked player) controller) Equal to Computer
Then - Actions
Player - For (Picked player), turn Full shared units Off toward (Triggering player)
Player - For (Picked player), turn Shared units Off toward (Triggering player)
Else - Actions
[/TRIGGER]
 
Status
Not open for further replies.
Top