• 🏆 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!

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