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
HoS v 1.3.w3x
Variables
Инициализация
Безымянный триггер 001
HoS
HoS Start
HoS Move
Введите ниже нестандартный код для указанной карты. Этот текст будет включен в код карты после объявления переменных и до кода любого триггера.
Name
Type
is_array
initial_value
HoS_Group
group
No
HoS_Lighting
lightning
Yes
HoS_Number
integer
Yes
HoS_Point
location
Yes
HoS_Real
real
No
HoS_Unit
unit
Yes
HoS_Unit2
unit
Yes
Безымянный триггер 001
Events
Map initialization
Conditions
Actions
Game - Set the time of day to 12
Game - Turn the day/night cycle Off
HoS Start
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Hammer of Storm
Actions
Set Variable Set HoS_Unit[1] = (Casting unit)
Set Variable Set HoS_Unit[2] = (Target unit of ability being cast)
Set Variable Set HoS_Point[1] = (Position of HoS_Unit[2])
Set Variable Set HoS_Number[1] = "0"
Set Variable Set HoS_Number[2] = "0"
Set Variable Set HoS_Number[3] = "0"
Wait 0.50 seconds
Custom script: set bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units within 300.00 of HoS_Point[1].) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Picked unit) Not equal to HoS_Unit[1]
(Picked unit) Not equal to HoS_Unit[2]
(Owner of (Picked unit)) Not equal to (Owner of HoS_Unit[1])
(Owner of (Picked unit)) Not equal to (Random player from (All allies of (Owner of HoS_Unit[1]).))
((Picked unit) is alive) Equal to True
Then - Actions
Set Variable Set HoS_Number[1] = (HoS_Number[1] + 1)
Set Variable Set HoS_Number[3] = (HoS_Number[3] + 1)
Set Variable Set HoS_Unit2[HoS_Number[3]] = (Picked unit)
Set Variable Set HoS_Point[3] = (Position of HoS_Unit2[HoS_Number[3]])
Unit Group - Add (Picked unit) to HoS_Group
Unit - Make (Picked unit) face HoS_Point[1] over 0 seconds
Unit - Cause HoS_Unit[1] to damage (Picked unit) , dealing ((Real((Level of Hammer of Storm for HoS_Unit[1]))) x 50.00) damage of attack type Spells and damage type Normal
Lightning - Create a Chain Lightning - Primary lightning effect from source HoS_Point[1] to target HoS_Point[3]
Set Variable Set HoS_Lighting[HoS_Number[1]] = (Last created lightning effect)
Set Variable Set HoS_Number[2] = (Number of units in HoS_Group)
Wait 0.05 seconds
For each (Integer HoS_Number[4] ) from 1 to HoS_Number[2] , do (Actions)
Loop - Actions
Special Effect - Create a special effect attached to the chest (Unexpected type: 'attachpoint') of HoS_Unit2[HoS_Number[4]] using Abilities\Weapons\Bolt\BoltImpact.mdl
Special Effect - Destroy (Last created special effect)
Trigger - Turn on HoS_Move <gen>
HoS Move
Events
Time - Every 0.02 seconds of game time
Conditions
Actions
Set Variable Set HoS_Real = (HoS_Real + 1.00)
Unit Group - Pick every unit in HoS_Group and do (Actions)
Loop - Actions
Set Variable Set HoS_Point[100] = (Position of (Picked unit))
Set Variable Set HoS_Point[2] = (HoS_Point[100] offset by -3.00 towards (Facing of (Picked unit)) degrees.)
Unit - Move (Picked unit) instantly to HoS_Point[2]
Unit - Make (Picked unit) face HoS_Point[1] over 0 seconds
For each (Integer B) from 1 to HoS_Number[2] , do (Actions)
Loop - Actions
Lightning - Move HoS_Lighting[(Integer B)] to source (Position of HoS_Unit[2]) and target (Position of HoS_Unit2[(Integer B)])
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.