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

Arena Battle

Status
Not open for further replies.
Well, after moving all heros to an arena, you can quite easily do this:

  • Battle start
    • Events
      • <<When you want the battle to start>>
    • Conditions
    • Actions
      • <<Might want to revive all heros at this point>>
      • Set TempGroup = Units in (Units in (Playable map area) matching (((Matching unit) is A Hero) Equal to True))
      • Unit Group - Pick every unit in (TempGroup) and do (Actions)
        • Loop - Actions
          • <<Move units>>
          • Set ActiveHeros = ActiveHeros + 1
      • Custom script: call DestroyGroup (udg_TempGroup)
      • Trigger - Turn on Hero death <gen>
  • Hero death
    • Events
      • Unit - A unit dies
    • Conditions
      • ((Triggering unit is A Hero) equal to true)
    • Actions
      • Set ActiveHeros = ActiveHeros - 1
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ActiveHeros = 1
        • Then - Actions
          • Set TempGroup = Units in (Units in (Playable map area) matching (((Matching unit) is A Hero) Equal to True) And (((Matching unit) is alive) Equal to True))
          • Unit Group - Pick every unit in (TempGroup) and do (Actions)
            • Loop - Actions
              • <<Add gold>>
              • <<move unit back>>
          • Custom script: call DestroyGroup (udg_TempGroup)
          • Trigger - Turn off (this trigger)
        • Else - Actions
When you're moving units remember to have an allocated spot for each players hero to go - you don't exactly want a random mess of heros or for them to appear in the same place during the battle.
 
Last edited:
Status
Not open for further replies.
Top