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
Big Rock.w3x
Variables
Initialisation
Initialisation mêlée
select hero
spell
R Big Rock
R Big Rock loop
Entrez le code script personnalisé spécifique à la carte ci-dessous. Ce texte sera inclus dans le script de la carte après que les variables auront été déclarées et avant tout code de déclencheur.
Name
Type
is_array
initial_value
Hero_Ancient
unit
No
spell_BigRock_animationSpeed
real
No
spell_BigRock_group
group
Yes
spell_BigRock_point
location
No
spell_BigRock_speed
real
No
spell_BigRock_unit
unit
No
Initialisation mêlée par défaut pour tous les joueurs
Initialisation mêlée
Events
Map initialization
Conditions
Actions
Melee Game - Use melee time of day (for all players)
select hero
Events
Time - Elapsed game time is 0.50 seconds
Conditions
Actions
Selection - Select Crypt Lord 0000 <gen> for Player 1 (Red)
R Big Rock
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Big Rock (R)
Actions
Set Variable Set Hero_Ancient = Crypt Lord 0000 <gen>
Set Variable Set spell_BigRock_point = (Target point of ability being cast)
-------- ------------------The speed of the Rock------------------ --------
Set Variable Set spell_BigRock_speed = "2.10"
Set Variable Set spell_BigRock_animationSpeed = "33.00"
Special Effect - Create a special effect at (Position of spell_BigRock_unit) using Objects\Spawnmodels\Human\FragmentationShards\FragBoomSpawn.mdl
Special Effect - Destroy (Last created special effect)
-------- Reset Group [1] --------
Unit Group - Pick every unit in spell_BigRock_group[1] and do (Actions)
Loop - Actions
Unit Group - Remove (Picked unit) from spell_BigRock_group[1] .
R Big Rock loop
Events
Time - Every 0.02 seconds of game time
Conditions
Actions
-------- Moving the Rock --------
Unit - Move spell_BigRock_unit instantly to ((Position of spell_BigRock_unit) offset by spell_BigRock_speed towards (Facing of spell_BigRock_unit) degrees.) , facing (spell_BigRock_point offset by 10000.00 towards (Facing of spell_BigRock_unit) degrees.)
-------- Changing the Rock animation speed --------
Animation - Change spell_BigRock_unit 's animation speed to spell_BigRock_animationSpeed % of its original speed
Set Variable Set spell_BigRock_animationSpeed = (spell_BigRock_animationSpeed + 0.16)
-------- Changing the Rock speed --------
Set Variable Set spell_BigRock_speed = (spell_BigRock_speed + 0.07)
Set Variable Set spell_BigRock_group[0] = (Units within 110.00 of (Position of spell_BigRock_unit).)
Unit Group - Pick every unit in spell_BigRock_group[0] and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is in spell_BigRock_group[1].) Equal to False
((Picked unit) is alive) Equal to True
((Picked unit) is A structure) Equal to False
((Picked unit) belongs to an enemy of (Owner of Hero_Ancient).) Equal to True
Then - Actions
Unit - Cause Hero_Ancient to damage (Picked unit) , dealing ((((Max life of Hero_Ancient) / 20.00) + 0.00) + (0.00 + ((Real((Level of Big Rock (R) for Hero_Ancient))) x 100.00))) damage of attack type Spells and damage type Magic
Special Effect - Create a special effect at (Position of (Picked unit)) using Objects\Spawnmodels\Human\FragmentationShards\FragBoomSpawn.mdl
Special Effect - Destroy (Last created special effect)
-------- ----------add units in the group [1] so they dont take the damage more than 1 time------------ --------
Unit Group - Add (Picked unit) to spell_BigRock_group[1]
Set Variable Set spell_BigRock_group[0] = (Units within 105.00 of (Position of spell_BigRock_unit).)
Unit Group - Pick every unit in spell_BigRock_group[0] and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is alive) Equal to True
((Picked unit) is A structure) Equal to False
((Picked unit) belongs to an enemy of (Owner of Hero_Ancient).) Equal to True
Then - Actions
Unit - Move (Picked unit) instantly to ((Position of (Picked unit)) offset by (1.50 + (spell_BigRock_speed x 1.00)) towards ((Facing of spell_BigRock_unit) - 0.00) degrees.)
Special Effect - Create a special effect at (Position of (Picked unit)) using Abilities\Spells\Items\AIfb\AIfbSpecialArt.mdl
Special Effect - Destroy (Last created special effect)
Special Effect - Create a special effect attached to the overhead (Unexpected type: 'attachpoint') of (Picked unit) using Abilities\Spells\Human\Thunderclap\ThunderclapTarget.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.