• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Solved] Player group variables

Status
Not open for further replies.
Level 4
Joined
Jul 10, 2013
Messages
73
Hello! As I believe, player group variables leak! I am looking for the correct way to make my current trigger.
 

Attachments

  • Untitled.png
    Untitled.png
    25 KB · Views: 80
Level 4
Joined
Jul 10, 2013
Messages
73
The only reason I was wondering was because of what I read in the "Things That Leak" forum:

(from the forum)
base.gif
Player Group
  • joinminus.gif
    events.gif
    Events
    • line.gif
      joinbottom.gif
      unit.gif
      Unit - A unit Starts the effect of an ability
  • joinminus.gif
    cond.gif
    Conditions
    • line.gif
      joinbottom.gif
      if.gif
      (Ability being cast) Equal to Some Spell
  • joinbottomminus.gif
    actions.gif
    Actions
    • empty.gif
      join.gif
      set.gif
      Set PlayerGroup = (All enemies of Player 1 (Red))
    • empty.gif
      join.gif
      playergroup.gif
      Player Group - Pick every player in PlayerGroup and do (Do nothing)
    • empty.gif
      joinbottom.gif
      page.gif
      Custom script: call DestroyForce(udg_PlayerGroup)


My original trigger:
  • Player Group - Pick every player in HumanAlly and do (Actions)
    • Loop - Actions
      • Player - Make (Owner of (Dying unit)) treat (Picked player) as an Enemy
      • Player - Make (Picked player) treat (Owner of (Dying unit)) as an Enemy
  • Player Group - Pick every player in ZombieAlly and do (Actions)
    • Loop - Actions
      • Player - Make (Picked player) treat (Owner of (Dying unit)) as an Ally with shared vision
      • Player - Make (Owner of (Dying unit)) treat (Picked player) as an Ally with shared vision
 
Level 5
Joined
Aug 20, 2015
Messages
133
method is quite simple - if u are using something more than 2 or 3 times - store it in a variable
thats it
 
Status
Not open for further replies.
Top