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

[Trigger] Automatic experience gain

Status
Not open for further replies.
  • Tr
  • Events
    • Time - Every 45.00 seconds of game-time
  • Conditions
  • Actions
    • Set Temp_Group = (Units in (Playable Map Area) matching (((Matching unit) is a Hero) Equal to True)) //This is the "Units in Region matching condition" and the condition is a Boolean condition, Unit - Unit classification check.
    • Unit Group - Pick every unit in Temp_Group and do (Actions)
      • Loop - Actions
        • Hero - Add 45 experience to (Picked unit), Show level-up graphics
    • Custom script: call DestroyGroup (udg_Temp_Group)
Temp_Group is a Unit Group variable.

References:
http://www.hiveworkshop.com/forums/trigger-gui-editor-tutorials-279/variables-5896/
http://www.hiveworkshop.com/forums/triggers-scripts-269/things-leak-35124/
 
Status
Not open for further replies.
Top