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
Aerial Strikes v1.6.w3x
Variables
Initialization
Air Strike
Minigun
Missile
Missile Move
Missile Impact
Missile Height
Carpet Bombing
Carpet Bombing Start
Bomb Heights
Bomb Life
Carpet Bombing Loop
Artillery Strike
Artillery Start
Artillery Rounds
Inferno
Inferno Start
Inferno End
Inferno1
Inferno2
Inferno Missile
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
Air_Strike
rect
Yes
Artillery_Fired
boolean
No
Artillery_Strike
rect
No
Bombing
boolean
No
Inferno_Area
rect
No
Minigun_Firing
boolean
No
Artillery_Fired = is a boolaen because it starts and stops the artillery strike and it also enables the artillery rounds to spawn.
Artillery_Strike = is a region to create artillery rounds because artillery strikes are not really accurate because they miss.
Bombing = is a boolaen because it starts the spawn of bombs in the carpet bomber.
Minigun_Firing = is a boolaen because it starts the Thunderbolt's minigun, it creates a region that affects the missile and launches the missile.
--------------------GIVE ME CREDITS IF YOU USE THIS TRIGGER--------------------------------
Air Strike
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Air Strike
Actions
Unit - Create 1 Thunderbolt for (Owner of (Casting unit)) at ((Position of (Casting unit)) offset by -400.00 towards (Facing of (Casting unit)) degrees.) facing (Target point of ability being cast)
Unit - Add a 10.00 second Generic expiration timer to (Last created unit)
Unit - Order (Last created unit) to Move To . ((Target point of ability being cast) offset by 1600.00 towards (Facing of (Last created unit)) degrees.)
Set Variable Set Air_Strike[1] = (Region centered at (Target point of ability being cast) with size (50.00, 50.00))
Set Variable Set Air_Strike[2] = (Region centered at (Target point of ability being cast) with size (800.00, 800.00))
Set Variable Set Air_Strike[3] = (Region centered at (Target point of ability being cast) with size (150.00, 150.00))
Set Variable Set Minigun_Firing = "true"
Trigger - Add to Missile <gen> the event (A unit enters Air_Strike[2])
Trigger - Add to Missile_Impact <gen> the event (A unit enters Air_Strike[1])
Wait 0.70 seconds
Set Variable Set Minigun_Firing = "false"
Minigun
Events
Time - Every 0.03 seconds of game time
Conditions
Minigun_Firing Equal to True
Actions
Unit Group - Pick every unit in (Units of type Thunderbolt) and do (Create 1.AP for (Owner of (Picked unit)) at (Random point in Air_Strike[3]) facing Default building facing degrees)
Unit - Add a 0.20 second Generic expiration timer to (Last created unit)
Missile
Events
Conditions
(Unit-type of (Triggering unit)) Equal to Thunderbolt
Actions
Unit - Create 1 AP for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing (Center of Air_Strike[1])
Missile Move
Events
Time - Every 0.02 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units of type AP) and do (Move (Picked unit) instantly to ((Position of (Picked unit)) offset by 14.00 towards (Facing of (Picked unit)) degrees.))
Missile Impact
Events
Conditions
(Unit-type of (Triggering unit)) Equal to AP
Actions
Unit - Kill (Triggering unit)
Missile Height
Events
Time - Every 0.02 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units of type AP) and do (Change (Picked unit) flying height to ((Current flying height of (Picked unit)) - 20.00) at 0.00)
Carpet Bombing Start
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Carpet Bombing
Actions
Unit - Create 1 Carpet Bomber for (Owner of (Casting unit)) at ((Position of (Casting unit)) offset by -400.00 towards (Facing of (Casting unit)) degrees.) facing (Target point of ability being cast)
Unit - Order (Last created unit) to Move To . ((Target point of ability being cast) offset by 2000.00 towards (Facing of (Last created unit)) degrees.)
Unit - Add a 13.00 second Generic expiration timer to (Last created unit)
Wait 2 seconds
Set Variable Set Bombing = "true"
Trigger - Turn on Carpet_Bombing_Loop <gen>
Wait 10.00 seconds
Trigger - Turn off Carpet_Bombing_Loop <gen>
Wait 1.40 seconds
Set Variable Set Bombing = "false"
This trigger lets the bombs drop like its for real.
Bomb Heights
Events
Time - Every 0.02 seconds of game time
Conditions
Bombing Equal to True
Actions
Unit Group - Pick every unit in (Units of type Bomb) and do (Change (Picked unit) flying height to ((Current flying height of (Picked unit)) - 10.00) at 0.00)
Unit Group - Pick every unit in (Units of type Bomb) and do (Set life of (Picked unit) to ((Life of (Picked unit)) - 1.00))
This trigger lets the bomb from the big plane explode.
Bomb Life
Events
Time - Every 0.02 seconds of game time
Conditions
Bombing Equal to True
Actions
Unit Group - Pick every unit in (Units of type Bomb) and do (Set life of (Picked unit) to ((Life of (Picked unit)) - 10.00))
Carpet Bombing Loop
Events
Time - Every 0.70 seconds of game time
Conditions
Bombing Equal to True
Actions
Unit Group - Pick every unit in (Units of type Carpet Bomber) and do (Create 1.Bomb for (Owner of (Picked unit)) at (Position of (Picked unit)) facing (Facing of (Picked unit)) degrees)
Artillery Start
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Artillery Strike
Actions
Unit - Create 1 . Target Area for (Owner of (Casting unit)) at (Target point of ability being cast) facing 270.00 degrees
Unit - Add a (0.60 x 6.00) second Generic expiration timer to (Last created unit)
Set Variable Set Artillery_Fired = "true"
Set Variable Set Artillery_Strike = (Region centered at (Position of (Last created unit)) with size (500.00, 400.00))
Wait (0.60 x 6.00) seconds
Set Variable Set Artillery_Fired = "false"
Artillery Rounds
Events
Time - Every 0.60 seconds of game time
Conditions
Artillery_Fired Equal to True
Actions
Unit Group - Pick every unit in (Units of type Target Area) and do (Create 1.Bomb for (Owner of (Picked unit)) at (Random point in Artillery_Strike) facing Default building facing degrees)
Inferno Start
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Inferno
Actions
Unit - Create 1 . MIG for (Owner of (Casting unit)) at ((Position of (Casting unit)) offset by -1000.00 towards (Facing of (Casting unit)) degrees.) facing Default building facing degrees
Unit - Order (Last created unit) to Move To . (Target point of ability being cast)
Set Variable Set Inferno_Area = (Region centered at (Target point of ability being cast) with size (100.00, 100.00))
Trigger - Add to Inferno_End <gen> the event (A unit enters Inferno_Area)
Inferno End
Events
Conditions
(Unit-type of (Triggering unit)) Equal to MIG
Actions
Unit Group - Pick every unit in (Units of type MIG) and do (Create 1.Inferno Bomb for (Owner of (Picked unit)) at (Position of (Picked unit)) facing (Facing of (Picked unit)) degrees)
Unit - Add a 1.80 second Generic expiration timer to (Last created unit)
Inferno1
Events
Time - Every 0.02 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units of type Inferno Bomb) and do (Change (Picked unit) flying height to ((Current flying height of (Picked unit)) - 10.00) at 0.00)
Inferno2
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units of type Inferno Bomb) and do (Set life of (Picked unit) to ((Life of (Picked unit)) - 1))
Inferno Missile
Events
Unit - A unit Dies
Conditions
(Unit-type of (Dying unit)) Equal to Inferno Bomb
Actions
Unit - Create 1 . Inferno Bomb for (Owner of (Dying unit)) at ((Position of (Dying unit)) offset by (100.00, 0.00)) facing Default building facing degrees
Unit - Add a 10.00 second Generic expiration timer to (Last created unit)
Unit - Create 1 . Inferno Bomb for (Owner of (Dying unit)) at ((Position of (Dying unit)) offset by (-100.00, 0.00)) facing Default building facing degrees
Unit - Add a 10.00 second Generic expiration timer to (Last created unit)
Unit - Create 1 . Inferno Bomb for (Owner of (Dying unit)) at ((Position of (Dying unit)) offset by (0.00, 100.00)) facing Default building facing degrees
Unit - Add a 10.00 second Generic expiration timer to (Last created unit)
Unit - Create 1 . Inferno Bomb for (Owner of (Dying unit)) at ((Position of (Dying unit)) offset by (0.00, -100.00)) facing Default building facing degrees
Unit - Add a 10.00 second Generic expiration timer to (Last created 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.