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
Spam Wars v1.0a.w3x
Variables
Core Functions
Initialization
Create
Update Spams
Win
Player Leaves
Define Colors
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
Player_Colors
string
Yes
SpamBoard
leaderboard
No
Spams
integer
Yes
Initialization
Events
Map initialization
Conditions
Actions
Visibility - Disable fog of war
Visibility - Disable black mask
Unit - Pause all units
Cinematic - Disable user control for (All players) .
Game - Display to (All players) the text: Welcome to Spam Wars v1.0a! Are you ready to spam?? All you have to do is just type in the most random stuff ever! You get 1 point for every letter, character, symbol, and space you type in. First person to 1,000 points wins!
Wait 5.00 seconds
Cinematic - Clear the screen of text messages for (All players) .
Wait 0.50 seconds
Game - Display to (All players) the text: |c000042ffL|r|c000d49f2e|r|c001a50e5t|r |c00345ecbt|r|c004165beh|r|c004e6cb1e|r |c00687a97s|r|c0075818ap|r|c0082887da|r|c008f8f70m|r|c009c9663s|r |c00b6a449b|r|c00c3ab3ce|r|c00d0b22fg|r|c00ddb922i|r|c00eac015n|r|c00f7c708!|r
Unit - Unpause all units
Cinematic - Enable user control for (All players) .
Trigger - Run Create <gen> (ignoring conditions)
Create
Events
Conditions
Actions
Leaderboard - Create a leaderboard for (All players) titled Spams
Set Variable Set SpamBoard = (Last created leaderboard)
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
And - All (Conditions) are true
Conditions
((Picked player) controller) Equal to User
((Picked player) slot status) Equal to Is playing
Then - Actions
Leaderboard - Add (Picked player) to SpamBoard with label (Name of (Picked player)) and value 0
Else - Actions
Do nothing
Leaderboard - Show SpamBoard
Update Spams
Events
Player - Player 1 (Red) types a chat message containing (Unexpected type: 'stringnoformat') as A substring
Player - Player 2 (Blue) types a chat message containing (Unexpected type: 'stringnoformat') as A substring
Player - Player 3 (Teal) types a chat message containing (Unexpected type: 'stringnoformat') as A substring
Player - Player 4 (Purple) types a chat message containing (Unexpected type: 'stringnoformat') as A substring
Player - Player 5 (Yellow) types a chat message containing (Unexpected type: 'stringnoformat') as A substring
Player - Player 6 (Orange) types a chat message containing (Unexpected type: 'stringnoformat') as A substring
Player - Player 7 (Green) types a chat message containing (Unexpected type: 'stringnoformat') as A substring
Player - Player 8 (Pink) types a chat message containing (Unexpected type: 'stringnoformat') as A substring
Player - Player 9 (Gray) types a chat message containing (Unexpected type: 'stringnoformat') as A substring
Player - Player 10 (Light Blue) types a chat message containing (Unexpected type: 'stringnoformat') as A substring
Player - Player 11 (Dark Green) types a chat message containing (Unexpected type: 'stringnoformat') as A substring
Player - Player 12 (Brown) types a chat message containing (Unexpected type: 'stringnoformat') as A substring
Conditions
Actions
Set Variable Set Spams[(Player number of (Triggering player))] = (Spams[(Player number of (Triggering player))] + (Length of (Entered chat string)))
Leaderboard - Change the value for (Triggering player) in SpamBoard to Spams[(Player number of (Triggering player))]
Leaderboard - Sort SpamBoard by Value in Descending order
Win
Events
Player - Player 1 (Red) types a chat message containing (Unexpected type: 'stringnoformat') as A substring
Player - Player 2 (Blue) types a chat message containing (Unexpected type: 'stringnoformat') as A substring
Player - Player 3 (Teal) types a chat message containing (Unexpected type: 'stringnoformat') as A substring
Player - Player 4 (Purple) types a chat message containing (Unexpected type: 'stringnoformat') as A substring
Player - Player 5 (Yellow) types a chat message containing (Unexpected type: 'stringnoformat') as A substring
Player - Player 6 (Orange) types a chat message containing (Unexpected type: 'stringnoformat') as A substring
Player - Player 7 (Green) types a chat message containing (Unexpected type: 'stringnoformat') as A substring
Player - Player 8 (Pink) types a chat message containing (Unexpected type: 'stringnoformat') as A substring
Player - Player 9 (Gray) types a chat message containing (Unexpected type: 'stringnoformat') as A substring
Player - Player 10 (Light Blue) types a chat message containing (Unexpected type: 'stringnoformat') as A substring
Player - Player 11 (Dark Green) types a chat message containing (Unexpected type: 'stringnoformat') as A substring
Player - Player 12 (Brown) types a chat message containing (Unexpected type: 'stringnoformat') as A substring
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Spams[(Player number of (Triggering player))] Greater than or equal to 1000
Then - Actions
Game - Victory (Triggering player) ( Show dialogs, Skip scores)
Player Group - Pick every player in (All players matching ((Picked player) Not equal to (Triggering player)).) and do (Actions)
Loop - Actions
Game - Defeat (Picked player) with the message: You just got spammed! Better spammings next time!
Else - Actions
Do nothing
Player Leaves
Events
Player - Player 1 (Red) leaves the game
Player - Player 2 (Blue) leaves the game
Player - Player 3 (Teal) leaves the game
Player - Player 4 (Purple) leaves the game
Player - Player 5 (Yellow) leaves the game
Player - Player 6 (Orange) leaves the game
Player - Player 7 (Green) leaves the game
Player - Player 8 (Pink) leaves the game
Player - Player 9 (Gray) leaves the game
Player - Player 10 (Light Blue) leaves the game
Player - Player 11 (Dark Green) leaves the game
Player - Player 12 (Brown) leaves the game
Conditions
Actions
Game - Display to (All players) the text: (Player_Colors[(Player number of (Triggering player))] + ((Name of (Triggering player)) + |r has left the game!))
Player - Set name of (Triggering player) to - Leaver -
Unit Group - Pick every unit in (Units owned by (Triggering player).) and do (Actions)
Loop - Actions
Unit - Kill (Picked unit)
Leaderboard - Change the label for (Triggering player) in SpamBoard to (Name of (Triggering player))
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.