Moderator
M
Moderator
Fiery Spellpack 1.01a | Reviewed by Maker | 13th May 2013 | ||||
| NEEDS FIX | ||||
|
FExecute

Events


Unit - A unit Starts the effect of an ability

Conditions


(Ability being cast) Equal to Fiery End

Actions


Set FCaster = (Triggering unit)


Set FEndPoint = ((Position of (Casting unit)) offset by 250.00 towards (Facing of (Casting unit)) degrees)


Set FLevel = (Level of (Ability being cast) for FCaster)


Special Effect - Create a special effect at FEndPoint using Abilities\Spells\Other\Doom\DoomDeath.mdl


Special Effect - Destroy (Last created special effect)


Set FGroup = (Units within 200.00 of FEndPoint)


Unit Group - Pick every unit in FGroup and do (Actions)



Loop - Actions




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






((Picked unit) belongs to an enemy of Player 12 (Brown)) Equal to True





Then - Actions






Unit - Cause FCaster to damage (Picked unit), dealing (100.00 x (Real(FLevel))) damage of attack type Spells and damage type Normal






Special Effect - Create a special effect attached to the chest of (Picked unit) using Abilities\Spells\Other\Incinerate\IncinerateBuff.mdl






Special Effect - Destroy (Last created special effect)





Else - Actions


Custom script: call RemoveLocation (udg_FEndPoint)


Custom script: call DestroyGroup (udg_FGroup)
HSExecute

Events


Unit - A unit Starts the effect of an ability

Conditions


(Ability being cast) Equal to Hell's Stomp

Actions


-------- This leave it as it is if you want it to look good. --------


-------- Since the special effect is really wide, the aoe set on the trigger is a bit smaller. --------


Set HSAoe = 200


Set HSPoints[1] = ((Position of (Casting unit)) offset by (Real(HSAoe)) towards 0.00 degrees)


Set HSPoints[2] = ((Position of (Casting unit)) offset by (Real(HSAoe)) towards 45.00 degrees)


Set HSPoints[3] = ((Position of (Casting unit)) offset by (Real(HSAoe)) towards 90.00 degrees)


Set HSPoints[4] = ((Position of (Casting unit)) offset by (Real(HSAoe)) towards 135.00 degrees)


Set HSPoints[5] = ((Position of (Casting unit)) offset by (Real(HSAoe)) towards 180.00 degrees)


Set HSPoints[6] = ((Position of (Casting unit)) offset by (Real(HSAoe)) towards 225.00 degrees)


Set HSPoints[7] = ((Position of (Casting unit)) offset by (Real(HSAoe)) towards 270.00 degrees)


Set HSPoints[8] = ((Position of (Casting unit)) offset by (Real(HSAoe)) towards 315.00 degrees)


Special Effect - Create a special effect at HSPoints[1] using Abilities\Spells\Other\Doom\DoomDeath.mdl


Special Effect - Destroy (Last created special effect)


Special Effect - Create a special effect at HSPoints[2] using Abilities\Spells\Other\Doom\DoomDeath.mdl


Special Effect - Destroy (Last created special effect)


Special Effect - Create a special effect at HSPoints[3] using Abilities\Spells\Other\Doom\DoomDeath.mdl


Special Effect - Destroy (Last created special effect)


Special Effect - Create a special effect at HSPoints[4] using Abilities\Spells\Other\Doom\DoomDeath.mdl


Special Effect - Destroy (Last created special effect)


Special Effect - Create a special effect at HSPoints[5] using Abilities\Spells\Other\Doom\DoomDeath.mdl


Special Effect - Destroy (Last created special effect)


Special Effect - Create a special effect at HSPoints[6] using Abilities\Spells\Other\Doom\DoomDeath.mdl


Special Effect - Destroy (Last created special effect)


Special Effect - Create a special effect at HSPoints[7] using Abilities\Spells\Other\Doom\DoomDeath.mdl


Special Effect - Destroy (Last created special effect)


Special Effect - Create a special effect at HSPoints[8] using Abilities\Spells\Other\Doom\DoomDeath.mdl


Special Effect - Destroy (Last created special effect)


Custom script: call RemoveLocation (udg_HSPoints[1])


Custom script: call RemoveLocation (udg_HSPoints[2])


Custom script: call RemoveLocation (udg_HSPoints[3])


Custom script: call RemoveLocation (udg_HSPoints[4])


Custom script: call RemoveLocation (udg_HSPoints[5])


Custom script: call RemoveLocation (udg_HSPoints[6])


Custom script: call RemoveLocation (udg_HSPoints[7])


Custom script: call RemoveLocation (udg_HSPoints[8])
TExecute

Events


Unit - A unit Starts the effect of an ability

Conditions


(Ability being cast) Equal to Testament

Actions


-------- Just in case --------


Set TAmount = (TAmount + 1)


-------- just in case --------


