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
Worker Wars v2.w3x
Variables
Initialization
Melee Initialization
Extra
Wisp Detonate
Update Tier and Limits
Floating Text
Name
Type
is_array
initial_value
PlayerTier
integer
Yes
tempinteger
integer
No
temppoint
location
No
temppoint2
location
No
tempugroup
group
No
tempugroup2
group
No
Default melee game initialization for all players
Melee Initialization
Events
Map initialization
Conditions
Actions
Game - Unlock the game speed
Game - Set game speed to Slowest
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 - Enforce victory/defeat conditions (for all players)
For each (Integer A) from 1 to 6 , do (Actions)
Loop - Actions
Player - Limit training of Lumber Mill to 1 for (Player((Integer A)))
Player - Limit training of Blacksmith to 1 for (Player((Integer A)))
Player - Limit training of Arcane Vault to 1 for (Player((Integer A)))
Player - Limit training of War Mill to 1 for (Player((Integer A)))
Player - Limit training of Voodoo Lounge to 1 for (Player((Integer A)))
Player - Limit training of Crypt to 1 for (Player((Integer A)))
Player - Limit training of Tomb of Relics to 1 for (Player((Integer A)))
Player - Limit training of Graveyard to 1 for (Player((Integer A)))
Player - Limit training of Ancient of War to 1 for (Player((Integer A)))
Player - Limit training of Ancient of Wonders to 1 for (Player((Integer A)))
Player - Limit training of Hunter's Hall to 1 for (Player((Integer A)))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Player((Integer A))) controller) Equal to Computer
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Race of (Player((Integer A)))) Equal to Human
Then - Actions
AI - Start melee AI script for (Player((Integer A))) : war3mapImported\AIHuman.ai (Unexpected type: 'aiscript')
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Race of (Player((Integer A)))) Equal to Orc
Then - Actions
AI - Start melee AI script for (Player((Integer A))) : war3mapImported\AIOrc.ai (Unexpected type: 'aiscript')
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Race of (Player((Integer A)))) Equal to Night Elf
Then - Actions
AI - Start melee AI script for (Player((Integer A))) : war3mapImported\AINightElf.ai (Unexpected type: 'aiscript')
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Race of (Player((Integer A)))) Equal to Undead
Then - Actions
AI - Start melee AI script for (Player((Integer A))) : war3mapImported\AIUndead.ai (Unexpected type: 'aiscript')
Else - Actions
Else - Actions
Wisp Detonate
Events
Unit - A unit Dies
Conditions
(Unit-type of (Triggering unit)) Equal to Wisp
Actions
Set Variable Set temppoint = (Position of (Triggering unit))
Set Variable Set tempugroup = (Units within 300.00 of temppoint matching ((((Owner of (Matching unit)) is an enemy of (Owner of (Triggering unit)).) Equal to True) and (((Matching unit) is A structure) Equal to False)).)
Unit Group - Pick every unit in tempugroup and do (Actions)
Loop - Actions
Set Variable Set temppoint2 = (Position of (Picked unit))
Unit - Create 1 Dummy for (Owner of (Triggering unit)) at temppoint facing temppoint2
Unit - Add Wisp Slow to (Last created unit)
Unit - Order (Last created unit) to Human Sorceress - Slow . (Picked unit)
Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
Player - Set (Player((Integer A))) . Food max to 100
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
PlayerTier[(Integer A)] Equal to 1
Then - Actions
Player - Set (Player((Integer A))) . Food max to 100
Player - Limit training of Guard Tower to 2 for (Player((Integer A)))
Player - Limit training of Cannon Tower to 1 for (Player((Integer A)))
Player - Limit training of Arcane Tower to 1 for (Player((Integer A)))
Player - Limit training of Watch Tower to 3 for (Player((Integer A)))
Player - Limit training of Ghoul to 2 for (Player((Integer A)))
Player - Limit training of Spirit Tower to 2 for (Player((Integer A)))
Player - Limit training of Nerubian Tower to 1 for (Player((Integer A)))
Player - Limit training of Archer to 2 for (Player((Integer A)))
Player - Limit training of Ancient Protector to 2 for (Player((Integer A)))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
PlayerTier[(Integer A)] Equal to 2
Then - Actions
Player - Set (Player((Integer A))) . Food max to 200
Player - Limit training of Guard Tower to 3 for (Player((Integer A)))
Player - Limit training of Cannon Tower to 1 for (Player((Integer A)))
Player - Limit training of Arcane Tower to 1 for (Player((Integer A)))
Player - Limit training of Watch Tower to 4 for (Player((Integer A)))
Player - Limit training of Ghoul to 3 for (Player((Integer A)))
Player - Limit training of Spirit Tower to 3 for (Player((Integer A)))
Player - Limit training of Nerubian Tower to 1 for (Player((Integer A)))
Player - Limit training of Archer to 3 for (Player((Integer A)))
Player - Limit training of Ancient Protector to 3 for (Player((Integer A)))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
PlayerTier[(Integer A)] Equal to 3
Then - Actions
Player - Set (Player((Integer A))) . Food max to 300
Player - Limit training of Guard Tower to 4 for (Player((Integer A)))
Player - Limit training of Cannon Tower to 2 for (Player((Integer A)))
Player - Limit training of Arcane Tower to 2 for (Player((Integer A)))
Player - Limit training of Watch Tower to 5 for (Player((Integer A)))
Player - Limit training of Ghoul to 4 for (Player((Integer A)))
Player - Limit training of Spirit Tower to 4 for (Player((Integer A)))
Player - Limit training of Nerubian Tower to 2 for (Player((Integer A)))
Player - Limit training of Archer to 4 for (Player((Integer A)))
Player - Limit training of Ancient Protector to 4 for (Player((Integer A)))
Else - Actions
Floating Text
Events
Unit - A unit Dies
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(Unit-type of (Dying unit)) Equal to Peasant
(Unit-type of (Dying unit)) Equal to Peon
(Unit-type of (Dying unit)) Equal to Acolyte
(Unit-type of (Dying unit)) Equal to Wisp
Then - Actions
Set Variable Set tempinteger = (Random integer number between 1 and 20)
Set Variable Set temppoint = (Position of (Dying unit))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
tempinteger Equal to 1
Then - Actions
Floating Text - Create floating text that reads :C at temppoint with Z offset 0 , using font size 8.00 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Floating Text - Set the velocity of (Last created floating text) to 64 towards 90 degrees
Floating Text - Change (Last created floating text) : Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 4.00 seconds
Floating Text - Change the fading age of (Last created floating text) to 2.00 seconds
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
tempinteger Equal to 2
Then - Actions
Floating Text - Create floating text that reads D8 at temppoint with Z offset 0 , using font size 8.00 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Floating Text - Set the velocity of (Last created floating text) to 64 towards 90 degrees
Floating Text - Change (Last created floating text) : Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 4.00 seconds
Floating Text - Change the fading age of (Last created floating text) to 2.00 seconds
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
tempinteger Equal to 3
Then - Actions
Floating Text - Create floating text that reads :'( at temppoint with Z offset 0 , using font size 8.00 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Floating Text - Set the velocity of (Last created floating text) to 64 towards 90 degrees
Floating Text - Change (Last created floating text) : Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 4.00 seconds
Floating Text - Change the fading age of (Last created floating text) to 2.00 seconds
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
tempinteger Equal to 4
Then - Actions
Floating Text - Create floating text that reads x_x at temppoint with Z offset 0 , using font size 8.00 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Floating Text - Set the velocity of (Last created floating text) to 64 towards 90 degrees
Floating Text - Change (Last created floating text) : Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 4.00 seconds
Floating Text - Change the fading age of (Last created floating text) to 2.00 seconds
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
tempinteger Equal to 5
Then - Actions
Floating Text - Create floating text that reads QQ at temppoint with Z offset 0 , using font size 8.00 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Floating Text - Set the velocity of (Last created floating text) to 64 towards 90 degrees
Floating Text - Change (Last created floating text) : Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 4.00 seconds
Floating Text - Change the fading age of (Last created floating text) to 2.00 seconds
Else - Actions
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(Unit-type of (Killing unit)) Equal to Peasant
(Unit-type of (Killing unit)) Equal to Peon
(Unit-type of (Killing unit)) Equal to Acolyte
(Unit-type of (Killing unit)) Equal to Wisp
Then - Actions
Set Variable Set tempinteger = (Random integer number between 1 and 20)
Set Variable Set temppoint = (Position of (Killing unit))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
tempinteger Equal to 1
Then - Actions
Floating Text - Create floating text that reads :D at temppoint with Z offset 0 , using font size 8.00 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Floating Text - Set the velocity of (Last created floating text) to 64 towards 90 degrees
Floating Text - Change (Last created floating text) : Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 4.00 seconds
Floating Text - Change the fading age of (Last created floating text) to 2.00 seconds
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
tempinteger Equal to 2
Then - Actions
Floating Text - Create floating text that reads ;P at temppoint with Z offset 0 , using font size 8.00 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Floating Text - Set the velocity of (Last created floating text) to 64 towards 90 degrees
Floating Text - Change (Last created floating text) : Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 4.00 seconds
Floating Text - Change the fading age of (Last created floating text) to 2.00 seconds
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
tempinteger Equal to 3
Then - Actions
Floating Text - Create floating text that reads ^^ at temppoint with Z offset 0 , using font size 8.00 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Floating Text - Set the velocity of (Last created floating text) to 64 towards 90 degrees
Floating Text - Change (Last created floating text) : Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 4.00 seconds
Floating Text - Change the fading age of (Last created floating text) to 2.00 seconds
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
tempinteger Equal to 4
Then - Actions
Floating Text - Create floating text that reads >: ) at temppoint with Z offset 0 , using font size 8.00 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Floating Text - Set the velocity of (Last created floating text) to 64 towards 90 degrees
Floating Text - Change (Last created floating text) : Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 4.00 seconds
Floating Text - Change the fading age of (Last created floating text) to 2.00 seconds
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
tempinteger Equal to 5
Then - Actions
Floating Text - Create floating text that reads <3 at temppoint with Z offset 0 , using font size 8.00 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Floating Text - Set the velocity of (Last created floating text) to 64 towards 90 degrees
Floating Text - Change (Last created floating text) : Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 4.00 seconds
Floating Text - Change the fading age of (Last created floating text) to 2.00 seconds
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.