Intresting....but this would be in the GUI, not JASS, as I don't know JASS........yet. =P
But I made a spell in the GUI for an AOE spell a while ago....but it like...doesn't work. :/ It deals stat dmg in an AOE that triggers 4 time, each time getting bigger.. I did a pick enemy unit group in a box from point spanning AOE by AOE...but they don't always take dmg. Sometimes they do, sometimes they don't, and I don't think it triggers the fourth time at all. :/ Any idea as to how to go about this?
Code: Select all
Let the Light Shine
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Let the Light Shine
Actions
Unit - Pause (Triggering unit)
For each (Integer A) from 1 to 10, do (Actions)
Loop - Actions
Special Effect - Create a special effect at ((Position of (Triggering unit)) offset by 200.00 towards (50.00 x (Real((Integer A)))) degrees) using Abilities\Spells\Human\Resurrect\ResurrectTarget.mdl
Special Effect - Destroy (Last created special effect)
Unit Group - Pick every unit in (Units in (Region centered at (Position of (Triggering unit)) with size (200.00, 200.00)) owned by Player 12 (Brown)) and do (Unit - Cause (Triggering unit) to damage (Picked unit), dealing (((Real((Level of Let the Light Shine for (Triggering unit)))) x 10.00) x (Real((Intelligence of (Triggering unit) (Include bonuses))))) damage of attack type Chaos and damage type Divine)
Wait 1.00 seconds
For each (Integer A) from 1 to 15, do (Actions)
Loop - Actions
Special Effect - Create a special effect at ((Position of (Triggering unit)) offset by 350.00 towards (100.00 x (Real((Integer A)))) degrees) using Abilities\Spells\Human\Resurrect\ResurrectTarget.mdl
Special Effect - Destroy (Last created special effect)
Unit Group - Pick every unit in (Units in (Region centered at (Position of (Triggering unit)) with size (350.00, 350.00)) owned by Player 12 (Brown)) and do (Unit - Cause (Triggering unit) to damage (Picked unit), dealing (((Real((Level of Let the Light Shine for (Triggering unit)))) x 10.00) x (Real((Intelligence of (Triggering unit) (Include bonuses))))) damage of attack type Chaos and damage type Divine)
Wait 1.00 seconds
For each (Integer A) from 1 to 20, do (Actions)
Loop - Actions
Special Effect - Create a special effect at ((Position of (Triggering unit)) offset by 500.00 towards (150.00 x (Real((Integer A)))) degrees) using Abilities\Spells\Human\Resurrect\ResurrectTarget.mdl
Special Effect - Destroy (Last created special effect)
Unit Group - Pick every unit in (Units in (Region centered at (Position of (Triggering unit)) with size (500.00, 500.00)) owned by Player 12 (Brown)) and do (Unit - Cause (Triggering unit) to damage (Picked unit), dealing (((Real((Level of Let the Light Shine for (Triggering unit)))) x 10.00) x (Real((Intelligence of (Triggering unit) (Include bonuses))))) damage of attack type Chaos and damage type Divine)
Wait 1.00 seconds
For each (Integer A) from 1 to 25, do (Actions)
Loop - Actions
Special Effect - Create a special effect at ((Position of (Triggering unit)) offset by 650.00 towards (200.00 x (Real((Integer A)))) degrees) using Abilities\Spells\Human\Resurrect\ResurrectTarget.mdl
Special Effect - Destroy (Last created special effect)
Unit Group - Pick every unit in (Units in (Region centered at (Position of (Triggering unit)) with size (650.00, 650.00)) owned by Player 12 (Brown)) and do (Unit - Cause (Triggering unit) to damage (Picked unit), dealing (((Real((Level of Let the Light Shine for (Triggering unit)))) x 10.00) x (Real((Intelligence of (Triggering unit) (Include bonuses))))) damage of attack type Chaos and damage type Divine)
Unit - Unpause (Triggering unit)
It's more of less the same code each time, but will a couple values changed. =P