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

Howto make duels?

Status
Not open for further replies.
Im always using variables and always using unit groups for theese things :P 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 :grin: 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
 
Last edited:
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.
 
Status
Not open for further replies.
Back
Top