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!
You are using an out of date browser. It may not display this or other websites correctly. You should upgrade or use an alternative browser.
Triggers
24Eastern_Kingdoms_FFA_Edition_1.57.w3x
Variables
Initialization
Melee Initialization
Force FFA
Spawn Peon
Remove excess mines
Remove excess mines2
Count players
Count players 2
Count players 3
Count players 4
Enter map-specific custom script code below. This text will be included in the map script after variables are declared and before any trigger code.
Name
Type
is_array
initial_value
players
integer
No
Default melee game initialization for all players
Melee Initialization
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)
Melee Game - Create starting units (for all players)
Melee Game - Run melee AI scripts (for computer players)
Melee Game - Enforce victory/defeat conditions (for all players)
Force FFA
Events
Map initialization
Conditions
Actions
-------- This section of code is a preventative measure to ensure that --------
-------- if for some reason there ARE players on the same team, --------
-------- initialization triggers just put them against each other anyways --------
-------- Effectively ignoring lobby teams --------
Player Group - Pick every player in (All players controlled by a User player) and do (Add (Picked player) to Player Group - Player 1 (Red))
Player Group - Pick every player in (All players controlled by a Computer player) and do (Add (Picked player) to Player Group - Player 1 (Red))
Player Group - Make Player Group - Player 1 (Red) treat Player Group - Player 1 (Red) as an Enemy
Player Group - Pick every player in Player Group - Player 1 (Red) and do (Actions)
Loop - Actions
Player - Turn Allied victory Off for (Picked player)
Spawn Peon
Events
Destructible - Cage 4920 <gen> dies
Conditions
Actions
Unit - Create 1 . Peon for Neutral Passive at (Position of Cage 4920 <gen>) facing 0.00 degrees
After several sessions, It became obvious that these maps need to be more modular when it comes to how many players/mines there are. The less players we get queing for games, the LONGER the game lasts because of the excessive amount of gold. These triggers trim the amount of gold mines down to better suit the amount of players present. The only problem with this system, is that players literally have to 'hunt' for their gold mines in games with less players. They (should) become fewer and farther between.
Remove excess mines
Events
Map initialization
Conditions
Actions
If ((Number of units in (Units in Region_000 <gen>)) Equal to 6) then do (Remove Gold Mine 0049 <gen> from the game) else do (Do nothing)
If ((Number of units in (Units in Region_001 <gen>)) Equal to 6) then do (Remove Gold Mine 0047 <gen> from the game) else do (Do nothing)
If ((Number of units in (Units in Region_002 <gen>)) Equal to 6) then do (Remove Gold Mine 0048 <gen> from the game) else do (Do nothing)
If ((Number of units in (Units in Region_003 <gen>)) Equal to 6) then do (Remove Gold Mine 0052 <gen> from the game) else do (Do nothing)
If ((Number of units in (Units in Region_004 <gen>)) Equal to 6) then do (Remove Gold Mine 0053 <gen> from the game) else do (Do nothing)
If ((Number of units in (Units in Region_005 <gen>)) Equal to 6) then do (Remove Gold Mine 0054 <gen> from the game) else do (Do nothing)
If ((Number of units in (Units in Region_006 <gen>)) Equal to 6) then do (Remove Gold Mine 0055 <gen> from the game) else do (Do nothing)
If ((Number of units in (Units in Region_007 <gen>)) Equal to 6) then do (Remove Gold Mine 0056 <gen> from the game) else do (Do nothing)
If ((Number of units in (Units in Region_008 <gen>)) Equal to 6) then do (Remove Gold Mine 0059 <gen> from the game) else do (Do nothing)
If ((Number of units in (Units in Region_009 <gen>)) Equal to 6) then do (Remove Gold Mine 0060 <gen> from the game) else do (Do nothing)
If ((Number of units in (Units in Region_010 <gen>)) Equal to 6) then do (Remove Gold Mine 0035 <gen> from the game) else do (Do nothing)
If ((Number of units in (Units in Region_011 <gen>)) Equal to 6) then do (Remove Gold Mine 0062 <gen> from the game) else do (Do nothing)
If ((Number of units in (Units in Region_012 <gen>)) Equal to 6) then do (Remove Gold Mine 0063 <gen> from the game) else do (Do nothing)
If ((Number of units in (Units in Region_013 <gen>)) Equal to 6) then do (Remove Gold Mine 0064 <gen> from the game) else do (Do nothing)
Trigger - Run Remove_excess_mines2 <gen> (checking conditions)
Remove excess mines2
Events
Conditions
Actions
If ((Number of units in (Units in Region_014 <gen>)) Equal to 7) then do (Remove Gold Mine 0065 <gen> from the game) else do (Do nothing)
If ((Number of units in (Units in Region_015 <gen>)) Equal to 6) then do (Remove Gold Mine 1353 <gen> from the game) else do (Do nothing)
If ((Number of units in (Units in Region_016 <gen>)) Equal to 6) then do (Remove Gold Mine 0066 <gen> from the game) else do (Do nothing)
If ((Number of units in (Units in Region_017 <gen>)) Equal to 6) then do (Remove Gold Mine 0067 <gen> from the game) else do (Do nothing)
If ((Number of units in (Units in Region_018 <gen>)) Equal to 6) then do (Remove Gold Mine 0058 <gen> from the game) else do (Do nothing)
If ((Number of units in (Units in Region_019 <gen>)) Equal to 6) then do (Remove Gold Mine 0068 <gen> from the game) else do (Do nothing)
If ((Number of units in (Units in Region_020 <gen>)) Equal to 6) then do (Remove Gold Mine 0069 <gen> from the game) else do (Do nothing)
If ((Number of units in (Units in Region_021 <gen>)) Equal to 6) then do (Remove Gold Mine 0051 <gen> from the game) else do (Do nothing)
If ((Number of units in (Units in Region_022 <gen>)) Equal to 6) then do (Remove Gold Mine 0050 <gen> from the game) else do (Do nothing)
If ((Number of units in (Units in Region_023 <gen>)) Equal to 6) then do (Remove Gold Mine 0070 <gen> from the game) else do (Do nothing)
Count players
Events
Conditions
Actions
Player Group - Pick every player in (All players controlled by a User player) and do (If (((Picked player) slot status) Equal to Is playing) then do (Set VariableSet players = (players + 1)) else do (Do nothing))
If (players Less than 24) then do (Remove Gold Mine 1167 <gen> from the game) else do (Do nothing)
If (players Less than 23) then do (Remove Gold Mine 0110 <gen> from the game) else do (Do nothing)
If (players Less than 22) then do (Remove Gold Mine 0071 <gen> from the game) else do (Do nothing)
If (players Less than 21) then do (Remove Gold Mine 0079 <gen> from the game) else do (Do nothing)
If (players Less than 21) then do (Remove Gold Mine 1189 <gen> from the game) else do (Do nothing)
If (players Less than 21) then do (Remove Gold Mine 0146 <gen> from the game) else do (Do nothing)
If (players Less than 20) then do (Remove Gold Mine 0107 <gen> from the game) else do (Do nothing)
If (players Less than 19) then do (Remove Gold Mine 0074 <gen> from the game) else do (Do nothing)
If (players Less than 19) then do (Remove Gold Mine 1322 <gen> from the game) else do (Do nothing)
If (players Less than 18) then do (Remove Gold Mine 0000 <gen> from the game) else do (Do nothing)
If (players Less than 17) then do (Remove Gold Mine 1108 <gen> from the game) else do (Do nothing)
Trigger - Run Count_players_2 <gen> (ignoring conditions)
Count players 2
Events
Conditions
Actions
If (players Less than 18) then do (Remove Gold Mine 0132 <gen> from the game) else do (Do nothing)
If (players Less than 16) then do (Remove Gold Mine 0339 <gen> from the game) else do (Do nothing)
If (players Less than 15) then do (Remove Gold Mine 0078 <gen> from the game) else do (Do nothing)
If (players Less than 13) then do (Remove Gold Mine 0083 <gen> from the game) else do (Do nothing)
If (players Less than 12) then do (Remove Gold Mine 0113 <gen> from the game) else do (Do nothing)
If (players Less than 11) then do (Remove Gold Mine 1300 <gen> from the game) else do (Do nothing)
If (players Less than 10) then do (Remove Gold Mine 0305 <gen> from the game) else do (Do nothing)
If (players Less than 8) then do (Remove Gold Mine 1208 <gen> from the game) else do (Do nothing)
If (players Less than 8) then do (Remove Gold Mine 0085 <gen> from the game) else do (Do nothing)
If (players Less than 7) then do (Remove Gold Mine 0131 <gen> from the game) else do (Do nothing)
Trigger - Run Count_players_3 <gen> (ignoring conditions)
Count players 3
Events
Conditions
Actions
If (players Less than 15) then do (Remove Gold Mine 0072 <gen> from the game) else do (Do nothing)
If (players Less than 14) then do (Remove Gold Mine 0109 <gen> from the game) else do (Do nothing)
If (players Less than 13) then do (Remove Gold Mine 0108 <gen> from the game) else do (Do nothing)
If (players Less than 12) then do (Remove Gold Mine 0105 <gen> from the game) else do (Do nothing)
If (players Less than 12) then do (Remove Gold Mine 1108 <gen> from the game) else do (Do nothing)
If (players Less than 12) then do (Remove Gold Mine 0077 <gen> from the game) else do (Do nothing)
If (players Less than 12) then do (Remove Gold Mine 0103 <gen> from the game) else do (Do nothing)
If (players Less than 11) then do (Remove Gold Mine 0602 <gen> from the game) else do (Do nothing)
If (players Less than 10) then do (Remove Gold Mine 0102 <gen> from the game) else do (Do nothing)
If (players Less than 9) then do (Remove Gold Mine 0057 <gen> from the game) else do (Do nothing)
Trigger - Run Count_players_4 <gen> (ignoring conditions)
Count players 4
Events
Conditions
Actions
If (players Less than 7) then do (Remove Gold Mine 0128 <gen> from the game) else do (Do nothing)
If (players Less than 6) then do (Remove Gold Mine 0073 <gen> from the game) else do (Do nothing)
If (players Less than 6) then do (Remove Gold Mine 0084 <gen> from the game) else do (Do nothing)
If (players Less than 5) then do (Remove Gold Mine 0081 <gen> from the game) else do (Do nothing)
If (players Less than 5) then do (Remove Gold Mine 0082 <gen> from the game) else do (Do nothing)
If (players Less than 4) then do (Remove Gold Mine 0080 <gen> from the game) else do (Do nothing)
If (players Less than 4) then do (Remove Gold Mine 0086 <gen> from the game) else do (Do nothing)
If (players Less than 4) then do (Remove Gold Mine 0106 <gen> from the game) else do (Do nothing)
If (players Less than 4) then do (Remove Gold Mine 0094 <gen> from the game) else do (Do nothing)
If (players Less than 3) then do (Remove Gold Mine 0096 <gen> from the game) else do (Do nothing)
If (players Less than 3) then do (Remove Gold Mine 1059 <gen> from the game) else do (Do nothing)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.