- Joined
- Aug 15, 2012
- Messages
- 318
I am working on recreating the spell from diablo 2 that diablo casts as basicaly a ray of lightning. I have started the spell got it to work but what I need to get to work is have it so its like a continuous ray that strikes the target doing damage over time until it is destroyed x seconds later if anyone has any ideas how to make this work id greatly appreaciate it also heres what I got so far
-
Lightning Inferno
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Lightning Inferno
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Target unit of ability being cast) is A ground unit) Equal to True
-
Then - Actions
- -------- Location targetted --------
- Set LI_Loc = (Position of (Target unit of ability being cast))
- -------- Caster of the Spell --------
- Set LI_Caster = |c00FF0000Diablo|r 0125 <gen>
- -------- Angle at which spell will be cast --------
- Set LI_Angle = (Angle from (Position of (Casting unit)) to (Position of (Target unit of ability being cast)))
- -------- Group Conditions is spell immune etc. --------
- Set LI_Group = (Units within 150.00 of LI_Loc matching ((((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True) and ((((Matching unit) is A ground unit) Equal to True) and ((((Target unit of ability being cast) is alive) Equal to True) and (((T
- -------- Real damage equal to intelligence --------
- Set LI_Damage = (Real((Intelligence of (Casting unit) (Include bonuses))))
-
Unit Group - Pick every unit in LI_Group and do (Actions)
-
Loop - Actions
- -------- Effect for awsomeness --------
- Environment - Create a 0.50 second wave deformation from (Position of (Casting unit)) to LI_Loc with radius 100.00, depth 96.00, and a 0.50 second trailing delay
- -------- Dummy to purge and move as effect --------
- -------- Timer to not over do his life --------
- Unit - Create 1 Lightning for (Triggering player) at (Position of (Casting unit)) facing LI_Angle degrees
- Unit - Add a 2.50 second Generic expiration timer to (Last created unit)
- Unit - Order (Last created unit) to Move To LI_Loc
- Unit - Add Purge to (Last created unit)
- Unit - Order (Last created unit) to Orc Shaman - Purge (Target unit of ability being cast)
- -------- The damage the spell will deal --------
- Unit - Cause LI_Caster to damage (Target unit of ability being cast), dealing (LI_Damage x (2.00 x (Real((Level of (Ability being cast) for (Triggering unit)))))) damage of attack type Chaos and damage type Lightning
- Custom script: call RemoveLocation(udg_LI_Loc)
- Custom script: call DestroyGroup(udg_LI_Group)
-
Loop - Actions
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events