Arctic Eraser
MUI - NO
GUI/JASS - GUI
LEAK - I think no?
Greetings everyone. I am now learning to make spells and this is my simple spell. This spell is inspired from C&C Generals (particle cannon). It works almost like that particle cannon, just it is more icy and not a global skill (can change if you want).
Calls down a controllable blizzard that blasts enemy units with damaging frost every 0.4 second and slows their movement and attack rate for 4 seconds.
The blizzard will leave icy trail behind it for 5 seconds that deals 30 damage per second to enemy units. The blizzard lasts 20 seconds.
Level 1 - 30 damage per blast.
Level 2 - 45 damage per blast.
Level 3 - 60 damage per blast.
Please comment thank you
MUI - NO
GUI/JASS - GUI
LEAK - I think no?
Greetings everyone. I am now learning to make spells and this is my simple spell. This spell is inspired from C&C Generals (particle cannon). It works almost like that particle cannon, just it is more icy and not a global skill (can change if you want).
Calls down a controllable blizzard that blasts enemy units with damaging frost every 0.4 second and slows their movement and attack rate for 4 seconds.
The blizzard will leave icy trail behind it for 5 seconds that deals 30 damage per second to enemy units. The blizzard lasts 20 seconds.
Level 1 - 30 damage per blast.
Level 2 - 45 damage per blast.
Level 3 - 60 damage per blast.
Code:
Spell Start
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Arctic Eraser
Actions
Set Artic_units[1] = (Casting unit)
Wait until ((Number of living Blizzard units owned by (Owner of Artic_units[1])) Greater than 0), checking every 0.10 seconds
Set ArticGroup = (Units owned by (Owner of Artic_units[1]) of type Blizzard)
Unit Group - Pick every unit in ArticGroup and do (Set Artic_units[2] = (Picked unit))
Custom script: call DestroyGroup (udg_ArticGroup)
Trigger - Turn on Spell Animation <gen>
Selection - Select Artic_units[2] for (Owner of Artic_units[1])
Unit - Turn collision for Artic_units[2] Off
Unit - Change color of Artic_units[2] to Blue
Animation - Change Artic_units[2]'s vertex coloring to (100.00%, 100.00%, 100.00%) with 100.00% transparency
Wait 0.30 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Artic_units[2] is alive) Equal to True
Then - Actions
Trigger - Turn on Spell Damage <gen>
Else - Actions
Do nothing
Code:
Spell Stop
Events
Unit - A unit Stops casting an ability
Conditions
(Ability being cast) Equal to Arctic Eraser
Actions
Trigger - Turn off Spell Animation <gen>
Trigger - Turn off Spell Damage <gen>
Code:
Spell Damage
Events
Time - Every 0.40 seconds of game time
Conditions
Actions
Set Artic_position[1] = (Position of Artic_units[2])
Unit - Make Artic_units[1] face Artic_units[2] over 0.70 seconds
Unit - Create 1 Universal Dummy (Blizzard) for (Owner of Artic_units[1]) at Artic_position[1] facing Default building facing degrees
Set Artic_units[3] = (Last created unit)
Unit - Turn collision for Artic_units[3] Off
Unit - Add a 0.30 second Generic expiration timer to Artic_units[3]
Unit - Add Arctic Damage to Artic_units[3]
Unit - Set level of Arctic Damage for Artic_units[3] to (Level of Arctic Eraser for Artic_units[1])
Unit - Order Artic_units[3] to Undead Lich - Frost Nova Artic_units[3]
Unit - Create 1 Universal Dummy (trail) for (Owner of Artic_units[1]) at Artic_position[1] facing Default building facing degrees
Set Artic_units[4] = (Last created unit)
Unit - Add a 5.00 second Generic expiration timer to Artic_units[4]
Custom script: call RemoveLocation(udg_Artic_position[1])
Code:
Spell Animation
Events
Time - Every 0.09 seconds of game time
Conditions
Actions
Special Effect - Create a special effect attached to the origin of Artic_units[2] using Abilities\Spells\Human\Blizzard\BlizzardTarget.mdl
Special Effect - Destroy (Last created special effect)