SkyXyden
New Member
- Reaction score
- 3
Hi there, I got a problem with this ability. Could anyone help out?
Meteor Storm: Upon activation, rains a random nearby enemy with meteor. Lasts 30 times.
Problem: Doesn't activates at all.
Meteor Storm: Upon activation, rains a random nearby enemy with meteor. Lasts 30 times.
Problem: Doesn't activates at all.
Code:
AST Meteor Storm
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to AST 4 Meteor Storm (Cast Point)
Actions
Set TempSkillPoint[1] = (Position of (Triggering unit))
Special Effect - Create a special effect attached to the origin of (Triggering unit) using Abilities\Spells\Other\Doom\DoomTarget.mdl
Set MeteorStormSFX = (Last created special effect)
For each (Integer A) from 1 to 30, do (Actions)
Loop - Actions
Set Temp_Group = (Units within 1000.00 of TempSkillPoint[1] matching ((((Matching unit) is alive) Equal to True) and ((((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True) and ((((Matching unit) is paused) Equal to False) and (((Matching unit)
Set Temp_Unit = (Random unit from Temp_Group)
Set TempSkillPoint[2] = (Position of Temp_Unit)
Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at TempSkillPoint[1] facing Default building facing degrees
Unit - Add AST 4 Meteor Storm (Blast Point) to (Last created unit)
Unit - Set level of AST 4 Meteor Storm (Blast Point) for (Last created unit) to (Level of AST 4 Meteor Storm (Cast Point) for (Triggering unit))
Unit - Order (Last created unit) to Undead Dreadlord - Inferno TempSkillPoint2
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Custom script: call RemoveLocation(udg_TempSkillPoint[2])
Custom script: call DestroyGroup (udg_Temp_Group)
Wait 0.50 seconds
Special Effect - Destroy MeteorStormSFX
Custom script: call RemoveLocation(udg_TempSkillPoint[1])