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

Fixed location help?

Level 3
Joined
Aug 29, 2024
Messages
23
Hello! I'm trying to figure out how to get rid of locations, for my map I have neutral units and rescuable units. But I do not want their town hall/spawn there. Just them chilling. Same with units that are counted as undead, (snow white) I'm trying to make it to where there is only a 2v2 map with 2 races there. Them being undead and rescuable. I have neutral brown not in the game, they are allied and do not have a town hall in the beginning.

Here's the map just in case. Just trying to test the map without the spawns just randomly spawning.

Teal and purple are bots/players i'm going to add later that you can play against, they are north of the map.

"scourge" snow white and "enforcements" dark green are in the center. Trying to get them out. (center of the map by fountain)
 

Attachments

  • Nick and Aiden's Map.w3m
    183.9 KB · Views: 3
Level 12
Joined
Nov 13, 2010
Messages
277
magic.jpg
 
Level 12
Joined
Nov 13, 2010
Messages
277
i made a trigger for that you can use

  • Melee Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Melee Game - Run melee AI scripts (for computer players)
      • 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)
      • Set VariableSet PlayerColour[0] = Player 1 (Red)
      • Set VariableSet PlayerColour[1] = Player 2 (Blue)

  • Dialog Box Races
    • Events
      • Time - Elapsed game time is 0.10 seconds
    • Conditions
    • Actions
      • Dialog - Create a dialog button for DialogBox[0] labelled |cff80ff80Vanilla|r
      • Set VariableSet DialogButtons[0] = (Last created dialog Button)
      • Dialog - Create a dialog button for DialogBox[0] labelled |cff80ff80Altered|r
      • Set VariableSet DialogButtons[1] = (Last created dialog Button)

  • Player Intialization
    • Events
      • Time - Elapsed game time is 1.00 seconds
    • Conditions
    • Actions
      • Wait 5.00 seconds
      • For each (Integer PlayerNum[4]) from 0 to 2, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (PlayerColour[PlayerNum[4]] controller) Equal to User
            • Then - Actions
              • Dialog - Show DialogBox[0] for PlayerColour[PlayerNum[4]]
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (PlayerColour[PlayerNum[4]] controller) Equal to Computer
                • Then - Actions
                  • Melee Game - Create (Race of PlayerColour[PlayerNum[4]]) starting units for PlayerColour[PlayerNum[4]] at (PlayerColour[PlayerNum[4]] start location) (Include Heroes)
                  • If ((Race of PlayerColour[PlayerNum[4]]) Equal to Human) then do (Unit - Create 1 Paladin for PlayerColour[PlayerNum[4]] at (PlayerColour[PlayerNum[4]] start location) facing Default building facing degrees) else do (Do nothing)
                  • If ((Race of PlayerColour[PlayerNum[4]]) Equal to Night Elf) then do (Unit - Create 1 Priestess of the Moon for PlayerColour[PlayerNum[4]] at (PlayerColour[PlayerNum[4]] start location) facing Default building facing degrees) else do (Do nothing)
                  • If ((Race of PlayerColour[PlayerNum[4]]) Equal to Undead) then do (Unit - Create 1 Dreadlord for PlayerColour[PlayerNum[4]] at (PlayerColour[PlayerNum[4]] start location) facing Default building facing degrees) else do (Do nothing)
                  • If ((Race of PlayerColour[PlayerNum[4]]) Equal to Orc) then do (Unit - Create 1 Tauren Chieftain for PlayerColour[PlayerNum[4]] at (PlayerColour[PlayerNum[4]] start location) facing Default building facing degrees) else do (Do nothing)
                  • If ((Player 1 (Red) controller) Equal to Computer) then do (Player - Set name of Player 1 (Red) to set a name) else do (Do nothing)
                  • If ((Player 2 (Blue) controller) Equal to Computer) then do (Player - Set name of Player 2 (Blue) to set a name) else do (Do nothing)
                • Else - Actions
                  • Do nothing

  • Dialog Button Press
    • Events
      • Dialog - A dialog button is clicked for DialogBox[0]
    • Conditions
    • Actions
      • -------- Vanilla --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to DialogButtons[0]
        • Then - Actions
          • Unit - Create 1 Town Hall for (Triggering player) at ((Triggering player) start location) facing Default building facing degrees
          • Unit - Create 5 Peasant for (Triggering player) at (Center of (Region centered at ((Triggering player) start location) with size (0.00, 7.00))) facing ((Triggering player) start location)
        • Else - Actions
          • Do nothing
      • -------- Altered --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to DialogButtons[1]
        • Then - Actions
          • Unit - Create 1 Great Hall for (Triggering player) at ((Triggering player) start location) facing Default building facing degrees
          • Unit - Create 5 Peon for (Triggering player) at (Center of (Region centered at ((Triggering player) start location) with size (0.00, 7.00))) facing ((Triggering player) start location)
        • Else - Actions
          • Do nothing

