Jolly chap*
New Member
- Reaction score
- 34
Hello. I need help with a spell. Here's what I have so far.
Yes, I know it leaks. I'll get to that, no worries.
So basically, what I want is that random frost novas pop out randomly in the area around the hero. Problem is, nothing comes up at all. I've checked the dummy ability (no mana cost, no cooldown) the dummies themselves (has mana pool, has the ability, has locust, not invulnerable) and nothing works. I might have missed something vital yet so simple. Please help. Thanks in advance.
Code:
Abyssmal Cold
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Abyssmal Cold
Actions
Set Cold_Caster = (Triggering unit)
Set Cold_Caster_Loc = (Position of Cold_Caster)
Set Cold_Area = (Region centered at Cold_Caster_Loc with size (600.00, 600.00))
Set Cold_Integer[1] = (6 x (Level of Abyssmal Cold for Cold_Caster))
Trigger - Turn on Abyssmal Cold Damage <gen>
Code:
Abyssmal Cold Damage
Events
Time - Every 0.33 seconds of game time
Conditions
Actions
Set Temp_Location = (Random point in Cold_Area)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of Cold_Caster) is an ally of Player 1 (Red)) Equal to True
Then - Actions
Unit - Create 1 Dummy for Player 6 (Orange) at Temp_Location facing Default building facing degrees
Set Cold_Target = (Last created unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of Cold_Caster) is an ally of Player 6 (Orange)) Equal to True
Then - Actions
Unit - Create 1 Dummy for Player 1 (Red) at Temp_Location facing Default building facing degrees
Set Cold_Target = (Last created unit)
Else - Actions
Unit - Create 1 Epicenter Wave Dummy for (Owner of Cold_Caster) at Temp_Location facing Default building facing degrees
Unit - Set level of Aqua Spike (Dummy) for (Last created unit) to (Level of Aqua Spike for Cold_Caster)
Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
Unit - Order (Last created unit) to Undead Lich - Frost Nova Cold_Target
Set Cold_Integer[2] = (Cold_Integer[2] + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
Cold_Integer[2] Equal to Cold_Integer[1]
(Current order of Cold_Caster) Equal to (Order(stop))
Then - Actions
Trigger - Turn off (This trigger)
Custom script: call RemoveLocation(udg_Cold_Caster_Loc)
Custom script: call RemoveLocation(udg_Temp_Location)
Set Cold_Integer[2] = 0
Else - Actions
Yes, I know it leaks. I'll get to that, no worries.
So basically, what I want is that random frost novas pop out randomly in the area around the hero. Problem is, nothing comes up at all. I've checked the dummy ability (no mana cost, no cooldown) the dummies themselves (has mana pool, has the ability, has locust, not invulnerable) and nothing works. I might have missed something vital yet so simple. Please help. Thanks in advance.