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
SnowballFight_1.0B.w3x.w3x
Variables
Initialization
Initialization
Player Red Leaves
Player Blue Leaves
Player Yellow Leaves
Player Teal Leaves
Player Purple Leaves
Player Orange Leaves
Player Green Leaves
Player Pink Leaves
Player Grey
Player Light Blue
The Presents
Presents random spawn
Pickup
Leave
Blue Vault
Red Vault
Blue Victory
Red Victory
Hero
Die
Die Aftermath With Present
Death Sounds
Play Sounds
Leadboard
Start
Blue
Red
Misc
Speed Runes
Colors
Quick Start Message
Multiboard
Multiboard Initialization
Killing
Items Picked up
Questlog
Changelog
To DO
Name
Type
is_array
initial_value
Deaths
integer
Yes
ItemRegion
rect
Yes
Kills
integer
Yes
Presents
integer
Yes
PresentsCarried
integer
Yes
Initialization
Events
Map initialization
Conditions
Actions
Visibility - Disable fog of war
Visibility - Disable black mask
-------- Variables --------
Set Variable Set ItemRegion[1] = Item_Region_1 <gen>
Set Variable Set ItemRegion[2] = Item_Region_2 <gen>
Set Variable Set ItemRegion[3] = Item_Region_3 <gen>
Set Variable Set ItemRegion[4] = Item_Region_4 <gen>
Set Variable Set ItemRegion[5] = Item_Region_5 <gen>
Set Variable Set ItemRegion[6] = Item_Region_6 <gen>
Set Variable Set ItemRegion[7] = Item_Region_7 <gen>
Set Variable Set ItemRegion[8] = Item_Region_8 <gen>
Set Variable Set ItemRegion[9] = Item_Region_9 <gen>
Set Variable Set ItemRegion[10] = Item_Region_10 <gen>
Set Variable Set ItemRegion[11] = Item_Region_11 <gen>
Set Variable Set ItemRegion[12] = Item_Region_12 <gen>
Set Variable Set ItemRegion[13] = Item_Region_13 <gen>
Set Variable Set Presents[1] = "0"
Set Variable Set Presents[2] = "0"
Player Red Leaves
Events
Player - Player 1 (Red) leaves the game
Conditions
Actions
Game - Display to (All players) for 10.00 seconds the text: (Name of (Triggering player))
Game - Display to (All players) for 10.00 seconds the text: Has left the game.
Player Blue Leaves
Events
Player - Player 2 (Blue) leaves the game
Conditions
Actions
Game - Display to (All players) for 10.00 seconds the text: (Name of (Triggering player))
Game - Display to (All players) for 10.00 seconds the text: Has left the game.
Player Yellow Leaves
Events
Player - Player 5 (Yellow) leaves the game
Conditions
Actions
Game - Display to (All players) for 10.00 seconds the text: (Name of (Triggering player))
Game - Display to (All players) for 10.00 seconds the text: Has left the game.
Player Teal Leaves
Events
Player - Player 3 (Teal) leaves the game
Conditions
Actions
Game - Display to (All players) for 10.00 seconds the text: (Name of (Triggering player))
Game - Display to (All players) for 10.00 seconds the text: Has left the game.
Player Purple Leaves
Events
Player - Player 4 (Purple) leaves the game
Conditions
Actions
Game - Display to (All players) for 10.00 seconds the text: (Name of (Triggering player))
Game - Display to (All players) for 10.00 seconds the text: Has left the game.
Player Orange Leaves
Events
Player - Player 6 (Orange) leaves the game
Conditions
Actions
Game - Display to (All players) for 10.00 seconds the text: (Name of (Triggering player))
Game - Display to (All players) for 10.00 seconds the text: Has left the game.
Player Green Leaves
Events
Player - Player 7 (Green) leaves the game
Conditions
Actions
Game - Display to (All players) for 10.00 seconds the text: (Name of (Triggering player))
Game - Display to (All players) for 10.00 seconds the text: Has left the game.
Player Pink Leaves
Events
Player - Player 8 (Pink) leaves the game
Conditions
Actions
Game - Display to (All players) for 10.00 seconds the text: (Name of (Triggering player))
Game - Display to (All players) for 10.00 seconds the text: Has left the game.
Player Grey
Events
Player - Player 9 (Gray) leaves the game
Conditions
Actions
Game - Display to (All players) for 10.00 seconds the text: (Name of (Triggering player))
Game - Display to (All players) for 10.00 seconds the text: Has left the game.
Player Light Blue
Events
Player - Player 10 (Light Blue) leaves the game
Conditions
Actions
Game - Display to (All players) for 10.00 seconds the text: (Name of (Triggering player))
Game - Display to (All players) for 10.00 seconds the text: Has left the game.
Presents random spawn
Events
Time - Every (Random real number between 50.00 and 195.00) seconds of game time
Conditions
Actions
Item - Create Present at (Center of ItemRegion[(Random integer number between 1 and 13)])
Cinematic - Ping minimap for (All players) at (Position of (Last created item)) for 4.70 seconds
Pickup
Events
Unit - A unit Acquires an item
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
Special Effect - Create a special effect attached to the hand,right (Unexpected type: 'attachpoint') of (Triggering unit) using Objects\InventoryItems\BundleofGifts\BundleofGifts.mdl
Unit - Set (Triggering unit) movement speed to 290.00
Leave
Events
Unit - A unit Loses an item
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
Special Effect - Destroy (Last created special effect)
Unit - Set (Triggering unit) movement speed to 350.00
Blue Vault
Events
Unit - A unit Acquires an item
Conditions
(Item-type of (Item carried by Present Vault 0016 <gen> in slot 1)) Equal to Present
Actions
Set Variable Set Presents[1] = (Presents[1] + 1)
Item - Remove (Item carried by Present Vault 0016 <gen> in slot 1)
Red Vault
Events
Unit - A unit Acquires an item
Conditions
(Item-type of (Item carried by Present Vault 0017 <gen> in slot 1)) Equal to Present
Actions
Set Variable Set Presents[2] = (Presents[2] + 1)
Item - Remove (Item carried by Present Vault 0017 <gen> in slot 1)
Blue Victory
Events
Time - Every 10.00 seconds of game time
Conditions
Presents[1] Equal to 18
Actions
Game - Victory Player 1 (Red) ( Show dialogs, Show scores)
Game - Victory Player 2 (Blue) ( Show dialogs, Show scores)
Game - Victory Player 3 (Teal) ( Show dialogs, Show scores)
Game - Victory Player 4 (Purple) ( Show dialogs, Show scores)
Game - Victory Player 5 (Yellow) ( Show dialogs, Show scores)
Red Victory
Events
Time - Every 10.00 seconds of game time
Conditions
Presents[2] Equal to 18
Actions
Game - Victory Player 6 (Orange) ( Show dialogs, Show scores)
Game - Victory Player 7 (Green) ( Show dialogs, Show scores)
Game - Victory Player 8 (Pink) ( Show dialogs, Show scores)
Game - Victory Player 9 (Gray) ( Show dialogs, Show scores)
Game - Victory Player 10 (Light Blue) ( Show dialogs, Show scores)
Die
Events
Unit - A unit Dies
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Dying unit)) Equal to Player 1 (Red)
Then - Actions
Wait (Random real number between 5.00 and 10.00) seconds
Hero - Instantly revive (Triggering unit) at (Center of Item_Blue <gen>) , Hide revival graphics
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Dying unit)) Equal to Player 2 (Blue)
Then - Actions
Wait (Random real number between 5.00 and 10.00) seconds
Hero - Instantly revive (Triggering unit) at (Center of Item_Blue <gen>) , Hide revival graphics
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Dying unit)) Equal to Player 3 (Teal)
Then - Actions
Wait (Random real number between 5.00 and 10.00) seconds
Hero - Instantly revive (Triggering unit) at (Center of Item_Blue <gen>) , Hide revival graphics
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Dying unit)) Equal to Player 4 (Purple)
Then - Actions
Wait (Random real number between 5.00 and 10.00) seconds
Hero - Instantly revive (Triggering unit) at (Center of Item_Blue <gen>) , Hide revival graphics
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Dying unit)) Equal to Player 5 (Yellow)
Then - Actions
Wait (Random real number between 5.00 and 10.00) seconds
Hero - Instantly revive (Triggering unit) at (Center of Item_Blue <gen>) , Hide revival graphics
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Dying unit)) Equal to Player 6 (Orange)
Then - Actions
Wait (Random real number between 5.00 and 10.00) seconds
Hero - Instantly revive (Triggering unit) at (Center of Item_Red <gen>) , Hide revival graphics
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Dying unit)) Equal to Player 7 (Green)
Then - Actions
Wait (Random real number between 5.00 and 10.00) seconds
Hero - Instantly revive (Triggering unit) at (Center of Item_Red <gen>) , Hide revival graphics
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Dying unit)) Equal to Player 8 (Pink)
Then - Actions
Wait (Random real number between 5.00 and 10.00) seconds
Hero - Instantly revive (Triggering unit) at (Center of Item_Red <gen>) , Hide revival graphics
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Dying unit)) Equal to Player 9 (Gray)
Then - Actions
Wait (Random real number between 5.00 and 10.00) seconds
Hero - Instantly revive (Triggering unit) at (Center of Item_Red <gen>) , Hide revival graphics
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Dying unit)) Equal to Player 10 (Light Blue)
Then - Actions
Wait (Random real number between 5.00 and 10.00) seconds
Hero - Instantly revive (Triggering unit) at (Center of Item_Red <gen>) , Hide revival graphics
Else - Actions
Do nothing
Die Aftermath With Present
Events
Unit - A unit Dies
Conditions
(Item-type of (Item carried by (Dying unit) in slot 1)) Equal to Present
Actions
Hero - Drop (Item carried by (Dying unit) in slot 1) from (Dying unit) .
Play Sounds
Events
Unit - A unit Dies
Conditions
((Dying unit) is A Hero) Equal to True
Actions
Game - Display to (All players) the text: (((Name of (Owner of (Killing unit))) + |c007EBFF1 has just iced |r) + (Name of (Owner of (Dying unit))))
Start
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Leaderboard - Create a leaderboard for (All players) titled Presents
Leaderboard - Add Player 1 (Red) to (Last created leaderboard) with label Presents and value 0
Leaderboard - Add Player 5 (Yellow) to (Last created leaderboard) with label Presents and value 0
Leaderboard - Change the color of the label for Player 1 (Red) in (Last created leaderboard) to ( 0.00 %, 0.00 %, 100.00 %) with 0 % transparency
Leaderboard - Change the color of the label for Player 5 (Yellow) in (Last created leaderboard) to ( 100.00 %, 0.00 %, 0.00 %) with 0 % transparency
Leaderboard - Change the color of the value for Player 1 (Red) in (Last created leaderboard) to ( 0.00 %, 0.00 %, 100.00 %) with 0 % transparency
Leaderboard - Change the color of the value for Player 5 (Yellow) in (Last created leaderboard) to ( 100 %, 0.00 %, 0.00 %) with 0 % transparency
Wait 2 seconds
Leaderboard - Show (Last created leaderboard)
Blue
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Leaderboard - Change the value for Player 1 (Red) in (Last created leaderboard) to Presents[1]
Red
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Leaderboard - Change the value for Player 5 (Yellow) in (Last created leaderboard) to Presents[2]
Speed Runes
Events
Time - Every 120.00 seconds of game time
Conditions
Actions
Item - Create Speed Up! at (Center of Item_Blue <gen>)
Cinematic - Ping minimap for (All allies of Player 1 (Red).) at (Position of (Last created item)) for 2.50 seconds, using a Flashy ping of color ( 0.00 %, 100 %, 0.00 %)
Item - Create Speed Up! at (Center of Item_Red <gen>)
Cinematic - Ping minimap for (All allies of Player 6 (Orange).) at (Position of (Last created item)) for 2.50 seconds, using a Flashy ping of color ( 0.00 %, 100 %, 0.00 %)
Game - Display to (All players) for 10.00 seconds the text: The hotkeys have been remade as follows:(|c00FF8040Q|r) - Snowball(|c00FF8040W|r) - Hidden Rock(|c00FF8040E|r) - Ultimate Snowball(|c00FF8040R|r) - Snow Cone(|c00FF8040T|r) - Ice Armor
Multiboard Initialization
Events
Time - Elapsed game time is 0.10 seconds
Conditions
Actions
Multiboard - Create a multiboard with 4 columns and 12 rows, titled Snowball Fight .
Multiboard - Set the display style for (Last created multiboard) item in column 0 , row 0 to Show text and Hide icons
Multiboard - Set the width for (Last created multiboard) item in column 1 , row 0 to 10.00 % of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column 2 , row 0 to 5.00 % of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column 3 , row 0 to 5.00 % of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column 4 , row 0 to 6.00 % of the total screen width
-------- Players --------
Multiboard - Set the text for (Last created multiboard) item in column 1 , row 3 to (Name of Player 1 (Red))
Multiboard - Set the text for (Last created multiboard) item in column 1 , row 4 to (Name of Player 2 (Blue))
Multiboard - Set the text for (Last created multiboard) item in column 1 , row 5 to (Name of Player 3 (Teal))
Multiboard - Set the text for (Last created multiboard) item in column 1 , row 6 to (Name of Player 4 (Purple))
Multiboard - Set the text for (Last created multiboard) item in column 1 , row 7 to (Name of Player 5 (Yellow))
Multiboard - Set the text for (Last created multiboard) item in column 1 , row 8 to (Name of Player 6 (Orange))
Multiboard - Set the text for (Last created multiboard) item in column 1 , row 9 to (Name of Player 7 (Green))
Multiboard - Set the text for (Last created multiboard) item in column 1 , row 10 to (Name of Player 8 (Pink))
Multiboard - Set the text for (Last created multiboard) item in column 1 , row 11 to (Name of Player 9 (Gray))
Multiboard - Set the text for (Last created multiboard) item in column 1 , row 12 to (Name of Player 10 (Light Blue))
-------- Titles --------
Multiboard - Set the display style for (Last created multiboard) item in column 0 , row 1 to Show text and Hide icons
Multiboard - Set the text for (Last created multiboard) item in column 1 , row 1 to Player
Multiboard - Set the text for (Last created multiboard) item in column 2 , row 1 to Kills
Multiboard - Set the text for (Last created multiboard) item in column 3 , row 1 to Deaths
Multiboard - Set the text for (Last created multiboard) item in column 4 , row 1 to Presents Picked Up
-------- Numbers --------
Set Variable Set Deaths[1] = "0"
Set Variable Set Deaths[2] = "0"
Set Variable Set Deaths[3] = "0"
Set Variable Set Deaths[4] = "0"
Set Variable Set Deaths[5] = "0"
Set Variable Set Deaths[6] = "0"
Set Variable Set Deaths[7] = "0"
Set Variable Set Deaths[8] = "0"
Set Variable Set Deaths[9] = "0"
Set Variable Set Deaths[10] = "0"
Set Variable Set Kills[1] = "0"
Set Variable Set Kills[2] = "0"
Set Variable Set Kills[3] = "0"
Set Variable Set Kills[4] = "0"
Set Variable Set Kills[5] = "0"
Set Variable Set Kills[6] = "0"
Set Variable Set Kills[7] = "0"
Set Variable Set Kills[8] = "0"
Set Variable Set Kills[9] = "0"
Set Variable Set Kills[10] = "0"
Set Variable Set PresentsCarried[1] = "0"
Set Variable Set PresentsCarried[2] = "0"
Set Variable Set PresentsCarried[3] = "0"
Set Variable Set PresentsCarried[4] = "0"
Set Variable Set PresentsCarried[5] = "0"
Set Variable Set PresentsCarried[6] = "0"
Set Variable Set PresentsCarried[7] = "0"
Set Variable Set PresentsCarried[8] = "0"
Set Variable Set PresentsCarried[9] = "0"
Set Variable Set PresentsCarried[10] = "0"
-------- Numbers on Board --------
Multiboard - Set the text for (Last created multiboard) item in column 2 , row 3 to (String(Kills[1]))
Multiboard - Set the text for (Last created multiboard) item in column 2 , row 4 to (String(Kills[2]))
Multiboard - Set the text for (Last created multiboard) item in column 2 , row 5 to (String(Kills[3]))
Multiboard - Set the text for (Last created multiboard) item in column 2 , row 6 to (String(Kills[4]))
Multiboard - Set the text for (Last created multiboard) item in column 2 , row 7 to (String(Kills[5]))
Multiboard - Set the text for (Last created multiboard) item in column 2 , row 8 to (String(Kills[6]))
Multiboard - Set the text for (Last created multiboard) item in column 2 , row 9 to (String(Kills[7]))
Multiboard - Set the text for (Last created multiboard) item in column 2 , row 10 to (String(Kills[8]))
Multiboard - Set the text for (Last created multiboard) item in column 2 , row 11 to (String(Kills[9]))
Multiboard - Set the text for (Last created multiboard) item in column 2 , row 12 to (String(Kills[10]))
Multiboard - Set the text for (Last created multiboard) item in column 3 , row 3 to (String(Deaths[1]))
Multiboard - Set the text for (Last created multiboard) item in column 3 , row 4 to (String(Deaths[2]))
Multiboard - Set the text for (Last created multiboard) item in column 3 , row 5 to (String(Deaths[3]))
Multiboard - Set the text for (Last created multiboard) item in column 3 , row 6 to (String(Deaths[4]))
Multiboard - Set the text for (Last created multiboard) item in column 3 , row 7 to (String(Deaths[5]))
Multiboard - Set the text for (Last created multiboard) item in column 3 , row 8 to (String(Deaths[6]))
Multiboard - Set the text for (Last created multiboard) item in column 3 , row 9 to (String(Deaths[7]))
Multiboard - Set the text for (Last created multiboard) item in column 3 , row 10 to (String(Deaths[8]))
Multiboard - Set the text for (Last created multiboard) item in column 3 , row 11 to (String(Deaths[9]))
Multiboard - Set the text for (Last created multiboard) item in column 3 , row 12 to (String(Deaths[10]))
Multiboard - Set the text for (Last created multiboard) item in column 4 , row 3 to (String(PresentsCarried[1]))
Multiboard - Set the text for (Last created multiboard) item in column 4 , row 4 to (String(PresentsCarried[2]))
Multiboard - Set the text for (Last created multiboard) item in column 4 , row 5 to (String(PresentsCarried[3]))
Multiboard - Set the text for (Last created multiboard) item in column 4 , row 6 to (String(PresentsCarried[4]))
Multiboard - Set the text for (Last created multiboard) item in column 4 , row 7 to (String(PresentsCarried[5]))
Multiboard - Set the text for (Last created multiboard) item in column 4 , row 8 to (String(PresentsCarried[6]))
Multiboard - Set the text for (Last created multiboard) item in column 4 , row 9 to (String(PresentsCarried[7]))
Multiboard - Set the text for (Last created multiboard) item in column 4 , row 10 to (String(PresentsCarried[8]))
Multiboard - Set the text for (Last created multiboard) item in column 4 , row 11 to (String(PresentsCarried[9]))
Multiboard - Set the text for (Last created multiboard) item in column 4 , row 12 to (String(PresentsCarried[10]))
Killing
Events
Unit - A unit Dies
Conditions
Actions
-------- Player 1 --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Killing unit)) Equal to Player 1 (Red)
Then - Actions
Set Variable Set Kills[1] = (Kills[1] + 1)
Multiboard - Set the text for (Last created multiboard) item in column 2 , row 3 to (String(Kills[1]))
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Dying unit)) Equal to Player 1 (Red)
Then - Actions
Set Variable Set Deaths[1] = (Deaths[1] + 1)
Multiboard - Set the text for (Last created multiboard) item in column 3 , row 3 to (String(Deaths[1]))
Else - Actions
Do nothing
-------- Player 2 --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Killing unit)) Equal to Player 2 (Blue)
Then - Actions
Set Variable Set Kills[2] = (Kills[2] + 1)
Multiboard - Set the text for (Last created multiboard) item in column 2 , row 4 to (String(Kills[2]))
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Dying unit)) Equal to Player 2 (Blue)
Then - Actions
Set Variable Set Deaths[2] = (Deaths[2] + 1)
Multiboard - Set the text for (Last created multiboard) item in column 3 , row 4 to (String(Deaths[2]))
Else - Actions
Do nothing
-------- Player 3 --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Killing unit)) Equal to Player 3 (Teal)
Then - Actions
Set Variable Set Kills[3] = (Kills[3] + 1)
Multiboard - Set the text for (Last created multiboard) item in column 2 , row 5 to (String(Kills[3]))
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Dying unit)) Equal to Player 3 (Teal)
Then - Actions
Set Variable Set Deaths[3] = (Deaths[3] + 1)
Multiboard - Set the text for (Last created multiboard) item in column 3 , row 5 to (String(Deaths[3]))
Else - Actions
Do nothing
-------- Player 4 --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Killing unit)) Equal to Player 4 (Purple)
Then - Actions
Set Variable Set Kills[4] = (Kills[4] + 1)
Multiboard - Set the text for (Last created multiboard) item in column 2 , row 6 to (String(Kills[4]))
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Dying unit)) Equal to Player 4 (Purple)
Then - Actions
Set Variable Set Deaths[4] = (Deaths[4] + 1)
Multiboard - Set the text for (Last created multiboard) item in column 3 , row 6 to (String(Deaths[4]))
Else - Actions
Do nothing
-------- Player 5 --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Killing unit)) Equal to Player 5 (Yellow)
Then - Actions
Set Variable Set Kills[5] = (Kills[5] + 1)
Multiboard - Set the text for (Last created multiboard) item in column 2 , row 7 to (String(Kills[5]))
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Dying unit)) Equal to Player 5 (Yellow)
Then - Actions
Set Variable Set Deaths[5] = (Deaths[5] + 1)
Multiboard - Set the text for (Last created multiboard) item in column 3 , row 7 to (String(Deaths[5]))
Else - Actions
Do nothing
-------- Player 6 --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Killing unit)) Equal to Player 6 (Orange)
Then - Actions
Set Variable Set Kills[6] = (Kills[6] + 1)
Multiboard - Set the text for (Last created multiboard) item in column 2 , row 8 to (String(Kills[6]))
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Dying unit)) Equal to Player 6 (Orange)
Then - Actions
Set Variable Set Deaths[6] = (Deaths[6] + 1)
Multiboard - Set the text for (Last created multiboard) item in column 3 , row 8 to (String(Deaths[6]))
Else - Actions
Do nothing
-------- Player 7 --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Killing unit)) Equal to Player 7 (Green)
Then - Actions
Set Variable Set Kills[7] = (Kills[7] + 1)
Multiboard - Set the text for (Last created multiboard) item in column 2 , row 9 to (String(Kills[7]))
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Dying unit)) Equal to Player 7 (Green)
Then - Actions
Set Variable Set Deaths[7] = (Deaths[7] + 1)
Multiboard - Set the text for (Last created multiboard) item in column 3 , row 9 to (String(Deaths[7]))
Else - Actions
Do nothing
-------- Player 8 --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Killing unit)) Equal to Player 8 (Pink)
Then - Actions
Set Variable Set Kills[8] = (Kills[8] + 1)
Multiboard - Set the text for (Last created multiboard) item in column 2 , row 10 to (String(Kills[8]))
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Dying unit)) Equal to Player 8 (Pink)
Then - Actions
Set Variable Set Deaths[8] = (Deaths[8] + 1)
Multiboard - Set the text for (Last created multiboard) item in column 3 , row 10 to (String(Deaths[8]))
Else - Actions
Do nothing
-------- Player 9 --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Killing unit)) Equal to Player 9 (Gray)
Then - Actions
Set Variable Set Kills[9] = (Kills[9] + 1)
Multiboard - Set the text for (Last created multiboard) item in column 2 , row 11 to (String(Kills[9]))
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Dying unit)) Equal to Player 9 (Gray)
Then - Actions
Set Variable Set Deaths[9] = (Deaths[9] + 1)
Multiboard - Set the text for (Last created multiboard) item in column 3 , row 11 to (String(Deaths[9]))
Else - Actions
Do nothing
-------- Player 10 --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Killing unit)) Equal to Player 10 (Light Blue)
Then - Actions
Set Variable Set Kills[10] = (Kills[10] + 1)
Multiboard - Set the text for (Last created multiboard) item in column 2 , row 12 to (String(Kills[10]))
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Dying unit)) Equal to Player 10 (Light Blue)
Then - Actions
Set Variable Set Deaths[10] = (Deaths[10] + 1)
Multiboard - Set the text for (Last created multiboard) item in column 3 , row 12 to (String(Deaths[10]))
Else - Actions
Do nothing
Items Picked up
Events
Unit - A unit Acquires an item
Conditions
((Triggering unit) is A Hero) Equal to True
(Item-type of (Item carried by (Triggering unit) in slot 1)) Equal to Present
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Triggering unit)) Equal to Player 1 (Red)
Then - Actions
Set Variable Set PresentsCarried[1] = (PresentsCarried[1] + 1)
Multiboard - Set the text for (Last created multiboard) item in column 4 , row 3 to (String(PresentsCarried[1]))
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Triggering unit)) Equal to Player 2 (Blue)
Then - Actions
Set Variable Set PresentsCarried[2] = (PresentsCarried[2] + 1)
Multiboard - Set the text for (Last created multiboard) item in column 4 , row 4 to (String(PresentsCarried[2]))
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Triggering unit)) Equal to Player 3 (Teal)
Then - Actions
Set Variable Set PresentsCarried[3] = (PresentsCarried[3] + 1)
Multiboard - Set the text for (Last created multiboard) item in column 4 , row 5 to (String(PresentsCarried[3]))
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Triggering unit)) Equal to Player 4 (Purple)
Then - Actions
Set Variable Set PresentsCarried[4] = (PresentsCarried[4] + 1)
Multiboard - Set the text for (Last created multiboard) item in column 4 , row 6 to (String(PresentsCarried[4]))
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Triggering unit)) Equal to Player 5 (Yellow)
Then - Actions
Set Variable Set PresentsCarried[5] = (PresentsCarried[5] + 1)
Multiboard - Set the text for (Last created multiboard) item in column 4 , row 7 to (String(PresentsCarried[5]))
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Triggering unit)) Equal to Player 6 (Orange)
Then - Actions
Set Variable Set PresentsCarried[6] = (PresentsCarried[6] + 1)
Multiboard - Set the text for (Last created multiboard) item in column 4 , row 8 to (String(PresentsCarried[6]))
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Triggering unit)) Equal to Player 7 (Green)
Then - Actions
Set Variable Set PresentsCarried[7] = (PresentsCarried[7] + 1)
Multiboard - Set the text for (Last created multiboard) item in column 4 , row 9 to (String(PresentsCarried[7]))
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Triggering unit)) Equal to Player 8 (Pink)
Then - Actions
Set Variable Set PresentsCarried[8] = (PresentsCarried[8] + 1)
Multiboard - Set the text for (Last created multiboard) item in column 4 , row 10 to (String(PresentsCarried[8]))
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Triggering unit)) Equal to Player 9 (Gray)
Then - Actions
Set Variable Set PresentsCarried[9] = (PresentsCarried[9] + 1)
Multiboard - Set the text for (Last created multiboard) item in column 4 , row 11 to (String(PresentsCarried[9]))
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Triggering unit)) Equal to Player 10 (Light Blue)
Then - Actions
Set Variable Set PresentsCarried[10] = (PresentsCarried[10] + 1)
Multiboard - Set the text for (Last created multiboard) item in column 4 , row 12 to (String(PresentsCarried[10]))
Else - Actions
Do nothing
Changelog
Events
Map initialization
Conditions
Actions
Quest - Create a Required quest titled Changelog with the description Snowball Fight 1.0b:-Removed some insignificant bugs; , using icon path ReplaceableTextures\CommandButtons\BTNSpy.blp
To DO
Events
Map initialization
Conditions
Actions
Quest - Create a Required quest titled To Do List with the description Snowball Fight 1.1:-Add presents taken by every player to the multiboard;-Major change comming up; , using icon path ReplaceableTextures\CommandButtons\BTNTomeBrown.blp
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.