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
Shipwrecked MUI v1.02.w3m
Variables
Map
Initialization
Shipwrecked
Variables
SW Initialization
SW Running 1
SW Running 2
SW Running 3
SW Reset
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 except Custom Script Item. Custom Script Item will merge into map script after globals variables declaration with the list order in trigger view.
Name
Type
is_array
initial_value
SWCaster
unit
Yes
SWCasterLoc
location
Yes
SWCounter
real
Yes
SWDamage
integer
No
SWIndex
integer
No
SWLevel
integer
No
SWLoop
integer
No
SWTarget
unit
Yes
SWTargetLoc
location
Yes
Initialization
Events
Time - Elapsed game time is 0.00 seconds
Conditions
Actions
Camera - Pan camera for Player 1 (Red) to (Position of Paladin 0000 <gen>) over 0 seconds
Player Group - Pick every player in (All players controlled by a User player) and do (Create an initially Enabled visibility modifier for (Picked player) emitting Visibility across (Playable map area))
SW Initialization
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Shipwrecked
Actions
Set Variable Set SWIndex = (SWIndex + 1)
Set Variable Set SWCaster[SWIndex] = (Triggering unit)
Set Variable Set SWCasterLoc[SWIndex] = (Position of SWCaster[SWIndex])
Set Variable Set SWTarget[SWIndex] = (Target unit of ability being cast)
Set Variable Set SWTargetLoc[SWIndex] = (Position of SWTarget[SWIndex])
Set Variable Set SWDamage = ((Strength of SWCaster[SWIndex] (Include bonuses)) x (Level of Shipwrecked for SWCaster[SWIndex]))
Set Variable Set SWLevel = (Level of Shipwrecked for SWCaster[SWIndex])
Set Variable Set SWCounter[SWIndex] = "0.00"
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
SWIndex Equal to 1
Then - Actions
Trigger - Turn on SW_Running_1 <gen>
Trigger - Turn on SW_Running_2 <gen>
Trigger - Turn on SW_Running_3 <gen>
Else - Actions
SW Running 1
Events
Time - Every 0.50 seconds of game time
Conditions
Actions
For each (Integer SWLoop ) from 1 to SWIndex , do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
And - All (Conditions) are true
Conditions
(SWTarget[SWLoop] is dead) Equal to False
Then - Actions
Special Effect - Create a special effect attached to the overhead (Unexpected type: 'attachpoint') of SWTarget[SWLoop] using Abilities\Spells\Other\CrushingWave\CrushingWaveDamage.mdl
Special Effect - Destroy (Last created special effect)
Unit - Set life of SWTarget[SWLoop] to ((Life of SWTarget[SWLoop]) - (Real(SWDamage)))
Else - Actions
Set Variable Set SWCounter[SWLoop] = (SWCounter[SWLoop] + 0.50)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
SWIndex Equal to 0
Then - Actions
Trigger - Turn off (This trigger)
Else - Actions
SW Running 2
Events
Time - Every 0.03 seconds of game time
Conditions
Actions
For each (Integer SWLoop ) from 1 to SWIndex , do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
And - All (Conditions) are true
Conditions
(SWTarget[SWLoop] is dead) Equal to True
SWLevel Equal to 1
Then - Actions
Unit - Create 1 Dummy 1 (Shipwrecked) for (Owner of SWCaster[SWLoop]) at SWCasterLoc[SWLoop] facing SWCasterLoc[SWLoop]
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Unit - Order (Last created unit) to Human Mountain King - Storm Bolt . SWCaster[SWLoop]
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.