• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Howto make duels?

Status
Not open for further replies.
Level 11
Joined
Dec 5, 2009
Messages
846
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:
Level 11
Joined
Dec 5, 2009
Messages
846
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.
Top