Does this leak a unit group?

Super.Gnome

New Member
Reaction score
0
Title says it all. I think it does, but I want to confirm it.

Trigger:
  • DarkSideGetGold
    • Events
      • Unit - A unit owned by Player 10 (Light Blue) Dies
    • Conditions
    • Actions
      • Player Group - Pick every player in (All allies of Player 3 (Teal)) and do (Actions)
        • Loop - Actions
          • If (DSP Equal to 1) then do (Player - Add 9 to (Picked player) Current gold) else do (If (DSP Equal to 2) then do (Player - Add 8 to (Picked player) Current gold) else do (If (DSP Equal to 3) then do (Player - Add 7 to (Picked player) Current gold) else do (If (DSP Equal to 4) then do (Player - Add 6 to (Picked player) Current gold) else do (...


I mean player group, not unit group..... >.>

I think I should do it like this:

Trigger:
  • DarkSideGetGold
    • Events
      • Unit - A unit owned by Player 10 (Light Blue) Dies
    • Conditions
    • Actions
      • Set TempPGroup = (All allies of Player 3 (Teal))
      • Player Group - Pick every player in TempPGroup and do (Actions)
        • Loop - Actions
          • If (DSP Equal to 1) then do (Player - Add 9 to (Picked player) Current gold) else do (If (DSP Equal to 2) then do (Player - Add 8 to (Picked player) Current gold) else do (If (DSP Equal to 3) then do (Player - Add 7 to (Picked player) Current gold) else do (If (DSP Equal to 4) then do (Player - Add 6 to (Picked player) Current gold) else do (
      • Custom script: call DestroyForce (udg_TempPGroup)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top