🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!
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
Magic Spells Test.w3x
Variables
First Magic Tree
First Magic 1
First Magic 2
First Magic 3
First Magic 4
Life Key
Life Bonus
Mana Bonus
Visibility
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
CastingUnit1
unit
Yes
CastingUnit2
unit
Yes
KillingGroup
group
Yes
Point1
location
No
Point2
location
Yes
- - -| First Magic 1 |- - -
Info:
The Spell Breaker summons a few balls that destruct his enemies.
Everyone who's inside the circle of balls wont escape.
The balls suck out the souls of the units who stand in the circle.
Variables:
CastingUnit1 = Casting unit (u can also just use castin unit don't need the variable but it's more handy with variables)
Point1 = Target point of ability being cast (this one is used to give this certain unit a buff or something)
KillingGroup = Units within 200.00 of Point1 (to damage much units in one time)
First Magic 1
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to First Magic 1
Actions
Set Variable Set CastingUnit1[1] = (Casting unit)
Set Variable Set KillingGroup[2] = (Units within 200.00 of Point1.)
Set Variable Set Point1 = (Target point of ability being cast)
Unit Group - Pick every unit in (Units within 250.00 of Point1.) and do (Pause (Picked unit))
Unit - Create 1 . First Magic Missile for Neutral Passive at (Point1 offset by 200.00 towards 50.00 degrees.) facing 0.00 degrees
Wait 1.00 game-time seconds
Animation - Change (Last created unit) flying height to 10.00 at 100.00
Wait 1.00 game-time seconds
Unit - Create 1 . First Magic Missile for Neutral Passive at (Point1 offset by 200.00 towards 100.00 degrees.) facing 0.00 degrees
Wait 1.00 game-time seconds
Animation - Change (Last created unit) flying height to 10.00 at 100.00
Wait 1.00 game-time seconds
Unit - Create 1 . First Magic Missile for Neutral Passive at (Point1 offset by 200.00 towards 150.00 degrees.) facing 0.00 degrees
Wait 1.00 game-time seconds
Animation - Change (Last created unit) flying height to 10.00 at 100.00
Wait 1.00 game-time seconds
Unit - Create 1 . First Magic Missile for Neutral Passive at (Point1 offset by 200.00 towards 200.00 degrees.) facing 0.00 degrees
Wait 1.00 game-time seconds
Animation - Change (Last created unit) flying height to 10.00 at 100.00
Wait 1.00 game-time seconds
Unit - Create 1 . First Magic Missile for Neutral Passive at (Point1 offset by 200.00 towards 250.00 degrees.) facing 0.00 degrees
Wait 1.00 game-time seconds
Animation - Change (Last created unit) flying height to 10.00 at 100.00
Wait 1.00 game-time seconds
Unit - Create 1 . First Magic Missile for Neutral Passive at (Point1 offset by 200.00 towards 300.00 degrees.) facing 0.00 degrees
Wait 1.00 game-time seconds
Animation - Change (Last created unit) flying height to 10.00 at 100.00
Wait 1.00 game-time seconds
Unit - Create 1 . First Magic Missile for Neutral Passive at (Point1 offset by 200.00 towards 360.00 degrees.) facing 0.00 degrees
Wait 1.00 game-time seconds
Animation - Change (Last created unit) flying height to 10.00 at 100.00
Wait 1.00 game-time seconds
Special Effect - Create a special effect at Point1 using Abilities\Spells\Human\FlameStrike\FlameStrikeTarget.mdl
Wait 1.00 game-time seconds
Special Effect - Destroy (Last created special effect)
Special Effect - Create a special effect at Point1 using Abilities\Spells\Undead\Unsummon\UnsummonTarget.mdl
Wait 1.00 game-time seconds
Special Effect - Destroy (Last created special effect)
Special Effect - Create a special effect at Point1 using Objects\Spawnmodels\Other\NeutralBuildingExplosion\NeutralBuildingExplosion.mdl
Special Effect - Destroy (Last created special effect)
Unit Group - Pick every unit in (Units within 250.00 of Point1.) and do (Cause (Picked unit) to damage circular area after 0 seconds of radius 200.00 at Point1, dealing 50.00 damage of attack type Spells and damage type Fire)
Unit Group - Pick every unit in (Units within 250.00 of Point1.) and do (Unpause (Picked unit))
- - -| First Magic 2 |- - -
Info:
This one has no explaination,
if you don't get this spell stop making triggers let me do it or someone else who does.
First Magic 2
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to First Magic 2
Actions
Set Variable Set CastingUnit1[0] = (Casting unit)
Set Variable Set Point1 = (Position of (Casting unit))
Special Effect - Create a special effect at (Point1 offset by 400.00 towards 0 degrees.) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
Special Effect - Create a special effect at (Point1 offset by 400.00 towards 20.00 degrees.) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
Special Effect - Create a special effect at (Point1 offset by 400.00 towards 40.00 degrees.) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
Special Effect - Create a special effect at (Point1 offset by 400.00 towards 60.00 degrees.) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
Special Effect - Create a special effect at (Point1 offset by 400.00 towards 80.00 degrees.) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
Special Effect - Create a special effect at (Point1 offset by 400.00 towards 100.00 degrees.) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
Special Effect - Create a special effect at (Point1 offset by 400.00 towards 120.00 degrees.) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
Special Effect - Create a special effect at (Point1 offset by 400.00 towards 140.00 degrees.) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
Special Effect - Create a special effect at (Point1 offset by 400.00 towards 160.00 degrees.) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
Special Effect - Create a special effect at (Point1 offset by 400.00 towards 180.00 degrees.) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
Special Effect - Create a special effect at (Point1 offset by 400.00 towards 200.00 degrees.) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
Special Effect - Create a special effect at (Point1 offset by 400.00 towards 220.00 degrees.) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
Special Effect - Create a special effect at (Point1 offset by 400.00 towards 240.00 degrees.) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
Special Effect - Create a special effect at (Point1 offset by 400.00 towards 260.00 degrees.) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
Special Effect - Create a special effect at (Point1 offset by 400.00 towards 280.00 degrees.) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
Special Effect - Create a special effect at (Point1 offset by 400.00 towards 300.00 degrees.) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
Special Effect - Create a special effect at (Point1 offset by 400.00 towards 320.00 degrees.) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
Special Effect - Create a special effect at (Point1 offset by 400.00 towards 340.00 degrees.) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
Special Effect - Create a special effect at (Point1 offset by 400.00 towards 360.00 degrees.) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
First Magic 3
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to First Magic 3
Actions
Set Variable Set CastingUnit1[0] = (Casting unit)
Set Variable Set Point2[2] = (Position of (Target unit of ability being cast))
Unit - Pause (Target unit of ability being cast)
Unit - Pause CastingUnit1[0]
Unit - Make CastingUnit1[0] Invulnerable
Wait 2 game-time seconds
Unit - Create 1 . Third Magic Missiles for Neutral Passive at (Point2[2] offset by 200.00 towards 0 degrees.) facing Default building facing degrees
Unit - Create 1 . Third Magic Missiles for Neutral Passive at (Point2[2] offset by 200.00 towards 50.00 degrees.) facing Default building facing degrees
Unit - Create 1 . Third Magic Missiles for Neutral Passive at (Point2[2] offset by 200.00 towards 100.00 degrees.) facing Default building facing degrees
Unit - Create 1 . Third Magic Missiles for Neutral Passive at (Point2[2] offset by 200.00 towards 150.00 degrees.) facing Default building facing degrees
Unit - Create 1 . Third Magic Missiles for Neutral Passive at (Point2[2] offset by 200.00 towards 200.00 degrees.) facing Default building facing degrees
Unit - Create 1 . Third Magic Missiles for Neutral Passive at (Point2[2] offset by 200.00 towards 250.00 degrees.) facing Default building facing degrees
Unit - Create 1 . Third Magic Missiles for Neutral Passive at (Point2[2] offset by 200.00 towards 300.00 degrees.) facing Default building facing degrees
Unit Group - Pick every unit in (Units within 210.00 of Point2[2].) and do (Order (Picked unit) to Move To.Point2[2])
Special Effect - Create a special effect attached to the origin (Unexpected type: 'attachpoint') of (Target unit of ability being cast) using Objects\Spawnmodels\Undead\ImpaleTargetDust\ImpaleTargetDust.mdl
Wait 2 game-time seconds
Unit Group - Pick every unit in (Units within 210.00 of Point2[2].) and do (Cause CastingUnit1[0] to damage circular area after 210.00 seconds of radius 500 at Point2[2], dealing 100.00 damage of attack type Spells and damage type Plant)
Animation - Change (Target unit of ability being cast) flying height to 0.00 at 0.00
Unit - Unpause (Target unit of ability being cast)
Unit - Unpause CastingUnit1[0]
Unit - Make CastingUnit1[0] Vulnerable
First Magic 4
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to First Magic 4
Actions
Set Variable Set CastingUnit1[0] = (Casting unit)
Unit - Make CastingUnit1[0] Invulnerable
Unit - Pause (Triggering unit)
Sound - Attach MetalHeavySliceFlesh1 <gen> to CastingUnit1[0]
Animation - Change (Casting unit) 's vertex coloring to ( 100 %, 100 %, 100 %) with 65.00 % transparency
Special Effect - Create a special effect attached to the left hand (Unexpected type: 'attachpoint') of (Casting unit) using Abilities\Weapons\PhoenixMissile\Phoenix_Missile_mini.mdl
Special Effect - Create a special effect attached to the right hand (Unexpected type: 'attachpoint') of (Casting unit) using Abilities\Weapons\PhoenixMissile\Phoenix_Missile_mini.mdl
Unit - Move CastingUnit1[0] instantly to ((Position of CastingUnit1[0]) offset by 100.00 towards 150.00 degrees.) , facing Default building facing degrees
Animation - Play CastingUnit1[0] 's attack animation
Sound - Play MetalHeavySliceFlesh1 <gen>
Unit Group - Pick every unit in (Units within 100.00 of (Position of CastingUnit1[0]).) and do (Cause CastingUnit1[0] to damage circular area after 5.00 seconds of radius 100.00 at (Position of CastingUnit1[0]), dealing 100 damage of attack type Normal and damage type Normal)
Wait 0.25 game-time seconds
Unit - Move CastingUnit1[0] instantly to ((Position of CastingUnit1[0]) offset by 100.00 towards 230.00 degrees.) , facing Default building facing degrees
Animation - Play CastingUnit1[0] 's attack animation
Sound - Play MetalHeavySliceFlesh1 <gen>
Unit Group - Pick every unit in (Units within 100.00 of (Position of CastingUnit1[0]).) and do (Cause CastingUnit1[0] to damage circular area after 5.00 seconds of radius 100.00 at (Position of CastingUnit1[0]), dealing 100 damage of attack type Normal and damage type Normal)
Wait 0.25 game-time seconds
Unit - Move CastingUnit1[0] instantly to ((Position of CastingUnit1[0]) offset by 100.00 towards 315.00 degrees.) , facing Default building facing degrees
Animation - Play CastingUnit1[0] 's attack animation
Sound - Play MetalHeavySliceFlesh1 <gen>
Unit Group - Pick every unit in (Units within 100.00 of (Position of CastingUnit1[0]).) and do (Cause CastingUnit1[0] to damage circular area after 5.00 seconds of radius 100.00 at (Position of CastingUnit1[0]), dealing 100 damage of attack type Normal and damage type Normal)
Wait 0.25 game-time seconds
Unit - Move CastingUnit1[0] instantly to ((Position of CastingUnit1[0]) offset by 100.00 towards 15.00 degrees.) , facing Default building facing degrees
Animation - Play CastingUnit1[0] 's attack animation
Sound - Play MetalHeavySliceFlesh1 <gen>
Unit Group - Pick every unit in (Units within 100.00 of (Position of CastingUnit1[0]).) and do (Cause CastingUnit1[0] to damage circular area after 5.00 seconds of radius 100.00 at (Position of CastingUnit1[0]), dealing 100 damage of attack type Normal and damage type Normal)
Special Effect - Destroy (Last created special effect)
Unit - Unpause CastingUnit1[0]
Unit - Make CastingUnit1[0] Vulnerable
Life Bonus
Events
Player - Player 1 (Red) Presses the Right Arrow key
Conditions
Actions
Unit - Set life of (Triggering unit) to 100 %
Mana Bonus
Events
Player - Player 1 (Red) Presses the Left Arrow key
Conditions
Actions
Unit - Set mana of Apprentice Magician 0000 <gen> to 100 %
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.