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!
Hello everybody i got a question can someone give me trigger arena battle or something like that i making RPG map and realy need it like 5vs5 what go every 3 minutes and winners get 500 gold...
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.