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

how to make a trigger dat can level heros in a region?

Status
Not open for further replies.
Level 2
Joined
Dec 7, 2008
Messages
6
can any1 post a trigger on how to level heros in a region pls?

also if possible someone teach me how to fix bugs which cause almost everyone to dc when someone destroys a tower using his peasant? T.T
 
Level 3
Joined
Jun 6, 2007
Messages
48
All you have to do is add the event to which you would like the heros leveled upon and the region to which the heros have to be in. This trigger will get all the heros in that region and increase there level by 1:

  • Level Thy Heros
    • Events
      • Something Happens (lol)
    • Conditions
    • Actions
      • Set LvlRegion = (Units in YOUR_REGION <gen>)
      • Unit Group - Pick every unit in LvlRegion and do (Actions)
        • Loop - Actions
          • Hero - Set (Picked unit) Hero-level to ((Hero level of (Picked unit)) + 1), Show level-up graphics
      • Custom Script: call DestroyGroup(udg_LvlRegion)
 
Last edited:
Level 24
Joined
May 9, 2007
Messages
3,563
  • Hero Leveling
    • Events
      • Unit - Enters Region <Your Region>
    • Conditions
    • Actions
      • Custom Script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in <Your Region> and do (Actions)
        • Loop - Actions
          • Hero - Set (Picked unit) Hero-level to ((Hero level of (Picked unit)) + 1), Show level-up graphics
Sorry for the formatting. I typed it.
 
Status
Not open for further replies.
Top