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
Triggered Explosive.w3x
Variables
Initialization
Melee Initialization
Text
Spawn
The Spell (copy this)
Plant C4
C4 Explode
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
AbilityLevel
integer
Yes
C4
unit
Yes
ExplosiveCaster
unit
Yes
MUI
integer
No
Default melee game initialization for all players
Melee Initialization
Events
Map initialization
Conditions
Actions
Melee Game - Use melee time of day (for all players)
Visibility - Disable fog of war
Visibility - Disable black mask
Text
Events
Time - Elapsed game time is 0.10 seconds
Conditions
Actions
Game - Display to (All players) for 1000.00 seconds the text: Welcome! Use the C4 spell once to plant the bomb. Use it again to explode the C4! Every unit can only controll one C4. You have 3 heroes to so you can see that the spell is MUI!Press ESC to spawn another Peasant!
Spawn
Events
Player - Player 1 (Red) skips a cinematic sequence
Conditions
Actions
Unit - Create 1 . Peasant for Player 2 (Blue) at (Random point in Spawn <gen>) facing Default building facing degrees
Plant C4
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Plant C4
Actions
Set Variable Set MUI = (MUI + 1)
Unit - Set the custom value of (Triggering unit) to MUI
Unit - Create 1 . C4 for (Owner of (Triggering unit)) at (Target point of ability being cast) facing Default building facing degrees
Unit - Set level of Explode for (Last created unit) to (Level of Plant C4 for (Triggering unit))
Set Variable Set C4[MUI] = (Last created unit)
Set Variable Set AbilityLevel[MUI] = (Level of Plant C4 for (Triggering unit))
Unit - Remove Plant C4 from (Triggering unit)
Unit - Add Explode C4 to (Triggering unit)
C4 Explode
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Explode C4
Actions
Special Effect - Create a special effect attached to the origin (Unexpected type: 'attachpoint') of C4[(Custom value of (Triggering unit))] using Abilities\Spells\Other\Doom\DoomDeath.mdl
Special Effect - Destroy (Last created special effect)
Special Effect - Create a special effect attached to the origin (Unexpected type: 'attachpoint') of C4[(Custom value of (Triggering unit))] using Abilities\Spells\Other\Incinerate\FireLordDeathExplode.mdl
Special Effect - Destroy (Last created special effect)
Unit - Kill C4[(Custom value of (Triggering unit))]
Unit - Remove Explode C4 from (Triggering unit)
Unit - Add Plant C4 to (Triggering unit)
Unit - Set level of Plant C4 for (Triggering unit) to AbilityLevel[(Custom value of (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.