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
Nuke.w3x
Variables
Initialization
Init
Nuke
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
ExplosionEffects
group
No
f
integer
No
n
integer
No
p
location
No
Vis
fogmodifier
Yes
Init
Events
Map initialization
Conditions
Actions
Visibility - Disable fog of war
Game - Display to (All players) for 500000.00 seconds the text: Type -nuke to set off an explosion!
Nuke
Events
Player - Player 1 (Red) types a chat message containing -nuke (Unexpected type: 'stringnoformat') as An exact match
Conditions
Actions
Trigger - Turn off (This trigger)
Region - Center Region_000 <gen> on (Random point in Region_001 <gen>)
Camera - Pan camera for Player 1 (Red) to (Center of Region_000 <gen>) over 0 seconds
For each (Integer A) from 1 to 16 , do (Actions)
Loop - Actions
Visibility - Create an initially Enabled visibility modifier for (Player((Integer A))) emitting Visibility from (Center of Region_000 <gen>) to a radius of 600.00 .
Set Variable Set Vis[(Integer A)] = (Last created visibility modifier)
For each (Integer B) from 1 to 12 , do (Actions)
Loop - Actions
Unit - Create 1 . Explosion Dummy for Player 2 (Blue) at ((Center of Region_000 <gen>) offset by (Random real number between 0 and 50.00) towards (Random angle) degrees.) facing (Random angle) degrees
Unit - Move (Last created unit) instantly to (Center of Region_000 <gen>)
Animation - Play (Last created unit) 's birth animation
Animation - Change (Last created unit) 's animation speed to 25.00 % of its original speed
Unit - Add a 10.00 second Water Elemental expiration timer to (Last created unit)
Unit - Create 1 . Explosion Dummy 2 for Player 2 (Blue) at (Center of Region_000 <gen>) facing Default building facing degrees
Unit - Move (Last created unit) instantly to (Center of Region_000 <gen>)
Animation - Play (Last created unit) 's death animation
Animation - Change (Last created unit) 's animation speed to 5.00 % of its original speed
Unit Group - Add (Last created unit) to ExplosionEffects
Unit Group - Pick every unit in (Units within 200.00 of (Center of Region_000 <gen>).) and do (Actions)
Loop - Actions
Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - (Random real number between 400.00 and 500.00))
Destructible - Pick every destructible within 200.00 of (Center of Region_000 <gen>) and do (Actions)
Loop - Actions
Destructible - Kill (Picked destructible)
Wait 1.00 seconds
Unit Group - Pick every unit in (Units within 400.00 of (Center of Region_000 <gen>).) and do (Actions)
Loop - Actions
Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - (Random real number between 400.00 and 500.00))
Destructible - Pick every destructible within 400.00 of (Center of Region_000 <gen>) and do (Actions)
Loop - Actions
Destructible - Kill (Picked destructible)
Wait 0.50 seconds
Unit Group - Pick every unit in (Units within 600.00 of (Center of Region_000 <gen>).) and do (Actions)
Loop - Actions
Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - (Random real number between 400.00 and 500.00))
Destructible - Pick every destructible within 600.00 of (Center of Region_000 <gen>) and do (Actions)
Loop - Actions
Destructible - Kill (Picked destructible)
Wait 0.50 seconds
Unit Group - Pick every unit in (Units within 900.00 of (Center of Region_000 <gen>).) and do (Actions)
Loop - Actions
Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - (Random real number between 700.00 and 900.00))
Destructible - Pick every destructible within 900.00 of (Center of Region_000 <gen>) and do (Actions)
Loop - Actions
Destructible - Kill (Picked destructible)
Wait 0.50 seconds
Unit Group - Pick every unit in (Units within 600.00 of (Center of Region_000 <gen>).) and do (Actions)
Loop - Actions
Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - (Random real number between 400.00 and 500.00))
Destructible - Pick every destructible within 600.00 of (Center of Region_000 <gen>) and do (Actions)
Loop - Actions
Destructible - Kill (Picked destructible)
Wait 10.00 seconds
For each (Integer A) from 1 to 16 , do (Actions)
Loop - Actions
Visibility - Destroy Vis[(Integer A)]
Wait 1.00 seconds
Unit Group - Pick every unit in ExplosionEffects and do (Actions)
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.