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!
Hey, I am making a hero arena, but what is a hero arena without duels.
So i was wondering is it possible to make duels only with basic triggers, no variables or Jass. If yes, how?
+rep
Im always using variables and always using unit groups for theese things but i think you can do this without variables but im not sure i can send you a trigger if you want please wait some mins....
EDIT: 1st trigger
Events
Time - Every 100.00 seconds of game time
Conditions
Actions
Set Duel = (Units in (Entire map) owned by Player 1 (Red))
Unit Group - Pick every unit in Duel and do (Actions)
Loop - Actions
Unit - Move (Picked unit) instantly to (Center of (Playable map area))
Custom script: DestroyGroup(udg_Duel)
Set Duel = (Units in (Entire map) owned by Player 2 (Blue))
Unit Group - Pick every unit in Duel and do (Actions)
Loop - Actions
Unit - Move (Picked unit) instantly to (Center of (Playable map area))
Custom script: DestroyGroup(udg_Duel)
Trigger - Turn on Untitled Trigger 002 <gen>
Trigger - Turn on Untitled Trigger 003 <gen>
2nd trigger
Events
Unit - A unit owned by Player 1 (Red) Dies
Conditions
(Number of units in (Units owned by Player 1 (Red))) Equal to 0
Actions
Set Duel = (Units owned by Player 2 (Blue))
Unit Group - Pick every unit in Duel and do (Actions)
Loop - Actions
Unit - Move (Picked unit) instantly to (Center of (Playable map area))
Custom script: DestroyGroup(udg_Duel)
3rd trigger
Events
Unit - A unit owned by Player 2 (Blue) Dies
Conditions
(Number of units in (Units owned by Player 2 (Blue))) Equal to 0
Actions
Set Duel = (Units owned by Player 1 (Red))
Unit Group - Pick every unit in Duel and do (Actions)
Loop - Actions
Unit - Move (Picked unit) instantly to (Center of (Playable map area))
Custom script: DestroyGroup(udg_Duel)
So here it is 1st trigger 2nd trigger and the 3rd
Please if this one isnt leak free feel free to correct me.. im kinda noobish on trigger Hope this helps and try to do something alone first but if you stuck use this one..
And dont forget to revive the unit who gets killed
How exactly do you want them ? always blue vs red or like red vs yellow then next red vs teal next teal vs blue like that? if you want that kind of randomess then i can't help you im not that good in triggering. or i mb can help you but that will take some time ask the other guy for help. the random trigger is like For each (Integer A) from 1 to 8, do (Actions)
depends on how many players are playing and such things. Good luck with this thing.
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.