Set TAmountMax = 696969


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




TAmount Greater than TAmountMax



Then - Actions




Set TAmount = 1



Else - Actions


Set TCaster[TAmount] = (Triggering unit)


Set TExtraDegrees[TAmount] = 50


Trigger - Turn on TLoop <gen>
TLoop

Events


Time - Every 0.01 seconds of game time

Conditions

Actions


Set TPoint1[TAmount] = ((Position of TCaster[TAmount]) offset by (Real(TExtraDegrees[TAmount])) towards 0.00 degrees)


Set TPoint2[TAmount] = ((Position of TCaster[TAmount]) offset by (Real(TExtraDegrees[TAmount])) towards 45.00 degrees)


Set TPoint3[TAmount] = ((Position of TCaster[TAmount]) offset by (Real(TExtraDegrees[TAmount])) towards 90.00 degrees)


Set TPoint4[TAmount] = ((Position of TCaster[TAmount]) offset by (Real(TExtraDegrees[TAmount])) towards 135.00 degrees)


Set TPoint5[TAmount] = ((Position of TCaster[TAmount]) offset by (Real(TExtraDegrees[TAmount])) towards 180.00 degrees)


Set TPoint6[TAmount] = ((Position of TCaster[TAmount]) offset by (Real(TExtraDegrees[TAmount])) towards 225.00 degrees)


Set TPoint7[TAmount] = ((Position of TCaster[TAmount]) offset by (Real(TExtraDegrees[TAmount])) towards 270.00 degrees)


Set TPoint8[TAmount] = ((Position of TCaster[TAmount]) offset by (Real(TExtraDegrees[TAmount])) towards 315.00 degrees)


Special Effect - Create a special effect at TPoint1[TAmount] using Abilities\Spells\Other\Doom\DoomDeath.mdl


Special Effect - Destroy (Last created special effect)


Special Effect - Create a special effect at TPoint2[TAmount] using Abilities\Spells\Other\Doom\DoomDeath.mdl


Special Effect - Destroy (Last created special effect)


Special Effect - Create a special effect at TPoint3[TAmount] using Abilities\Spells\Other\Doom\DoomDeath.mdl


Special Effect - Destroy (Last created special effect)


Special Effect - Create a special effect at TPoint4[TAmount] using Abilities\Spells\Other\Doom\DoomDeath.mdl


Special Effect - Destroy (Last created special effect)


Special Effect - Create a special effect at TPoint5[TAmount] using Abilities\Spells\Other\Doom\DoomDeath.mdl


Special Effect - Destroy (Last created special effect)


Special Effect - Create a special effect at TPoint6[TAmount] using Abilities\Spells\Other\Doom\DoomDeath.mdl


Special Effect - Destroy (Last created special effect)


Special Effect - Create a special effect at TPoint7[TAmount] using Abilities\Spells\Other\Doom\DoomDeath.mdl


Special Effect - Destroy (Last created special effect)


Special Effect - Create a special effect at TPoint8[TAmount] using Abilities\Spells\Other\Doom\DoomDeath.mdl


Special Effect - Destroy (Last created special effect)


Custom script: call RemoveLocation (udg_TPoint1[udg_TAmount])


Custom script: call RemoveLocation (udg_TPoint2[udg_TAmount])


Custom script: call RemoveLocation (udg_TPoint3[udg_TAmount])


Custom script: call RemoveLocation (udg_TPoint4[udg_TAmount])


Custom script: call RemoveLocation (udg_TPoint5[udg_TAmount])


Custom script: call RemoveLocation (udg_TPoint6[udg_TAmount])


Custom script: call RemoveLocation (udg_TPoint7[udg_TAmount])


Custom script: call RemoveLocation (udg_TPoint8[udg_TAmount])


Set TExtraDegrees[TAmount] = (TExtraDegrees[TAmount] + 100)


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




TExtraDegrees[TAmount] Equal to 850



Then - Actions




Set TLevelDmg[TAmount] = (Level of Testament for TCaster[TAmount])




Set TGroup = (Units within 850.00 of (Position of TCaster[TAmount]))




Unit Group - Pick every unit in TGroup and do (Actions)





Loop - Actions






If (All Conditions are True) then do (Then Actions) else do (Else Actions)







If - Conditions








And - All (Conditions) are true









Conditions










((Picked unit) is A structure) Not equal to True










((Owner of (Picked unit)) is an enemy of (Owner of TCaster[TAmount])) Equal to True







Then - Actions








Unit - Cause TCaster[TAmount] to damage (Picked unit), dealing (400.00 x (Real(TLevelDmg[TAmount]))) damage of attack type Spells and damage type Normal







Else - Actions




Set TExtraDegrees[TAmount] = (TExtraDegrees[TAmount] + 100)




Custom script: call DestroyGroup (udg_TGroup)




Trigger - Turn off (This trigger)



Else - Actions