• 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.

problem with unit group experience

Status
Not open for further replies.
Level 5
Joined
Dec 21, 2012
Messages
89
Hi
I am trying to get expieriece for my heroes using unit group and none of them is working
  • Unit Group - Pick every unit in (Units owned by Player 7 (Green) matching (((Matching unit) is A Hero) Equal to True)) and do (Actions)
    • Loop - Actions
      • Hero - Add 600 experience to (Matching unit), Hide level-up graphics
  • Unit Group - Pick every unit in (Units owned by Player 7 (Green) matching (((Picked unit) is A Hero) Equal to True)) and do (Actions)
    • Loop - Actions
      • Hero - Add 600 experience to (Picked unit), Hide level-up graphics
 
Level 5
Joined
Dec 21, 2012
Messages
89
Thanks for your help, I make it work. I have question for you deathismyfriend. Do I have to make variable with Temp_Group and use
  • Custom script: call DestroyGroup (udg_Temp_Group)
to avoid memory leak or it should be fine without.
 
Status
Not open for further replies.
Top