you can ofc add more Races to this if you like
 
Level 3
Joined
Aug 29, 2024
Messages
23
i made a trigger for that you can use

  • Melee Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Melee Game - Run melee AI scripts (for computer players)
      • 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)
      • Set VariableSet PlayerColour[0] = Player 1 (Red)
      • Set VariableSet PlayerColour[1] = Player 2 (Blue)

  • Dialog Box Races
    • Events
      • Time - Elapsed game time is 0.10 seconds
    • Conditions
    • Actions
      • Dialog - Create a dialog button for DialogBox[0] labelled |cff80ff80Vanilla|r
      • Set VariableSet DialogButtons[0] = (Last created dialog Button)
      • Dialog - Create a dialog button for DialogBox[0] labelled |cff80ff80Altered|r
      • Set VariableSet DialogButtons[1] = (Last created dialog Button)

  • Player Intialization
    • Events
      • Time - Elapsed game time is 1.00 seconds
    • Conditions
    • Actions
      • Wait 5.00 seconds
      • For each (Integer PlayerNum[4]) from 0 to 2, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (PlayerColour[PlayerNum[4]] controller) Equal to User
            • Then - Actions
              • Dialog - Show DialogBox[0] for PlayerColour[PlayerNum[4]]
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (PlayerColour[PlayerNum[4]] controller) Equal to Computer
                • Then - Actions
                  • Melee Game - Create (Race of PlayerColour[PlayerNum[4]]) starting units for PlayerColour[PlayerNum[4]] at (PlayerColour[PlayerNum[4]] start location) (Include Heroes)
                  • If ((Race of PlayerColour[PlayerNum[4]]) Equal to Human) then do (Unit - Create 1 Paladin for PlayerColour[PlayerNum[4]] at (PlayerColour[PlayerNum[4]] start location) facing Default building facing degrees) else do (Do nothing)
                  • If ((Race of PlayerColour[PlayerNum[4]]) Equal to Night Elf) then do (Unit - Create 1 Priestess of the Moon for PlayerColour[PlayerNum[4]] at (PlayerColour[PlayerNum[4]] start location) facing Default building facing degrees) else do (Do nothing)
                  • If ((Race of PlayerColour[PlayerNum[4]]) Equal to Undead) then do (Unit - Create 1 Dreadlord for PlayerColour[PlayerNum[4]] at (PlayerColour[PlayerNum[4]] start location) facing Default building facing degrees) else do (Do nothing)
                  • If ((Race of PlayerColour[PlayerNum[4]]) Equal to Orc) then do (Unit - Create 1 Tauren Chieftain for PlayerColour[PlayerNum[4]] at (PlayerColour[PlayerNum[4]] start location) facing Default building facing degrees) else do (Do nothing)
                  • If ((Player 1 (Red) controller) Equal to Computer) then do (Player - Set name of Player 1 (Red) to set a name) else do (Do nothing)
                  • If ((Player 2 (Blue) controller) Equal to Computer) then do (Player - Set name of Player 2 (Blue) to set a name) else do (Do nothing)
                • Else - Actions
                  • Do nothing

  • Dialog Button Press
    • Events
      • Dialog - A dialog button is clicked for DialogBox[0]
    • Conditions
    • Actions
      • -------- Vanilla --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to DialogButtons[0]
        • Then - Actions
          • Unit - Create 1 Town Hall for (Triggering player) at ((Triggering player) start location) facing Default building facing degrees
          • Unit - Create 5 Peasant for (Triggering player) at (Center of (Region centered at ((Triggering player) start location) with size (0.00, 7.00))) facing ((Triggering player) start location)
        • Else - Actions
          • Do nothing
      • -------- Altered --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to DialogButtons[1]
        • Then - Actions
          • Unit - Create 1 Great Hall for (Triggering player) at ((Triggering player) start location) facing Default building facing degrees
          • Unit - Create 5 Peon for (Triggering player) at (Center of (Region centered at ((Triggering player) start location) with size (0.00, 7.00))) facing ((Triggering player) start location)
        • Else - Actions
          • Do nothing

you can ofc add more Races to this if you like
Is there a good way to copy and paste this into the trigger list when I create it? I appreciate it man!

For the first post can I just delete 'create starting units for all players' then it just doesn't run them adding their spawn/town hall?
 
Top