1. Are you planning to upload your awesome map to Hive? Please review the rules here.
    Dismiss Notice
  2. Find your way through the deepest dungeon in the 18th Mini Mapping Contest Poll.
    Dismiss Notice
  3. A brave new world lies beyond the seven seas. Join the 34th Modeling Contest today!
    Dismiss Notice
  4. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
Hive 3 Remoosed BETA - NOW LIVE. Go check it out at BETA Hive Workshop! Post your feedback in this new forum BETA Feedback.
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Trigger Viewer

Guerra de razas v3.0.1.w3x
Variables
Victoria y Derrota
Derrota
Victoria
Héroes
Heroe
Inicialización
Inicialización de refriega
Inciar Ordenador
Seleccionar Razas
Creando botones
Seleccionar raza
Escribe debajo el código del guión personalizado especial para el mapa. El texto se incluirá en el guión del mapa después de declarar las variables y antes de los códigos de los detonadores.

		
Name Type Is Array Initial Value
BDRazas button Yes
Derrota boolean No
DRazas dialog No
Victoria boolean No
Derrota
  Events
    Unit - A unit Dies
  Conditions
  Actions
    Set VariableSet Derrota = True
    Player Group - Pick every player in (All allies of (Triggering player).) and do (Actions)
      Loop - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            (Count structures controlled by (Picked player) (Exclude incomplete structures)) Greater than 0
          Then - Actions
            Set VariableSet Derrota = False
          Else - Actions
    Player Group - Pick every player in (All allies of (Triggering player).) and do (Actions)
      Loop - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Derrota Equal to True
          Then - Actions
            Game - Defeat (Picked player) with the message: ¡Derrota!
          Else - Actions
Victoria
  Events
    Unit - A unit Dies
  Conditions
  Actions
    For each (Integer A) from 1 to 12, do (Actions)
      Loop - Actions
        Set VariableSet Victoria = True
        Player Group - Pick every player in (All enemies of (Player((Integer A))).) and do (Actions)
          Loop - Actions
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              If - Conditions
                (Count structures controlled by (Picked player) (Exclude incomplete structures)) Greater than 0
              Then - Actions
                Set VariableSet Victoria = False
              Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            Victoria Equal to True
          Then - Actions
            Game - Victory (Player((Integer A))) (Show dialogs, Show scores)
          Else - Actions
Heroe
  Events
    Map initialization
  Conditions
  Actions
    Player Group - Pick every player in (All players) and do (Actions)
      Loop - Actions
        Player - Limit training of Campeador to 1 for (Picked player)
        Player - Limit training of Maestro Geomante to 1 for (Picked player)
        Player - Limit training of Orco Paladin to 1 for (Picked player)
        Player - Limit training of Dark Ranger to 1 for (Picked player)
        Player - Limit training of Sicario to 1 for (Picked player)
        Player - Limit training of Taumaturgo to 1 for (Picked player)
        Player - Limit training of Elder Sage to 1 for (Picked player)
        Player - Limit training of Naga Sea Witch to 1 for (Picked player)
Inicialización predeterminada de partida de refriega para todos los jugadores
Inicialización de refriega
  Events
    Map initialization
  Conditions
  Actions
    Melee Game - Use melee time of day (for all players)
    Melee Game - Limit Heroes to 1 per Hero-type (for all players)
    Melee Game - Give trained Heroes a Scroll of Town Portal (for all players)
    Melee Game - Set starting resources (for all players)
    Melee Game - Remove creeps and critters from used start locations (for all players)
Inciar Ordenador
  Events
    Map initialization
  Conditions
  Actions
    Player Group - Pick every player in (All players controlled by a Computer player) and do (Actions)
      Loop - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            (Race of (Picked player)) Equal to Human
            ((Picked player) slot status) Equal to Is playing
          Then - Actions
            Melee Game - Create Human starting units for (Picked player) at ((Picked player) start location) (Include Heroes)
            AI - Start melee AI script for (Picked player): human.ai (aiscript)
          Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            (Race of (Picked player)) Equal to Orc
            ((Picked player) slot status) Equal to Is playing
          Then - Actions
            Melee Game - Create Orc starting units for (Picked player) at ((Picked player) start location) (Include Heroes)
            AI - Start melee AI script for (Picked player): orc.ai (aiscript)
          Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            (Race of (Picked player)) Equal to Undead
            ((Picked player) slot status) Equal to Is playing
          Then - Actions
            Melee Game - Create Undead starting units for (Picked player) at ((Picked player) start location) (Include Heroes)
            AI - Start melee AI script for (Picked player): undead.ai (aiscript)
          Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            (Race of (Picked player)) Equal to Night Elf
            ((Picked player) slot status) Equal to Is playing
          Then - Actions
            Melee Game - Create Night Elf starting units for (Picked player) at ((Picked player) start location) (Include Heroes)
            AI - Start melee AI script for (Picked player): elf.ai (aiscript)
          Else - Actions
