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

Team Duels

Status
Not open for further replies.
Level 13
Joined
Oct 27, 2008
Messages
1,176
I'm looking for how i would put
all heros from team 1 n 2 into a area for a duel with each other
put each team in a different area of the arena
players 1-5 in 1 team
players 6-10 in another team
 
this site isnt for us to make your map for you.

we can help you but how can this help if we just give you a trigger.

Im not going to post a trigger but explain how to do it.

After a periodic time, You will want to select every hero owned by the players that are allied with the teams' "captain", set their current location for later (x), and move them instantly to a location you assign in the arena. same with the 2nd team, but move them instantly to a different location you assign in the arena

then you add some text to the players saying - May teh Duel Beginz or something and after a team wins, resort them back to their original positions on the regular map field(x).
 
Level 13
Joined
Oct 27, 2008
Messages
1,176
i've done everything up to this point on my own with little questions asked
only questions i've asked if
1. How to lower EXP gained from killing a hero
2. If people could help me balance out my characters (seeing how ppl on B.Net dont seem to like to talk)
3. How to make this trigger
 
Level 10
Joined
Apr 13, 2005
Messages
630
K here is wut you do. Add this trigger to the map intilization

  • Dueling
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Countdown Timer - Start DuelTimer as a Repeating timer that will expire in 300.00 seconds
      • Countdown Timer - Create a timer window for DuelTimer with title Next Duel In.
Next create a variable called players for a tpe of Unit Group and array.
  • Dueling
  • Dueling
    • Events
      • Time - DuelTimer expires
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 5, do (Actions)
        • Loop - Actions
          • Set Players[1] = (Units in (Playable map area) owned by (Player((Integer A))))
      • For each (Integer A) from 6 to 10, do (Actions)
        • Loop - Actions
          • Set Players[2] = (Units in (Playable map area) owned by (Player((Integer A))))
      • Unit Group - Pick every unit in Players[1] and do (Actions)
        • Loop - Actions
          • Unit - Move (Picked unit) instantly to (Center of (Playable map area))
      • Unit Group - Pick every unit in Players[1] and do (Actions)
        • Loop - Actions
          • Unit - Move (Picked unit) instantly to (Center of (Playable map area))
      • Custom script: call DestroyGroup( udg_Players[1])
      • Custom script: call DestroyGroup( udg_Players[2])
Now heres the ending duel
  • Dueling
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • For each (Integer A) from 5 to 10, do (Actions)
        • Loop - Actions
          • For each (Integer A) from 1 to 5, do (Actions)
            • Loop - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Number of units in (Units in (Playable map area) owned by (Player((Integer A))))) Equal to 0
                • Then - Actions
                  • Game - Display to (All players) the text: team 2 wins
                  • Player - Add 10 to (Player((Integer B))) Current gold
                  • Set Players[1] = (Units in (Playable map area) owned by (Player((Integer B))))
                  • Unit Group - Pick every unit in Players[1] and do (Actions)
                    • Loop - Actions
                      • Unit - Move (Picked unit) instantly to (Center of (Playable map area))
                  • Custom script: call DestroyGroup( udg_Players[1])
                • Else - Actions
      • For each (Integer A) from 1 to 5, do (Actions)
        • Loop - Actions
          • For each (Integer A) from 6 to 10, do (Actions)
            • Loop - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Number of units in (Units in (Playable map area) owned by (Player((Integer A))))) Equal to 0
                • Then - Actions
                  • Game - Display to (All players) the text: team 1 wins
                  • Player - Add 10 to (Player((Integer B))) Current gold
                  • Set Players[1] = (Units in (Playable map area) owned by (Player((Integer B))))
                  • Unit Group - Pick every unit in Players[1] and do (Actions)
                    • Loop - Actions
                      • Unit - Move (Picked unit) instantly to (Center of (Playable map area))
                  • Custom script: call DestroyGroup( udg_Players[1])
                • Else - Actions
      • Countdown Timer - Start DuelTimer as a One-shot timer that will expire in 300.00 seconds
      • Game - Display to (All players) the text: Next Duel starts in...
 
Status
Not open for further replies.
Top