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
Melee 2.w3x
Variables
Map
Melee
Music
Boss
Skill
ThunderClap
LoopThunderClap
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
Angle_ThunderClap
real
Yes
Caster_ThunderClap
unit
Yes
Dis_ThunderClap
real
Yes
EndThunderClap
integer
No
Mui_ThunderClap
integer
Yes
Default melee game initialization for all players
Melee
Events
Map initialization
Conditions
Actions
Game - Display to (All players) the text: C¸c pÐ ®ang ch¬i map cña TrÇn H÷u B×nh (Pro).
Melee Game - Use melee time of day (for all players)
Melee Game - Limit Heroes to 1 per Hero-type (for all players)
Melee Game - Give trained Heroes a Scroll of Town Portal (for all players)
Melee Game - Set starting resources (for all players)
Melee Game - Remove creeps and critters from used start locations (for all players)
Melee Game - Create starting units (for all players)
Melee Game - Run melee AI scripts (for computer players)
Melee Game - Enforce victory/defeat conditions (for all players)
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Player - Turn Gives bounty On for (Picked player)
Music
Events
Time - Elapsed game time is 0.00 seconds
Conditions
Actions
Sound - Clear the music list
Sound - Stop music Immediately
For each (Integer A) from 1 to 30 , do (Actions)
Loop - Actions
Sound - Play PH1 <gen>
Wait 310.00 seconds
Boss
Events
Unit - Golem 0013 <gen> Dies
Conditions
Actions
Unit - Move (Killing unit) instantly to (Center of Killed_Boss <gen>)
Wait 10.00 seconds
Unit - Move (Killing unit) instantly to (Position of (Dying unit))
ThunderClap
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Thunder Clap
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Mui_ThunderClap[0] Equal to 0
Then - Actions
Trigger - Turn on LoopThunderClap <gen>
Else - Actions
Set Variable Set Mui_ThunderClap[0] = (Mui_ThunderClap[0] + 1)
Set Variable Set Mui_ThunderClap[1] = (Mui_ThunderClap[1] + 1)
Set Variable Set Caster_ThunderClap[Mui_ThunderClap[1]] = (Casting unit)
Set Variable Set Dis_ThunderClap[Mui_ThunderClap[1]] = (Random real number between 200.00 and 500.00)
Set Variable Set EndThunderClap = ((Level of Thunder Clap for Caster_ThunderClap[Mui_ThunderClap[1]]) x 2)
LoopThunderClap
Events
Time - Every 0.50 seconds of game time
Conditions
Actions
Set Variable Set EndThunderClap = (EndThunderClap - 1)
For each (Integer Mui_ThunderClap[2] ) from 1 to Mui_ThunderClap[1] , do (Actions)
Loop - Actions
For each (Integer Mui_ThunderClap[3] ) from 1 to 10 , do (Actions)
Loop - Actions
Set Variable Set Angle_ThunderClap[Mui_ThunderClap[1]] = ((Real(Mui_ThunderClap[3])) x 36.00)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Caster_ThunderClap[Mui_ThunderClap[2]] Not equal to No unit
Then - Actions
Unit - Create 1 . Dummy_ThunderClap for (Owner of Caster_ThunderClap[Mui_ThunderClap[1]]) at ((Position of Caster_ThunderClap[Mui_ThunderClap[1]]) offset by Dis_ThunderClap[Mui_ThunderClap[1]] towards Angle_ThunderClap[Mui_ThunderClap[1]] degrees.) facing Default building facing degrees
Unit - Add a 0.50 second Generic expiration timer to (Last created unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else 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.