Creando botones
  Events
    Time - Elapsed game time is 0.01 seconds
  Conditions
  Actions
    Dialog - Create a dialog button for DRazas labelled Humanos
    Set VariableSet BDRazas[1] = (Last created dialog Button)
    Dialog - Create a dialog button for DRazas labelled Orcos
    Set VariableSet BDRazas[2] = (Last created dialog Button)
    Dialog - Create a dialog button for DRazas labelled Elfos nocturnos
    Set VariableSet BDRazas[3] = (Last created dialog Button)
    Dialog - Create a dialog button for DRazas labelled Muertos vivientes
    Set VariableSet BDRazas[4] = (Last created dialog Button)
    Dialog - Create a dialog button for DRazas labelled Magnatauros
    Set VariableSet BDRazas[5] = (Last created dialog Button)
    Dialog - Create a dialog button for DRazas labelled Nagas
    Set VariableSet BDRazas[6] = (Last created dialog Button)
    Dialog - Create a dialog button for DRazas labelled Draenai
    Set VariableSet BDRazas[7] = (Last created dialog Button)
    Player Group - Pick every player in (All players controlled by a User player) and do (Actions)
      Loop - Actions
        Dialog - Show DRazas for (Picked player)
Seleccionar raza
  Events
    Dialog - A dialog button is clicked for DRazas
  Conditions
  Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        (Clicked dialog button) Equal to BDRazas[1]
      Then - Actions
        Melee Game - Create Human starting units for (Triggering player) at ((Triggering player) start location) (Include Heroes)
      Else - Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        (Clicked dialog button) Equal to BDRazas[2]
      Then - Actions
        Melee Game - Create Orc starting units for (Triggering player) at ((Triggering player) start location) (Include Heroes)
      Else - Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        (Clicked dialog button) Equal to BDRazas[3]
      Then - Actions
        Melee Game - Create Night Elf starting units for (Triggering player) at ((Triggering player) start location) (Include Heroes)
      Else - Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        (Clicked dialog button) Equal to BDRazas[4]
      Then - Actions
        Melee Game - Create Undead starting units for (Triggering player) at ((Triggering player) start location) (Include Heroes)
      Else - Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        (Clicked dialog button) Equal to BDRazas[5]
      Then - Actions
        Melee Game - Create Human starting units for (Triggering player) at ((Triggering player) start location) (Include Heroes)
        Unit Group - Pick every unit in (Units owned by (Triggering player).) and do (Actions)
          Loop - Actions
            Unit - Remove (Picked unit) from the game
        Unit - Create 1.Colonia for (Triggering player) at ((Triggering player) start location) facing Default building facing degrees
        Unit - Create 5.Servidor Tuskar for (Triggering player) at ((Triggering player) start location) facing Default building facing degrees
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            (Clicked dialog button) Equal to BDRazas[6]
          Then - Actions
            Melee Game - Create Human starting units for (Triggering player) at ((Triggering player) start location) (Include Heroes)
            Unit Group - Pick every unit in (Units owned by (Triggering player).) and do (Actions)
              Loop - Actions
                Unit - Remove (Picked unit) from the game
            Unit - Create 1.Temple of Tides for (Triggering player) at ((Triggering player) start location) facing Default building facing degrees
            Unit - Create 5.Mur'gul Slave for (Triggering player) at ((Triggering player) start location) facing Default building facing degrees
          Else - Actions
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              If - Conditions
                (Clicked dialog button) Equal to BDRazas[7]
              Then - Actions
                Melee Game - Create Human starting units for (Triggering player) at ((Triggering player) start location) (Include Heroes)
                Unit Group - Pick every unit in (Units owned by (Triggering player).) and do (Actions)
                  Loop - Actions
                    Unit - Remove (Picked unit) from the game
                Unit - Create 1.Temple of Tides for (Triggering player) at ((Triggering player) start location) facing Default building facing degrees
                Unit - Create 5.Mur'gul Slave for (Triggering player) at ((Triggering player) start location) facing Default building facing degrees
              Else - Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      If - Conditions
        (Clicked dialog button) Equal to BDRazas[5]
      Then - Actions
        Melee Game - Create Human starting units for (Triggering player) at ((Triggering player) start location) (Include Heroes)
        Unit Group - Pick every unit in (Units owned by (Triggering player).) and do (Actions)
          Loop - Actions
            Unit - Remove (Picked unit) from the game
        Unit - Create 1.Colonia for (Triggering player) at ((Triggering player) start location) facing Default building facing degrees
        Unit - Create 5.Servidor Tuskar for (Triggering player) at ((Triggering player) start location) facing Default building facing degrees
      Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            (Clicked dialog button) Equal to BDRazas[6]
          Then - Actions
            Melee Game - Create Human starting units for (Triggering player) at ((Triggering player) start location) (Include Heroes)
            Unit Group - Pick every unit in (Units owned by (Triggering player).) and do (Actions)
              Loop - Actions
                Unit - Remove (Picked unit) from the game
            Unit - Create 1.Temple of Tides for (Triggering player) at ((Triggering player) start location) facing Default building facing degrees
            Unit - Create 5.Mur'gul Slave for (Triggering player) at ((Triggering player) start location) facing Default building facing degrees
          Else - Actions
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              If - Conditions
                (Clicked dialog button) Equal to BDRazas[7]
              Then - Actions
                Melee Game - Create Human starting units for (Triggering player) at ((Triggering player) start location) (Include Heroes)
                Unit Group - Pick every unit in (Units owned by (Triggering player).) and do (Actions)
                  Loop - Actions
                    Unit - Remove (Picked unit) from the game
                Unit - Create 1.Draenei Haven for (Triggering player) at ((Triggering player) start location) facing Default building facing degrees
                Unit - Create 5.Draenei Laborer for (Triggering player) at ((Triggering player) start location) facing Default building facing degrees
              Else - Actions