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
spell.w3x
Variables
Spells
Example 1
Loop
Example 2
Loop 2
test
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
Boolean
boolean
Yes
Caster
unit
Yes
Dummy
unit
Yes
i
integer
No
j
integer
No
Point
location
Yes
Real
real
Yes
Target
unit
Yes
Example 1
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Fire Explosion
Actions
Set Variable Set i = (i + 1)
Set Variable Set Caster[i] = (Casting unit)
Set Variable Set Real[i] = "1.00"
Set Variable Set Boolean[i] = "true"
Unit - Create 1 . for Neutral Passive at (Position of (Casting unit)) facing Default building facing degrees
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Set Variable Set Dummy[i] = (Last created unit)
Unit - Add (Neutral Hostile) to Dummy[i]
Unit - Create 1 . for Neutral Passive at (Target point of ability being cast) facing Default building facing degrees
Set Variable Set Target[i] = (Last created unit)
Set Variable Set Point[i] = (Position of Target[i])
Unit - Order Dummy[i] to Special Archimonde - Finger Of Death . Target[i]
Loop
Events
Time - Every 0.03 seconds of game time
Conditions
Actions
For each (Integer A) from 1 to i , do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Boolean[(Integer A)] Equal to True
Then - Actions
Set Variable Set Real[(Integer A)] = (Real[(Integer A)] - 0.03)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Real[(Integer A)] Less than or equal to 0.00
Then - Actions
Set Variable Set Boolean[(Integer A)] = "false"
Special Effect - Create a special effect at Point[(Integer A)] using Abilities\Spells\Other\Incinerate\FireLordDeathExplode.mdl
Unit Group - Pick every unit in (Units within 180.00 of Point[(Integer A)] matching (((Matching unit) belongs to an enemy of (Owner of Caster[(Integer A)]).) Equal to True).) and do (Cause Caster[(Integer A)] to damage (Picked unit), dealing (300.00 x (Real((Hero level of Caster[(Integer A)])))) damage of attack type Chaos and damage type Fire)
For each (Integer B) from 1 to 8 , do (Actions)
Loop - Actions
Special Effect - Create a special effect at (Point[(Integer A)] offset by 90.00 towards (45.00 x (Real((Integer B)))) degrees.) using Abilities\Spells\Other\Incinerate\FireLordDeathExplode.mdl
For each (Integer B) from 1 to 16 , do (Actions)
Loop - Actions
Special Effect - Create a special effect at (Point[(Integer A)] offset by 180.00 towards (22.50 x (Real((Integer B)))) degrees.) using Abilities\Spells\Other\Incinerate\FireLordDeathExplode.mdl
Else - Actions
Else - Actions
Example 2
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Fire Ball
Actions
Set Variable Set j = (j + 1)
Set Variable Set Caster[j] = (Casting unit)
Set Variable Set Real[j] = "600.00"
Set Variable Set Boolean[j] = "true"
Unit - Create 1 . for Neutral Passive at ((Position of Caster[j]) offset by 90.00 towards (Facing of Caster[j]) degrees.) facing (Facing of Caster[j]) degrees
Set Variable Set Dummy[j] = (Last created unit)
Set Variable Set Point[j] = ((Position of Caster[j]) offset by ((Distance between (Position of Caster[j]) and (Target point of ability being cast)) - 90.00) towards (Facing of Caster[j]) degrees.)
Loop 2
Events
Time - Every 0.03 seconds of game time
Conditions
Actions
For each (Integer A) from 1 to j , do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Boolean[(Integer A)] Equal to True
Then - Actions
Set Variable Set Real[(Integer A)] = (Real[(Integer A)] - 10.00)
Unit - Move Dummy[(Integer A)] instantly to ((Position of Dummy[(Integer A)]) offset by 10.00 towards (Facing of Dummy[(Integer A)]) degrees.)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Real[(Integer A)] Less than or equal to 0.00
Then - Actions
Set Variable Set Boolean[(Integer A)] = "false"
Special Effect - Create a special effect at Point[(Integer A)] using Abilities\Spells\Other\Incinerate\FireLordDeathExplode.mdl
Unit Group - Pick every unit in (Units within 270.00 of Point[(Integer A)] matching (((Matching unit) belongs to an enemy of (Owner of Caster[(Integer A)]).) Equal to True).) and do (Cause Caster[(Integer A)] to damage (Picked unit), dealing (150.00 x (Real((Hero level of Caster[(Integer A)])))) damage of attack type Chaos and damage type Fire)
For each (Integer B) from 1 to 8 , do (Actions)
Loop - Actions
Special Effect - Create a special effect at (Point[(Integer A)] offset by 90.00 towards (45.00 x (Real((Integer B)))) degrees.) using Abilities\Spells\Other\Incinerate\FireLordDeathExplode.mdl
For each (Integer B) from 1 to 16 , do (Actions)
Loop - Actions
Special Effect - Create a special effect at (Point[(Integer A)] offset by 180.00 towards (22.50 x (Real((Integer B)))) degrees.) using Abilities\Spells\Other\Incinerate\FireLordDeathExplode.mdl
For each (Integer B) from 1 to 32 , do (Actions)
Loop - Actions
Special Effect - Create a special effect at (Point[(Integer A)] offset by 270.00 towards (360.00 / 32.00) degrees.) using Abilities\Spells\Other\Incinerate\FireLordDeathExplode.mdl
Unit - Remove Dummy[(Integer A)] from the game
Else - Actions
Else - Actions
test
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units of type Fire Lord) and do (Actions)
Loop - Actions
Unit - Order (Picked unit) to Undead Dreadlord - Carrion Swarm . ((Position of (Picked unit)) offset by 600.00 towards (Facing of (Picked unit)) degrees.)
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.