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
Meteor Wars B8.w3x
Variables
Initialization
Period
Start
Leaderboard
Setup
P1
End
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
P1
integer
No
P2
integer
No
P3
integer
No
P4
integer
No
P5
integer
No
P6
integer
No
P7
integer
No
P8
integer
No
Unit
unit
Yes
Period
Events
Time - Every 4.00 seconds of game time
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in (Units owned by Player 12 (Brown).)) Greater than or equal to 50
Then - Actions
Do nothing
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Player 1 (Red) slot status) Equal to Is playing
Then - Actions
Unit - Create 1 Peasant for Player 12 (Brown) at (Random point in Rect_000 <gen>) facing (Position of (Triggering unit))
Unit - Order (Last created unit) to Patrol To . (Random point in Rect_000 <gen>)
Else - Actions
Wait 0.01 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Player 2 (Blue) slot status) Equal to Is playing
Then - Actions
Unit - Create 1 Peasant for Player 12 (Brown) at (Random point in Rect_000 <gen>) facing (Position of (Triggering unit))
Unit - Order (Last created unit) to Patrol To . (Random point in Rect_000 <gen>)
Else - Actions
Wait 0.01 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Player 3 (Teal) slot status) Equal to Is playing
Then - Actions
Unit - Create 1 Peasant for Player 12 (Brown) at (Random point in Rect_000 <gen>) facing (Position of (Triggering unit))
Unit - Order (Last created unit) to Patrol To . (Random point in Rect_000 <gen>)
Else - Actions
Wait 0.01 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Player 4 (Purple) slot status) Equal to Is playing
Then - Actions
Unit - Create 1 Peasant for Player 12 (Brown) at (Random point in Rect_000 <gen>) facing (Position of (Triggering unit))
Unit - Order (Last created unit) to Patrol To . (Random point in Rect_000 <gen>)
Else - Actions
Wait 0.01 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Player 5 (Yellow) slot status) Equal to Is playing
Then - Actions
Unit - Create 1 Peasant for Player 12 (Brown) at (Random point in Rect_000 <gen>) facing (Position of (Triggering unit))
Unit - Order (Last created unit) to Patrol To . (Random point in Rect_000 <gen>)
Else - Actions
Wait 0.01 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Player 6 (Orange) slot status) Equal to Is playing
Then - Actions
Unit - Create 1 Peasant for Player 12 (Brown) at (Random point in Rect_000 <gen>) facing (Position of (Triggering unit))
Unit - Order (Last created unit) to Patrol To . (Random point in Rect_000 <gen>)
Else - Actions
Wait 0.01 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Player 7 (Green) slot status) Equal to Is playing
Then - Actions
Unit - Create 1 Peasant for Player 12 (Brown) at (Random point in Rect_000 <gen>) facing (Position of (Triggering unit))
Unit - Order (Last created unit) to Patrol To . (Random point in Rect_000 <gen>)
Else - Actions
Wait 0.01 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Player 8 (Pink) slot status) Equal to Is playing
Then - Actions
Unit - Create 1 Peasant for Player 12 (Brown) at (Random point in Rect_000 <gen>) facing (Position of (Triggering unit))
Unit - Order (Last created unit) to Patrol To . (Random point in Rect_000 <gen>)
Else - Actions
Start
Events
Map initialization
Conditions
Actions
Player Group - Pick every player in (All players) and do (Create an initially Enabled visibility modifier for (Picked player) emitting Visibility across Rect_000 <gen>)
Unit Group - Pick every unit in (Units of type Meteor Caller) and do (Pause (Picked unit))
Game - Display to (All players) the text: Welcome to Meteor Wars!Your king has gotten pissed at all his peasants. He has commissioned you all to kill as many as possible. The person who kills the most will receive riches beyond their wildest dreams!
Player Group - Pick every player in (All players) and do (.Apply. gg_cam_Camera_001 for (Picked player) over 0 seconds)
Selection - Select Meteor Caller 0000 <gen> for Player 1 (Red)
Selection - Select Meteor Caller 0001 <gen> for Player 2 (Blue)
Selection - Select Meteor Caller 0002 <gen> for Player 3 (Teal)
Selection - Select Meteor Caller 0003 <gen> for Player 4 (Purple)
Selection - Select Meteor Caller 0004 <gen> for Player 5 (Yellow)
Selection - Select Meteor Caller 0005 <gen> for Player 6 (Orange)
Selection - Select Meteor Caller 0006 <gen> for Player 7 (Green)
Selection - Select Meteor Caller 0007 <gen> for Player 8 (Pink)
Wait 2.00 seconds
Game - Display to (All players) the text: First to 30 points is the winner!Your meteor callers are at the edges of the map.
Wait 10.00 seconds
Unit Group - Pick every unit in (Units of type Meteor Caller) and do (Unpause (Picked unit))
Game - Display to (All players) the text: Begin!
Setup
Events
Map initialization
Conditions
Actions
Wait 0.01 seconds
Leaderboard - Create a leaderboard for (All players) titled Standings
Leaderboard - Add Player 1 (Red) to (Last created leaderboard) with label (Name of Player 1 (Red)) and value P1
Leaderboard - Add Player 2 (Blue) to (Last created leaderboard) with label (Name of Player 2 (Blue)) and value P2
Leaderboard - Add Player 3 (Teal) to (Last created leaderboard) with label (Name of Player 3 (Teal)) and value P3
Leaderboard - Add Player 4 (Purple) to (Last created leaderboard) with label (Name of Player 4 (Purple)) and value P4
Leaderboard - Add Player 5 (Yellow) to (Last created leaderboard) with label (Name of Player 5 (Yellow)) and value P5
Leaderboard - Add Player 6 (Orange) to (Last created leaderboard) with label (Name of Player 6 (Orange)) and value P6
Leaderboard - Add Player 7 (Green) to (Last created leaderboard) with label (Name of Player 7 (Green)) and value P7
Leaderboard - Add Player 8 (Pink) to (Last created leaderboard) with label (Name of Player 8 (Pink)) and value P8
P1
Events
Unit - A unit Dies
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Killing unit) is in (Units owned by Player 1 (Red).).) Equal to True
Then - Actions
Set Variable Set P1 = (P1 + 1)
Leaderboard - Change the value for Player 1 (Red) in (Last created leaderboard) to P1
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Killing unit) is in (Units owned by Player 2 (Blue).).) Equal to True
Then - Actions
Set Variable Set P2 = (P2 + 1)
Leaderboard - Change the value for Player 2 (Blue) in (Last created leaderboard) to P2
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Killing unit) is in (Units owned by Player 3 (Teal).).) Equal to True
Then - Actions
Set Variable Set P3 = (P3 + 1)
Leaderboard - Change the value for Player 3 (Teal) in (Last created leaderboard) to P3
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Killing unit) is in (Units owned by Player 4 (Purple).).) Equal to True
Then - Actions
Set Variable Set P4 = (P4 + 1)
Leaderboard - Change the value for Player 4 (Purple) in (Last created leaderboard) to P4
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Killing unit) is in (Units owned by Player 5 (Yellow).).) Equal to True
Then - Actions
Set Variable Set P5 = (P5 + 1)
Leaderboard - Change the value for Player 5 (Yellow) in (Last created leaderboard) to P5
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Killing unit) is in (Units owned by Player 6 (Orange).).) Equal to True
Then - Actions
Set Variable Set P6 = (P6 + 1)
Leaderboard - Change the value for Player 6 (Orange) in (Last created leaderboard) to P6
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Killing unit) is in (Units owned by Player 7 (Green).).) Equal to True
Then - Actions
Set Variable Set P7 = (P7 + 1)
Leaderboard - Change the value for Player 7 (Green) in (Last created leaderboard) to P7
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Killing unit) is in (Units owned by Player 8 (Pink).).) Equal to True
Then - Actions
Set Variable Set P8 = (P8 + 1)
Leaderboard - Change the value for Player 8 (Pink) in (Last created leaderboard) to P8
Else - Actions
End
Events
Unit - A unit Dies
Conditions
Actions
Wait 0.01 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
P1 Greater than or equal to 30
Then - Actions
Game - Victory Player 1 (Red) ( Show dialogs, Show scores)
Player Group - Pick every player in (All enemies of (Owner of (Killing unit)).) and do (Defeat (Picked player) with the message: Defeat!)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
P2 Greater than or equal to 30
Then - Actions
Game - Victory Player 2 (Blue) ( Show dialogs, Show scores)
Player Group - Pick every player in (All enemies of (Owner of (Killing unit)).) and do (Defeat (Picked player) with the message: Defeat!)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
P3 Greater than or equal to 30
Then - Actions
Game - Victory Player 3 (Teal) ( Show dialogs, Show scores)
Player Group - Pick every player in (All enemies of (Owner of (Killing unit)).) and do (Defeat (Picked player) with the message: Defeat!)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
P4 Greater than or equal to 30
Then - Actions
Game - Victory Player 4 (Purple) ( Show dialogs, Show scores)
Player Group - Pick every player in (All enemies of (Owner of (Killing unit)).) and do (Defeat (Picked player) with the message: Defeat!)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
P5 Greater than or equal to 30
Then - Actions
Game - Victory Player 5 (Yellow) ( Show dialogs, Show scores)
Player Group - Pick every player in (All enemies of (Owner of (Killing unit)).) and do (Defeat (Picked player) with the message: Defeat!)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
P6 Greater than or equal to 30
Then - Actions
Game - Victory Player 6 (Orange) ( Show dialogs, Show scores)
Player Group - Pick every player in (All enemies of (Owner of (Killing unit)).) and do (Defeat (Picked player) with the message: Defeat!)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
P7 Greater than or equal to 30
Then - Actions
Game - Victory Player 7 (Green) ( Show dialogs, Show scores)
Player Group - Pick every player in (All enemies of (Owner of (Killing unit)).) and do (Defeat (Picked player) with the message: Defeat!)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
P8 Greater than or equal to 30
Then - Actions
Game - Victory Player 8 (Pink) ( Show dialogs, Show scores)
Player Group - Pick every player in (All enemies of (Owner of (Killing unit)).) and do (Defeat (Picked player) with the message: Defeat!)
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.