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
Mosquitoes v1.2.w3x
Variables
Main Triggers
Init
Respawn Player 1
Respawn Player 2
Information
Intro Start
Lightning
Music Start
Music Loop
Player 2 Kill
Player 3 Kill
Random Box
Custom Spells
Play Dead
Play Dead v2
Strong Elixir
Strong Elixir v2
Hide Enter
Hide Leave
Hide Enter v2
Hide Leave v2
Insect Spawns
Debug
Move
Mosquitoes
Flies
Victory Conditions
Victory Player 1
Victory Player 2
A simple survival game created by The_Optimizer
Created by The_Optimizer
Created by The_Optimizer
Created by The_Optimizer
Created by The_Optimizer
Created by The_Optimizer
Created by The_Optimizer
Created by The_Optimizer
Created by The_Optimizer
Created by The_Optimizer
Created by The_Optimizer
Created by The_Optimizer
Created by The_Optimizer
Created by The_Optimizer
Created by The_Optimizer
Created by The_Optimizer
Created by The_Optimizer
Created by The_Optimizer
Created by The_Optimizer
Created by The_Optimizer
Created by The_Optimizer
Created by The_Optimizer
Created by The_Optimizer
Created by The_Optimizer
Created by The_Optimizer
Created by The_Optimizer
Created by The_Optimizer
Name
Type
is_array
initial_value
PeasantPlayer1
unit
No
PeasantPlayer2
unit
No
PlayDeadUnit1
unit
No
PlayDeadUnit2
unit
No
StrongElixirUnit1
unit
No
StrongElixirUnit2
unit
No
Init
Events
Map initialization
Conditions
Actions
Game - Set the time of day to 24.00
Game - Turn the day/night cycle Off
Visibility - Create an initially Enabled visibility modifier for Player 1 (Red) emitting Visibility across (Playable map area)
Visibility - Create an initially Enabled visibility modifier for Player 2 (Blue) emitting Visibility across (Playable map area)
Wait 11.00 seconds
Trigger - Turn on Mosquitoes <gen>
Trigger - Turn on Flies <gen>
Unit - Create 7 . Mosquito for Player 12 (Brown) at (Random point in Mosquito_Spawn <gen>) facing Default building facing degrees
Unit - Create 2 . Fly for Player 12 (Brown) at (Random point in Mosquito_Spawn <gen>) facing Default building facing degrees
Respawn Player 1
Events
Unit - Angry Peasant 0000 <gen> Dies
Conditions
Actions
Game - Display to (All players) the text: (|cff0000FF + ((Name of Player 2 (Blue)) + |r|cff00FFF0has died, respawning in 5 seconds.|r))
Player - Add -20 to Player 2 (Blue) . Current gold
Player - Add -20 to Player 3 (Teal) . Current gold
Wait 5.00 seconds
Unit - Create 1 . Angry Peasant for Player 2 (Blue) at (Position of (Dying unit)) facing 270.00 degrees
Set Variable Set PeasantPlayer1 = (Last created unit)
Special Effect - Create a special effect at (Position of PeasantPlayer1) using Abilities\Spells\Human\Resurrect\ResurrectTarget.mdl
Special Effect - Destroy (Last created special effect)
Selection - Select PeasantPlayer1 for Player 2 (Blue)
Trigger - Add to (This trigger) the event (PeasantPlayer1 Dies)
Respawn Player 2
Events
Unit - Angry Peasant 0003 <gen> Dies
Conditions
Actions
Game - Display to (All players) the text: (|cff00FFF0 + ((Name of Player 3 (Teal)) + |r|cff00FFF0has died, respawning in 5 seconds.|r))
Player - Add -20 to Player 2 (Blue) . Current lumber
Player - Add -20 to Player 3 (Teal) . Current lumber
Wait 5.00 seconds
Unit - Create 1 . Angry Peasant (v2) for Player 3 (Teal) at (Position of (Dying unit)) facing 270.00 degrees
Set Variable Set PeasantPlayer2 = (Last created unit)
Special Effect - Create a special effect at (Position of PeasantPlayer2) using Abilities\Spells\Human\Resurrect\ResurrectTarget.mdl
Special Effect - Destroy (Last created special effect)
Selection - Select PeasantPlayer2 for Player 3 (Teal)
Trigger - Add to (This trigger) the event (PeasantPlayer2 Dies)
Information
Events
Map initialization
Conditions
Actions
Quest - Create a Required quest titled Updates with the description |cff00FFF0==>Some minor bugs fixed.==>Added a 1 health regen per 2 seconds to the Peasants.==>Increases the Net manacost to 3 from 2.==>Increases the Peasants mana regeneration by 0.10.==>Changed the Play Dead ability of the Peasants to Hide.==>Some tooltips reworked.==>Decreases the cooldown of the Throw Rock ability.==>Now added a revive system (When your Peasant dies, it will revive in 5 seconds at the cost of 20 score).==>A random box will spawn in the map every 40 seconds, the first player to destroy the box will have his/her score increase.==>Some visual effects reworked.|r , using icon path ReplaceableTextures\CommandButtons\BTNUnholyAura.blp
Quest - Create a Required quest titled How to Play with the description |cff00FFF0To kill insects, use the|r |cffFFFF00Net|r |cff00FFF0ability in the action panel. You can use the|r |cffFFFF00Throw Rock|r |cff00FFF0to stun the other player for a short period of time, or use your|r |cffFFFF00Play Dead|r |cff00FFF0ability to stay away from the deadly mosquitoes.|r , using icon path ReplaceableTextures\CommandButtons\BTNRallyPoint.blp
Quest - Create a Optional quest titled Contact with the description |cff00FFF0Bugs or suggestions? You can send me an email through |[email protected]|r |cff00FFF0or if you have a Garena Plus account, you can add me|r |cffFFFF00The_Optimizer|r|cff00FFF0.|r , using icon path ReplaceableTextures\CommandButtons\BTNStaffOfPreservation.blp
Quest - Create a Optional quest titled Credits with the description |cff00FFF0L_Lawliet - For the Throw Rock icon.Raging Ent - For the Command Buttons pack.unwirklich - For the Demon User Interface pack.Special thanks to:Liimm - For beta testing.roys245 - For beta testing.Guiao - For beta testing.Gen_Bloodhorn - For beta testing.Blizzard Entertainment - For the Loading Screen idea.The damn mosquitoes who bite me - For the idea of the map.|r , using icon path ReplaceableTextures\CommandButtons\BTNChestOfGold.blp
Intro Start
Events
Map initialization
Conditions
Actions
Cinematic - Turn cinematic mode On for (All players)
Camera - . Apply . gg_cam_Intro_Shot_Start for Player 2 (Blue) over 0 seconds
Camera - . Apply . gg_cam_Intro_Shot_Start for Player 3 (Teal) over 0 seconds
Wait 0.50 seconds
Camera - . Apply . gg_cam_Intro_Shot_End for Player 2 (Blue) over 6.00 seconds
Camera - . Apply . gg_cam_Intro_Shot_End for Player 3 (Teal) over 6.00 seconds
Wait 6.00 seconds
Cinematic - Turn cinematic mode Off for (All players)
Lightning
Events
Time - Elapsed game time is 3.00 seconds
Time - Every 60.00 seconds of game time
Conditions
Actions
Cinematic - Fade out and back in over 0.50 seconds using texture White Mask and color ( 100.00 %, 100.00 %, 100.00 %) with 0 % transparency
Music Start
Events
Time - Elapsed game time is 8.00 seconds
Conditions
Actions
Game - Display to (All players) the text: |cff00FFF0Music is going to preload, there will be lag for the brief second.|r
Wait 1.00 seconds
Sound - Play PursuitTheme <gen>
Music Loop
Events
Time - Every 63.00 seconds of game time
Conditions
Actions
Sound - Play PursuitTheme <gen>
Player 2 Kill
Events
Unit - A unit owned by Player 12 (Brown) . Dies
Conditions
(Owner of (Killing unit)) Equal to Player 2 (Blue)
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Dying unit)) Equal to Mosquito
Then - Actions
Unit - Explode (Dying unit) .
Wait 0.01 seconds
Unit - Remove (Dying unit) from the game
Floating Text - Create floating text that reads +1 at (Position of (Dying unit)) with Z offset 0 , using font size 6.00 , color ( 0.00 %, 0.00 %, 100.00 %), and 0 % transparency
Floating Text - Set the velocity of (Last created floating text) to 40.00 towards 90 degrees
Floating Text - Change (Last created floating text) : Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds
Floating Text - Change the fading age of (Last created floating text) to 2.00 seconds
Player - Add 1 to Player 3 (Teal) . Current gold
Player - Add 1 to Player 2 (Blue) . Current gold
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Dying unit)) Equal to Fly
Then - Actions
Unit - Explode (Dying unit) .
Wait 0.01 seconds
Unit - Remove (Dying unit) from the game
Floating Text - Create floating text that reads +3 at (Position of (Dying unit)) with Z offset 0 , using font size 10.00 , color ( 0.00 %, 0.00 %, 100.00 %), and 0 % transparency
Floating Text - Set the velocity of (Last created floating text) to 40.00 towards 90 degrees
Floating Text - Change (Last created floating text) : Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds
Floating Text - Change the fading age of (Last created floating text) to 2.00 seconds
Player - Add 3 to Player 3 (Teal) . Current gold
Player - Add 3 to Player 2 (Blue) . Current gold
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Dying unit)) Equal to Random Box
Then - Actions
Unit - Explode (Dying unit) .
Wait 0.01 seconds
Unit - Remove (Dying unit) from the game
Floating Text - Create floating text that reads Jackpot! at (Position of (Dying unit)) with Z offset 0 , using font size 10.00 , color ( 0.00 %, 0.00 %, 100.00 %), and 0 % transparency
Floating Text - Set the velocity of (Last created floating text) to 40.00 towards 90 degrees
Floating Text - Change (Last created floating text) : Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds
Floating Text - Change the fading age of (Last created floating text) to 2.00 seconds
Player - Add 10 to Player 3 (Teal) . Current gold
Player - Add 10 to Player 2 (Blue) . Current gold
Else - Actions
Do nothing
Player 3 Kill
Events
Unit - A unit owned by Player 12 (Brown) . Dies
Conditions
(Owner of (Killing unit)) Equal to Player 3 (Teal)
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Dying unit)) Equal to Mosquito
Then - Actions
Unit - Explode (Dying unit) .
Wait 0.01 seconds
Unit - Remove (Dying unit) from the game
Floating Text - Create floating text that reads +1 at (Position of (Dying unit)) with Z offset 0 , using font size 6.00 , color ( 0.00 %, 100.00 %, 50.00 %), and 0 % transparency
Floating Text - Set the velocity of (Last created floating text) to 40.00 towards 90 degrees
Floating Text - Change (Last created floating text) : Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds
Floating Text - Change the fading age of (Last created floating text) to 2.00 seconds
Player - Add 1 to Player 3 (Teal) . Current lumber
Player - Add 1 to Player 2 (Blue) . Current lumber
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Dying unit)) Equal to Fly
Then - Actions
Unit - Explode (Dying unit) .
Wait 0.01 seconds
Unit - Remove (Dying unit) from the game
Floating Text - Create floating text that reads +3 at (Position of (Dying unit)) with Z offset 0 , using font size 10.00 , color ( 0.00 %, 100.00 %, 50.00 %), and 0 % transparency
Floating Text - Set the velocity of (Last created floating text) to 40.00 towards 90 degrees
Floating Text - Change (Last created floating text) : Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds
Floating Text - Change the fading age of (Last created floating text) to 2.00 seconds
Player - Add 3 to Player 3 (Teal) . Current lumber
Player - Add 3 to Player 2 (Blue) . Current lumber
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Dying unit)) Equal to Random Box
Then - Actions
Unit - Explode (Dying unit) .
Wait 0.01 seconds
Unit - Remove (Dying unit) from the game
Floating Text - Create floating text that reads Jackpot! at (Position of (Dying unit)) with Z offset 0 , using font size 10.00 , color ( 0.00 %, 100.00 %, 50.00 %), and 0 % transparency
Floating Text - Set the velocity of (Last created floating text) to 40.00 towards 90 degrees
Floating Text - Change (Last created floating text) : Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds
Floating Text - Change the fading age of (Last created floating text) to 2.00 seconds
Player - Add 10 to Player 3 (Teal) . Current lumber
Player - Add 10 to Player 2 (Blue) . Current lumber
Else - Actions
Do nothing
Random Box
Events
Time - Every 40.00 seconds of game time
Conditions
Actions
Unit - Create 1 . Random Box for Player 12 (Brown) at (Random point in (Playable map area)) facing (Random real number between 0 and 360.00) degrees
Special Effect - Create a special effect at (Position of (Last created unit)) using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
Play Dead
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Play Dead
Actions
Set Variable Set PlayDeadUnit1 = (Casting unit)
Animation - Play PlayDeadUnit1 's death animation
Unit - Pause PlayDeadUnit1
Unit - Make PlayDeadUnit1 Invulnerable
Wait 4.00 seconds
Animation - Play PlayDeadUnit1 's stand animation
Unit - Unpause PlayDeadUnit1
Unit - Make PlayDeadUnit1 Vulnerable
Play Dead v2
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Play Dead (v2)
Actions
Set Variable Set PlayDeadUnit2 = (Casting unit)
Animation - Play PlayDeadUnit2 's death animation
Unit - Pause PlayDeadUnit2
Unit - Make PlayDeadUnit2 Invulnerable
Wait 4.00 seconds
Animation - Play PlayDeadUnit2 's stand animation
Unit - Unpause PlayDeadUnit2
Unit - Make PlayDeadUnit2 Vulnerable
Strong Elixir
Events
Unit - A unit Begins channeling an ability
Conditions
(Ability being cast) Equal to Strong Elixir
Actions
Set Variable Set StrongElixirUnit1 = (Casting unit)
Unit - Pause StrongElixirUnit1
Animation - Play StrongElixirUnit1 's attack animation
Wait 1.00 seconds
Animation - Play StrongElixirUnit1 's attack animation
Wait 1.00 seconds
Unit - Unpause StrongElixirUnit1
Animation - Play StrongElixirUnit1 's stand animation
Strong Elixir v2
Events
Unit - A unit Begins channeling an ability
Conditions
(Ability being cast) Equal to Strong Elixir (v2)
Actions
Set Variable Set StrongElixirUnit2 = (Casting unit)
Unit - Pause StrongElixirUnit2
Animation - Play StrongElixirUnit2 's attack animation
Wait 1.00 seconds
Animation - Play StrongElixirUnit2 's attack animation
Wait 1.00 seconds
Unit - Unpause StrongElixirUnit2
Animation - Play StrongElixirUnit2 's stand animation
Hide Enter
Events
Unit - A unit enters Hide_Region_1 <gen>
Unit - A unit enters Hide_Region_2 <gen>
Unit - A unit enters Hide_Region_3 <gen>
Unit - A unit enters Hide_Region_4 <gen>
Unit - A unit enters Hide_Region_5 <gen>
Unit - A unit enters Hide_Region_6 <gen>
Conditions
(Unit-type of (Entering unit)) Equal to Angry Peasant
Actions
Unit - Remove Hide (Passive) from (Entering unit)
Unit - Add Hide to (Entering unit)
Hide Leave
Events
Unit - A unit leaves Hide_Region_1 <gen>
Unit - A unit leaves Hide_Region_2 <gen>
Unit - A unit leaves Hide_Region_3 <gen>
Unit - A unit leaves Hide_Region_4 <gen>
Unit - A unit leaves Hide_Region_5 <gen>
Unit - A unit leaves Hide_Region_6 <gen>
Conditions
(Unit-type of (Leaving unit)) Equal to Angry Peasant
Actions
Unit - Add Hide (Passive) to (Leaving unit)
Unit - Remove Hide from (Leaving unit)
Hide Enter v2
Events
Unit - A unit enters Hide_Region_1 <gen>
Unit - A unit enters Hide_Region_2 <gen>
Unit - A unit enters Hide_Region_3 <gen>
Unit - A unit enters Hide_Region_4 <gen>
Unit - A unit enters Hide_Region_5 <gen>
Unit - A unit enters Hide_Region_6 <gen>
Conditions
(Unit-type of (Entering unit)) Equal to Angry Peasant (v2)
Actions
Unit - Remove Hide (Passive) from (Entering unit)
Unit - Add Hide to (Entering unit)
Hide Leave v2
Events
Unit - A unit leaves Hide_Region_1 <gen>
Unit - A unit leaves Hide_Region_2 <gen>
Unit - A unit leaves Hide_Region_3 <gen>
Unit - A unit leaves Hide_Region_4 <gen>
Unit - A unit leaves Hide_Region_5 <gen>
Unit - A unit leaves Hide_Region_6 <gen>
Conditions
(Unit-type of (Leaving unit)) Equal to Angry Peasant (v2)
Actions
Unit - Add Hide (Passive) (v2) to (Leaving unit)
Unit - Remove Hide (v2) from (Leaving unit)
Debug
Events
Player - Player 2 (Blue) types a chat message containing -debug (Unexpected type: 'stringnoformat') as An exact match
Player - Player 3 (Teal) types a chat message containing -debug (Unexpected type: 'stringnoformat') as An exact match
Conditions
Actions
Unit Group - Pick every unit in (Units in (Playable map area) owned by Player 12 (Brown)) and do (Actions)
Loop - Actions
Unit - Order (Picked unit) to Attack-Move To . (Random point in (Playable map area))
Move
Events
Time - Every 0.03 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units in Mosquito_Spawn <gen> owned by Player 12 (Brown)) and do (Actions)
Loop - Actions
Unit - Order (Picked unit) to Attack-Move To . (Random point in (Playable map area))
Mosquitoes
Events
Time - Every 2.00 seconds of game time
Conditions
Actions
Unit - Create 1 . Mosquito for Player 12 (Brown) at (Random point in Mosquito_Spawn <gen>) facing Default building facing degrees
Flies
Events
Time - Every 10.00 seconds of game time
Conditions
Actions
Unit - Create 1 . Fly for Player 12 (Brown) at (Random point in Mosquito_Spawn <gen>) facing Default building facing degrees
Victory Player 1
Events
Player - Player 2 (Blue) 's Current gold becomes Greater than or equal to 100.00
Conditions
Actions
Unit Group - Pick every unit in (Units owned by Player 12 (Brown).) and do (Actions)
Loop - Actions
Unit - Remove (Picked unit) from the game
Trigger - Turn off Mosquitoes <gen>
Trigger - Turn off Flies <gen>
Game - Display to (All players) the text: (|cff0000FF + ((Name of Player 2 (Blue)) + |r|cff00FFF0has won the game. The game will end in 15 seconds.|r))
Wait 15.00 seconds
Game - Victory Player 2 (Blue) ( Show dialogs, Show scores)
Game - Defeat Player 3 (Teal) with the message: Try again
Victory Player 2
Events
Player - Player 3 (Teal) 's Current lumber becomes Greater than or equal to 100.00
Conditions
Actions
Unit Group - Pick every unit in (Units owned by Player 12 (Brown).) and do (Actions)
Loop - Actions
Unit - Remove (Picked unit) from the game
Trigger - Turn off Mosquitoes <gen>
Trigger - Turn off Flies <gen>
Game - Display to (All players) the text: (|cff00FFF0 + ((Name of Player 2 (Blue)) + |r|cff00FFF0has won the game. The game will end in 15 seconds.|r))
Wait 15.00 seconds
Game - Victory Player 3 (Teal) ( Show dialogs, Show scores)
Game - Defeat Player 2 (Blue) with the message: Try again
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.