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
GIANT_CRAB spell pack v.1.06.w3x
Variables
Initialization
level up
Melee Initialization
spells
death special effect
crab bomb path
crab bomb path loop
rain of crabs
move crabs down
right pincer defense
mother crab
mother crab loop
move mother crab
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
crab_bomb_path
group
No
mother_crab
group
No
raining_crab
group
No
TempGroup1
group
No
TempPoint1
location
No
TempPoint2
location
No
TempUnit1
unit
No
ten_percent
integer
No
level up
Events
Player - Player 1 (Red) skips a cinematic sequence
Conditions
Actions
Hero - Set GIANT CRAB 0001 <gen> Hero-level to ((Level of GIANT CRAB 0001 <gen>) + 1) , Hide level-up graphics
Unit - Reset ability cooldowns for GIANT CRAB 0001 <gen> .
Default melee game initialization for all players
Melee Initialization
Events
Map initialization
Conditions
Actions
Melee Game - Use melee time of day (for all players)
death special effect
Events
Unit - A unit Dies
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Triggering unit)) Equal to Bomb Crab
Then - Actions
Set Variable Set TempPoint1 = (Position of (Triggering unit))
Set Variable Set TempGroup1 = (Units within 400.00 of TempPoint1 matching ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of (Triggering unit)).) Equal to True)).)
Unit Group - Pick every unit in TempGroup1 and do (Actions)
Loop - Actions
Unit - Cause (Triggering unit) to damage (Picked unit) , dealing 200.00 damage of attack type Spells and damage type Normal
Custom script: call DestroyGroup(udg_TempGroup1)
Set Variable Set TempGroup1 = (Units within 200.00 of TempPoint1 matching ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of (Triggering unit)).) Equal to True)).)
Unit Group - Pick every unit in TempGroup1 and do (Actions)
Loop - Actions
Unit - Cause (Triggering unit) to damage (Picked unit) , dealing 100.00 damage of attack type Spells and damage type Normal
Custom script: call DestroyGroup(udg_TempGroup1)
Special Effect - Create a special effect at TempPoint1 using Objects\Spawnmodels\Other\NeutralBuildingExplosion\NeutralBuildingExplosion.mdl
Special Effect - Destroy (Last created special effect)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Triggering unit)) Equal to Child Crab
Then - Actions
Set Variable Set TempPoint1 = (Position of (Triggering unit))
Set Variable Set TempGroup1 = (Units within 400.00 of TempPoint1 matching ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of (Triggering unit)).) Equal to True)).)
Unit Group - Pick every unit in TempGroup1 and do (Actions)
Loop - Actions
Set Variable Set TempPoint2 = (Position of (Picked unit))
Special Effect - Create a special effect at TempPoint2 using Objects\Spawnmodels\Naga\NagaDeath\NagaDeath.mdl
Special Effect - Destroy (Last created special effect)
Unit - Create 1 . Child Crab for (Owner of (Triggering unit)) at TempPoint2 facing (Facing of (Picked unit)) degrees
Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
Set Variable Set TempGroup1 = (Units within 200.00 of TempPoint1 matching ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of (Triggering unit)).) Equal to True)).)
Unit Group - Pick every unit in TempGroup1 and do (Actions)
Loop - Actions
Unit - Cause (Triggering unit) to damage (Picked unit) , dealing 200.00 damage of attack type Spells and damage type Normal
Custom script: call DestroyGroup(udg_TempGroup1)
Set Variable Set TempGroup1 = (Units within 100.00 of TempPoint1 matching ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of (Triggering unit)).) Equal to True)).)
Unit Group - Pick every unit in TempGroup1 and do (Actions)
Loop - Actions
Unit - Cause (Triggering unit) to damage (Picked unit) , dealing 200.00 damage of attack type Spells and damage type Normal
Custom script: call DestroyGroup(udg_TempGroup1)
Special Effect - Create a special effect at TempPoint1 using Objects\Spawnmodels\Naga\NagaDeath\NagaDeath.mdl
Special Effect - Destroy (Last created special effect)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in raining_crab) Greater than or equal to 1
Then - Actions
Unit Group - Pick every unit in raining_crab and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Current flying height of (Picked unit)) Less than or equal to 10.00
Then - Actions
Set Variable Set TempUnit1 = (Picked unit)
Set Variable Set TempPoint1 = (Position of (Picked unit))
Set Variable Set TempGroup1 = (Units within 200.00 of TempPoint1 matching ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of TempUnit1).) Equal to True)).)
Unit Group - Pick every unit in TempGroup1 and do (Actions)
Loop - Actions
Unit - Cause TempUnit1 to damage (Picked unit) , dealing 200.00 damage of attack type Spells and damage type Normal
Custom script: call DestroyGroup(udg_TempGroup1)
Set Variable Set TempGroup1 = (Units within 100.00 of TempPoint1 matching ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of TempUnit1).) Equal to True)).)
Unit Group - Pick every unit in TempGroup1 and do (Actions)
Loop - Actions
Unit - Cause TempUnit1 to damage (Picked unit) , dealing 100.00 damage of attack type Spells and damage type Normal
Custom script: call DestroyGroup(udg_TempGroup1)
Unit - Kill (Picked unit)
Special Effect - Create a special effect at TempPoint1 using Abilities\Spells\Orc\WarStomp\WarStompCaster.mdl
Special Effect - Destroy (Last created special effect)
Animation - Change (Picked unit) flying height to ((Current flying height of (Picked unit)) - 5.00) at 0.00
Else - Actions
Trigger - Turn off (This trigger)
right pincer defense
Events
Unit - A unit Is attacked
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
And - All (Conditions) are true
Conditions
(Level of Right Pincer Defense for (Triggering unit)) Greater than 0
((Attacking unit) belongs to an enemy of (Owner of (Triggering unit)).) Equal to True
Then - Actions
Set Variable Set ten_percent = (Random integer number between 1 and 100)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
ten_percent Less than or equal to 10
Then - Actions
Set Variable Set TempPoint1 = (Position of (Triggering unit))
Unit - Cause (Triggering unit) to damage (Attacking unit) , dealing ((Real((Strength of (Triggering unit) (Include bonuses)))) x (Real((Level of Right Pincer Defense for (Triggering unit))))) damage of attack type Spells and damage type Normal
Special Effect - Create a special effect at TempPoint1 using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
Special Effect - Destroy (Last created special effect)
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.