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
cars.w3x
Variables
Initialization
Untitled Trigger 008
Untitled Trigger 001
Untitled Trigger 002
Untitled Trigger 003
pick
Untitled Category
up
upp
down
downn
Untitled Trigger 004 Copy Copy
Untitled Trigger 002 Copy Copy Copy
Untitled Trigger 004 Copy Copy Copy
Untitled Trigger 002 Copy Copy Copy Copy
jumps
Untitled Trigger 004
Untitled Trigger 005
Untitled Trigger 005 Copy
---------------------------
Untitled Trigger 005 Copy 2
Untitled Trigger 005 Copy Copy
Untitled Category
camera
Untitled Trigger 007
Untitled Trigger 003 Copy
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
adirection
force
Yes
car
unit
Yes
footmancamera
force
Yes
itemlocation
location
Yes
jumpers
group
Yes
pickedyet
integer
Yes
speed
integer
Yes
Untitled Trigger 008
Events
Player - Player 1 (Red) Selects a unit
Conditions
Actions
Selection - Select (Random unit from (Units owned by (Triggering player) of type Peasant)) for (Picked player)
Untitled Trigger 001
Events
Map initialization
Conditions
Actions
Image - Create an image using ReplaceableTextures\CommandButtons\BTNHolyBolt.blp of size 1000.00 at (Center of image <gen>) with Z offset 0 using image type Selection
Image - Change (Last created image) : Enable render always state
Image - Change the height state of (Last created image) to Enable at 10.00
Image - Show (Last created image)
Set Variable Set pickedyet[1] = (Number of players in (All players matching ((((Matching player) slot status) Equal to Is playing) and (((Matching player) controller) Equal to User)).))
Set Variable Set pickedyet[0] = "0"
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Player Group - Add (Picked player) to footmancamera[0]
Unit - Create 1 . Peasant for (Picked player) at (Center of Region_000 <gen>) facing Default building facing degrees
Animation - Change (Random unit from (Units owned by (Picked player) of type Peasant)) 's vertex coloring to ( 100 %, 100 %, 100 %) with 100.00 % transparency
Selection - Select (Random unit from (Units owned by (Picked player) of type Peasant)) for (Picked player)
Visibility - Create an initially Enabled visibility modifier for (Picked player) emitting Visibility across Region_001 <gen>
For each (Integer A) from 1 to 12 , do (Actions)
Loop - Actions
Set Variable Set speed[(Integer A)] = "10"
Untitled Trigger 002
Events
Time - Every 0.10 seconds of game time
Conditions
Actions
Player Group - Pick every player in footmancamera[0] and do (Actions)
Loop - Actions
Camera - . Apply . gg_cam_Camera_001 for (Picked player) over 0 seconds
Player Group - Pick every player in footmancamera[1] and do (Actions)
Loop - Actions
Camera - . Apply . gg_cam_Camera_001_Copy for (Picked player) over 0 seconds
Player Group - Pick every player in footmancamera[2] and do (Actions)
Loop - Actions
Camera - . Apply . gg_cam_Camera_001_Copy_Copy for (Picked player) over 0 seconds
Player Group - Pick every player in footmancamera[3] and do (Actions)
Loop - Actions
Camera - . Apply . gg_cam_Camera_001_Copy_Copy_2 for (Picked player) over 0 seconds
Untitled Trigger 003
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Next (right)
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Triggering unit)) is in footmancamera[0].) Equal to True
Then - Actions
Player Group - Remove (Owner of (Triggering unit)) from footmancamera[0] .
Player Group - Add (Owner of (Triggering unit)) to footmancamera[1]
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Triggering unit)) is in footmancamera[1].) Equal to True
Then - Actions
Player Group - Remove (Owner of (Triggering unit)) from footmancamera[1] .
Player Group - Add (Owner of (Triggering unit)) to footmancamera[2]
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Triggering unit)) is in footmancamera[2].) Equal to True
Then - Actions
Player Group - Remove (Owner of (Triggering unit)) from footmancamera[2] .
Player Group - Add (Owner of (Triggering unit)) to footmancamera[3]
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Triggering unit)) is in footmancamera[3].) Equal to True
Then - Actions
Player Group - Remove (Owner of (Triggering unit)) from footmancamera[3] .
Player Group - Add (Owner of (Triggering unit)) to footmancamera[0]
Else - Actions
pick
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Pick
Actions
Set Variable Set pickedyet[0] = (pickedyet[0] + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Triggering unit)) is in footmancamera[0].) Equal to True
Then - Actions
Player Group - Remove (Owner of (Triggering unit)) from footmancamera[0] .
Unit - Create 1 . Footman for (Owner of (Triggering unit)) at (Random point in Region_002 <gen>) facing 90.00 degrees
Camera - Lock camera target for (Owner of (Triggering unit)) to (Last created unit) , offset by ( 0 , 0 ) using Default rotation
Set Variable Set car[(Player number of (Owner of (Triggering unit)))] = (Last created unit)
Unit - Pause (Last created unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Triggering unit)) is in footmancamera[1].) Equal to True
Then - Actions
Player Group - Remove (Owner of (Triggering unit)) from footmancamera[1] .
Unit - Create 1 . Knight for (Owner of (Triggering unit)) at (Random point in Region_002 <gen>) facing 90.00 degrees
Camera - Lock camera target for (Owner of (Triggering unit)) to (Last created unit) , offset by ( 0 , 0 ) using Default rotation
Set Variable Set car[(Player number of (Owner of (Triggering unit)))] = (Last created unit)
Unit - Pause (Last created unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Triggering unit)) is in footmancamera[2].) Equal to True
Then - Actions
Player Group - Remove (Owner of (Triggering unit)) from footmancamera[2] .
Unit - Create 1 . Rifleman for (Owner of (Triggering unit)) at (Random point in Region_002 <gen>) facing 90.00 degrees
Camera - Lock camera target for (Owner of (Triggering unit)) to (Last created unit) , offset by ( 0 , 0 ) using Default rotation
Set Variable Set car[(Player number of (Owner of (Triggering unit)))] = (Last created unit)
Unit - Pause (Last created unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Triggering unit)) is in footmancamera[3].) Equal to True
Then - Actions
Player Group - Remove (Owner of (Triggering unit)) from footmancamera[3] .
Unit - Create 1 . Mortar Team for (Owner of (Triggering unit)) at (Random point in Region_002 <gen>) facing 90.00 degrees
Camera - Lock camera target for (Owner of (Triggering unit)) to (Last created unit) , offset by ( 0 , 0 ) using Default rotation
Set Variable Set car[(Player number of (Owner of (Triggering unit)))] = (Last created unit)
Unit - Pause (Last created unit)
Else - Actions
Game - Display to (All players) the text: (String(pickedyet[1]))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
pickedyet[0] Equal to pickedyet[1]
Then - Actions
Wait 1.00 seconds
Game - Display to (All players) the text: 3...
Wait 1.00 seconds
Game - Display to (All players) the text: 2...
Wait 1.00 seconds
Game - Display to (All players) the text: 1...
Wait 1.00 seconds
Game - Display to (All players) the text: GO
Unit - Unpause all units
Else - Actions
up
Events
Player - Player 1 (Red) Presses the Up Arrow key
Conditions
Actions
Player Group - Add (Triggering player) to adirection[0]
Player Group - Remove (Triggering player) from adirection[1] .
Player Group - Remove (Triggering player) from adirection[2] .
Player Group - Remove (Triggering player) from adirection[3] .
upp
Events
Time - Every 0.30 seconds of game time
Conditions
Actions
Player Group - Pick every player in adirection[0] and do (Actions)
Loop - Actions
Unit - Order car[(Player number of (Picked player))] to Move To . ((Position of car[(Player number of (Picked player))]) offset by 300.00 towards (Facing of car[(Player number of (Picked player))]) degrees.)
Unit - Set car[(Player number of (Picked player))] movement speed to (Real(speed[(Player number of (Picked player))]))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
speed[(Player number of (Picked player))] Less than or equal to 522
Then - Actions
Set Variable Set speed[(Player number of (Picked player))] = (speed[(Player number of (Picked player))] + 10)
Else - Actions
down
Events
Player - Player 1 (Red) Presses the Down Arrow key
Conditions
Actions
Player Group - Add (Triggering player) to adirection[1]
Player Group - Remove (Triggering player) from adirection[0] .
Player Group - Remove (Triggering player) from adirection[2] .
Player Group - Remove (Triggering player) from adirection[3] .
downn
Events
Time - Every 0.10 seconds of game time
Conditions
Actions
Player Group - Pick every player in adirection[1] and do (Actions)
Loop - Actions
Unit - Order car[(Player number of (Picked player))] to Move To . ((Position of car[(Player number of (Picked player))]) offset by 300.00 towards (Facing of car[(Player number of (Picked player))]) degrees.)
Unit - Set car[(Player number of (Picked player))] movement speed to (Real(speed[(Player number of (Picked player))]))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
speed[(Player number of (Picked player))] Less than or equal to 10
Then - Actions
Unit - Move car[(Player number of (Picked player))] instantly to ((Position of car[(Player number of (Picked player))]) offset by -10.00 towards (Facing of car[(Player number of (Picked player))]) degrees.)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
speed[(Player number of (Picked player))] Greater than or equal to 10
Then - Actions
Set Variable Set speed[(Player number of (Picked player))] = (speed[(Player number of (Picked player))] - 40)
Else - Actions
Untitled Trigger 004 Copy Copy
Events
Player - Player 1 (Red) Presses the Right Arrow key
Conditions
Actions
Player Group - Add (Triggering player) to adirection[2]
Player Group - Remove (Triggering player) from adirection[0] .
Player Group - Remove (Triggering player) from adirection[1] .
Player Group - Remove (Triggering player) from adirection[3] .
Untitled Trigger 002 Copy Copy Copy
Events
Time - Every 0.10 seconds of game time
Conditions
Actions
Player Group - Pick every player in adirection[2] and do (Actions)
Loop - Actions
Unit - Order car[(Player number of (Picked player))] to Move To . ((Position of car[(Player number of (Picked player))]) offset by 300.00 towards ((Facing of car[(Player number of (Picked player))]) - 10.00) degrees.)
Unit - Set car[(Player number of (Picked player))] movement speed to (Real(speed[(Player number of (Picked player))]))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
speed[(Player number of (Picked player))] Less than or equal to 522
Then - Actions
Set Variable Set speed[(Player number of (Picked player))] = (speed[(Player number of (Picked player))] + 10)
Else - Actions
Untitled Trigger 004 Copy Copy Copy
Events
Player - Player 1 (Red) Presses the Left Arrow key
Conditions
Actions
Player Group - Add (Triggering player) to adirection[3]
Player Group - Remove (Triggering player) from adirection[0] .
Player Group - Remove (Triggering player) from adirection[1] .
Player Group - Remove (Triggering player) from adirection[2] .
Untitled Trigger 002 Copy Copy Copy Copy
Events
Time - Every 0.10 seconds of game time
Conditions
Actions
Player Group - Pick every player in adirection[3] and do (Actions)
Loop - Actions
Unit - Order car[(Player number of (Picked player))] to Move To . ((Position of car[(Player number of (Picked player))]) offset by 300.00 towards ((Facing of car[(Player number of (Picked player))]) + 10.00) degrees.)
Unit - Set car[(Player number of (Picked player))] movement speed to (Real(speed[(Player number of (Picked player))]))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
speed[(Player number of (Picked player))] Less than or equal to 522
Then - Actions
Set Variable Set speed[(Player number of (Picked player))] = (speed[(Player number of (Picked player))] + 10)
Else - Actions
Untitled Trigger 004
Events
Time - Every 0.03 seconds of game time
Conditions
Actions
For each (Integer A) from 1 to 12 , do (Actions)
Loop - Actions
Item - Pick every item in (Region centered at (Position of car[(Integer A)]) with size (200.00, 200.00)) and do (Actions)
Loop - Actions
Hero - Give (Picked item) to car[(Integer A)]
Destructible - Pick every destructible in (Region centered at (Position of car[(Integer A)]) with size (300.00, 300.00)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Destructible-type of (Picked destructible)) Equal to LTlt (Unexpected type: 'destructablecode')
Then - Actions
Destructible - Kill (Picked destructible)
Else - Actions
Unit Group - Pick every unit in jumpers[0] and do (Actions)
Loop - Actions
Unit - Move (Picked unit) instantly to ((Position of (Picked unit)) offset by 30.00 towards (Angle from (Position of (Picked unit)) to (Center of Region_005 <gen>)) degrees.)
Unit Group - Pick every unit in jumpers[1] and do (Actions)
Loop - Actions
Unit - Move (Picked unit) instantly to ((Position of (Picked unit)) offset by 30.00 towards (Angle from (Position of (Picked unit)) to (Center of Region_007 <gen>)) degrees.)
Untitled Trigger 005
Events
Unit - A unit enters Region_004 <gen>
Conditions
Actions
Animation - Change (Triggering unit) flying height to 340.00 at 500.00
Unit - Pause (Triggering unit)
Unit - Add Storm Crow Form to (Entering unit)
Unit - Turn collision for (Triggering unit) Off .
Unit Group - Add (Triggering unit) to jumpers[0]
Untitled Trigger 005 Copy
Events
Unit - A unit enters Region_005 <gen>
Conditions
Actions
Animation - Change (Triggering unit) flying height to 0.00 at 700.00
Unit Group - Remove (Triggering unit) from jumpers[0] .
Unit - Unpause (Triggering unit)
Unit - Remove Storm Crow Form from (Triggering unit)
Unit - Turn collision for (Triggering unit) On .
Untitled Trigger 005 Copy 2
Events
Unit - A unit enters Region_006 <gen>
Conditions
Actions
Animation - Change (Triggering unit) flying height to 340.00 at 500.00
Unit - Pause (Triggering unit)
Unit - Add Storm Crow Form to (Entering unit)
Unit - Turn collision for (Triggering unit) Off .
Unit Group - Add (Triggering unit) to jumpers[1]
Untitled Trigger 005 Copy Copy
Events
Unit - A unit enters Region_007 <gen>
Conditions
Actions
Animation - Change (Triggering unit) flying height to 0.00 at 700.00
Unit Group - Remove (Triggering unit) from jumpers[1] .
Unit - Remove Storm Crow Form from (Triggering unit)
Unit - Turn collision for (Triggering unit) On .
Unit - Unpause (Triggering unit)
camera
Events
Time - Every 0.10 seconds of game time
Conditions
Actions
For each (Integer A) from 1 to 12 , do (Actions)
Loop - Actions
Camera - Lock camera target for (Player((Integer A))) to car[(Player number of (Player((Integer A))))] , offset by ( 0 , 0 ) using The unit's rotation
Camera - Set (Player((Integer A))) 's camera Field of view to 80.00 over 0 seconds
Camera - Set (Player((Integer A))) 's camera Angle of attack to 337.00 over 0 seconds
Camera - Set (Player((Integer A))) 's camera Distance to target to 700.00 over 0 seconds
Camera - Set (Player((Integer A))) 's camera Rotation to (Facing of car[(Player number of (Player((Integer A))))]) over 0.10 seconds
Untitled Trigger 007
Events
Unit - A unit Acquires an item
Conditions
Actions
Set Variable Set pickedyet[13] = (Random integer number between 1 and 3)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
pickedyet[13] Equal to 1
Then - Actions
Unit - Add Berserk to (Triggering unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
pickedyet[13] Equal to 2
Then - Actions
Unit - Add Rune of Speed to (Triggering unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
pickedyet[13] Equal to 3
Then - Actions
Unit - Add Rune Area Heal/Mana Regain to (Triggering unit)
Else - Actions
-------- jkl --------
Item - Remove (Item being manipulated)
Set Variable Set itemlocation[(Player number of (Triggering player))] = (Position of (Triggering unit))
Wait 2 seconds
Item - Create (Item-type of (Item being manipulated)) at itemlocation[(Player number of (Owner of (Triggering unit)))]
Untitled Trigger 003 Copy
Events
Unit - A unit Begins casting an ability
Conditions
Actions
For each (Integer A) from 1 to 10 , do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Triggering unit) Equal to car[(Integer A)]
Then - Actions
Unit - Remove (Ability being cast) from (Triggering unit)
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.