• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

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

Status
Not open for further replies.

wahmeng

W

wahmeng

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
 
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:
  • 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.
Back
Top