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

[Unsolved] Hero Selection

Status
Not open for further replies.
Level 1
Joined
Feb 8, 2015
Messages
4
Hero Selection (Solved)

I am trying to make a 5v5 map at the start of the game, each player picks a unit to play as, last game I tested (just now) my friend and me were on different teams and yet allied with each other.
Just need someone to go over my triggers to see where any problems are.
  • Initialization
    • Events
      • Game - Map initialization
    • Local Variables
    • Conditions
    • Actions
      • Player Group - Add player 1 to Bottom-Team
      • Player Group - Add player 3 to Bottom-Team
      • Player Group - Add player 5 to Bottom-Team
      • Player Group - Add player 7 to Bottom-Team
      • Player Group - Add player 9 to Bottom-Team
      • Player Group - Add player 11 to Bottom-Team
      • Player - Make all players in Bottom-Team treat each other as Ally With Shared Vision
      • Player Group - Add player 2 to Top-Team
      • Player Group - Add player 4 to Top-Team
      • Player Group - Add player 6 to Top-Team
      • Player Group - Add player 8 to Top-Team
      • Player Group - Add player 10 to Top-Team
      • Player Group - Add player 12 to Top-Team
      • Player - Make all players in Top-Team treat each other as Ally With Shared Vision
  • Pick Hero Top
    • Events
      • Dialog - Any Dialog Item is used by Player Any Player with event type Clicked
    • Local Variables
    • Conditions
      • Or
        • Conditions
          • (Triggering player) == 2
          • (Triggering player) == 4
          • (Triggering player) == 6
          • (Triggering player) == 8
          • (Triggering player) == 10
      • Or
        • Conditions
          • ------- Protoss Melee
          • (Used dialog item) == Dark Templar
          • (Used dialog item) == High Templar
          • (Used dialog item) == Zealot
          • ------- Protoss Range
          • (Used dialog item) == Archon
          • (Used dialog item) == Sentry
          • (Used dialog item) == Stalker
          • ------- Terran Melee
          • (Used dialog item) == Hellbat
          • (Used dialog item) == Reaper
          • (Used dialog item) == Viking
          • ------- Terran Range
          • (Used dialog item) == Ghost
          • (Used dialog item) == Maruder
          • (Used dialog item) == Medivac
          • ------- Zerg Melee
          • (Used dialog item) == Baneling
          • (Used dialog item) == Ultralisk
          • (Used dialog item) == Zergling
          • ------- Zerg Range
          • (Used dialog item) == Hyrdalisk
          • (Used dialog item) == Roach
          • (Used dialog item) == SwarmHost
    • Actions
      • Variable - Modify #Picks: + 1
      • General - Switch (Actions) depending on (Used dialog item)
        • Cases
          • ------- Protoss Melee
          • General - If (Dark Templar)
            • Actions
              • Unit - Create 1 Dark Templar for player (Triggering player) at Attack Top using default facing (No Options)
          • General - If (High Templar)
            • Actions
              • Unit - Create 1 High Templar for player (Triggering player) at Attack Top using default facing (No Options)
          • General - If (Zealot)
            • Actions
              • Unit - Create 1 Zealot for player (Triggering player) at Attack Top using default facing (No Options)
          • ------- Protoss Range
          • General - If (Archon)
            • Actions
              • Unit - Create 1 Archon for player (Triggering player) at Attack Top using default facing (No Options)
          • General - If (Sentry)
            • Actions
              • Unit - Create 1 Sentry for player (Triggering player) at Attack Top using default facing (No Options)
          • General - If (Stalker)
            • Actions
              • Unit - Create 1 Stalker for player (Triggering player) at Attack Top using default facing (No Options)
          • ------- Terran Melee
          • General - If (Hellbat)
            • Actions
              • Unit - Create 1 Hellbat (Battle Mode) for player (Triggering player) at Attack Top using default facing (No Options)
          • General - If (Reaper)
            • Actions
              • Unit - Create 1 Reaper for player (Triggering player) at Attack Top using default facing (No Options)
          • General - If (Viking)
            • Actions
              • Unit - Create 1 Viking (Assault Mode) for player (Triggering player) at Attack Top using default facing (No Options)
          • ------- Terran Range
          • General - If (Ghost)
            • Actions
              • Unit - Create 1 Ghost for player (Triggering player) at Attack Top using default facing (No Options)
          • General - If (Maruder)
            • Actions
              • Unit - Create 1 Marauder for player (Triggering player) at Attack Top using default facing (No Options)
          • General - If (Medivac)
            • Actions
              • Unit - Create 1 Medivac for player (Triggering player) at Attack Top using default facing (No Options)
          • ------- Zerg Melee
          • General - If (Baneling)
            • Actions
              • Unit - Create 1 Baneling for player (Triggering player) at Attack Top using default facing (No Options)
          • General - If (Ultralisk)
            • Actions
              • Unit - Create 1 Ultralisk for player (Triggering player) at Attack Top using default facing (No Options)
          • General - If (Zergling)
            • Actions
              • Unit - Create 1 Zergling for player (Triggering player) at Attack Top using default facing (No Options)
          • ------- Zerg Range
          • General - If (Hyrdalisk)
            • Actions
              • Unit - Create 1 Hydralisk for player (Triggering player) at Attack Top using default facing (No Options)
          • General - If (Roach)
            • Actions
              • Unit - Create 1 Roach for player (Triggering player) at Attack Top using default facing (No Options)
          • General - If (SwarmHost)
            • Actions
              • Unit - Create 1 Swarm Host for player (Triggering player) at Attack Top using default facing (No Options)
        • Default
      • Dialog - Disable (Used dialog item) for (Players on team 2)
      • Player Group - Add player (Triggering player) to Close Dialog
      • Dialog - Hide Untitled Variable 001 for Close Dialog
  • Pick Hero Bottom
    • Events
      • Dialog - Any Dialog Item is used by Player Any Player with event type Clicked
    • Local Variables
    • Conditions
      • Or
        • Conditions
          • (Triggering player) == 1
          • (Triggering player) == 3
          • (Triggering player) == 5
          • (Triggering player) == 7
          • (Triggering player) == 9
      • Or
        • Conditions
          • ------- Protoss Melee
          • (Used dialog item) == Dark Templar
          • (Used dialog item) == High Templar
          • (Used dialog item) == Zealot
          • ------- Protoss Range
          • (Used dialog item) == Archon
          • (Used dialog item) == Sentry
          • (Used dialog item) == Stalker
          • ------- Terran Melee
          • (Used dialog item) == Hellbat
          • (Used dialog item) == Reaper
          • (Used dialog item) == Viking
          • ------- Terran Range
          • (Used dialog item) == Ghost
          • (Used dialog item) == Maruder
          • (Used dialog item) == Medivac
          • ------- Zerg Melee
          • (Used dialog item) == Baneling
          • (Used dialog item) == Ultralisk
          • (Used dialog item) == Zergling
          • ------- Zerg Range
          • (Used dialog item) == Hyrdalisk
          • (Used dialog item) == Roach
          • (Used dialog item) == SwarmHost
    • Actions
      • Variable - Modify #Picks: + 1
      • General - Switch (Actions) depending on (Used dialog item)
        • Cases
          • ------- Protoss Melee
          • General - If (Dark Templar)
            • Actions
              • Unit - Create 1 Dark Templar for player (Triggering player) at Attack Bottom using default facing (No Options)
          • General - If (High Templar)
            • Actions
              • Unit - Create 1 High Templar for player (Triggering player) at Attack Bottom using default facing (No Options)
          • General - If (Zealot)
            • Actions
              • Unit - Create 1 Zealot for player (Triggering player) at Attack Bottom using default facing (No Options)
          • ------- Protoss Range
          • General - If (Archon)
            • Actions
              • Unit - Create 1 Archon for player (Triggering player) at Attack Bottom using default facing (No Options)
          • General - If (Sentry)
            • Actions
              • Unit - Create 1 Sentry for player (Triggering player) at Attack Bottom using default facing (No Options)
          • General - If (Stalker)
            • Actions
              • Unit - Create 1 Stalker for player (Triggering player) at Attack Bottom using default facing (No Options)
          • ------- Terran Melee
          • General - If (Hellbat)
            • Actions
              • Unit - Create 1 Hellbat (Battle Mode) for player (Triggering player) at Attack Bottom using default facing (No Options)
          • General - If (Reaper)
            • Actions
              • Unit - Create 1 Reaper for player (Triggering player) at Attack Bottom using default facing (No Options)
          • General - If (Viking)
            • Actions
              • Unit - Create 1 Viking (Assault Mode) for player (Triggering player) at Attack Bottom using default facing (No Options)
          • ------- Terran Range
          • General - If (Ghost)
            • Actions
              • Unit - Create 1 Ghost for player (Triggering player) at Attack Bottom using default facing (No Options)
          • General - If (Maruder)
            • Actions
              • Unit - Create 1 Marauder for player (Triggering player) at Attack Bottom using default facing (No Options)
          • General - If (Medivac)
            • Actions
              • Unit - Create 1 Medivac for player (Triggering player) at Attack Bottom using default facing (No Options)
          • ------- Zerg Melee
          • General - If (Baneling)
            • Actions
              • Unit - Create 1 Baneling for player (Triggering player) at Attack Bottom using default facing (No Options)
          • General - If (Ultralisk)
            • Actions
              • Unit - Create 1 Ultralisk for player (Triggering player) at Attack Bottom using default facing (No Options)
          • General - If (Zergling)
            • Actions
              • Unit - Create 1 Zergling for player (Triggering player) at Attack Bottom using default facing (No Options)
          • ------- Zerg Range
          • General - If (Hyrdalisk)
            • Actions
              • Unit - Create 1 Hydralisk for player (Triggering player) at Attack Bottom using default facing (No Options)
          • General - If (Roach)
            • Actions
              • Unit - Create 1 Roach for player (Triggering player) at Attack Bottom using default facing (No Options)
          • General - If (SwarmHost)
            • Actions
              • Unit - Create 1 Swarm Host for player (Triggering player) at Attack Bottom using default facing (No Options)
        • Default
      • Dialog - Disable (Used dialog item) for (Players on team 1)
      • Player Group - Add player (Triggering player) to Close Dialog
      • Dialog - Hide Untitled Variable 001 for Close Dialog
 
Last edited:
Level 2
Joined
Jan 21, 2015
Messages
14
Idk if this is the problem, but it looks like to me that you may need to set an alliance between bottom and top teams (make them enemies), not just make the teams treat themselves as allies, that is what I always do and have not had this problem so that is my guess.
 
Status
Not open for further replies.
Top