- Joined
- May 15, 2009
- Messages
- 192
Hey everyone, this is probaly the fourth time in a week I ask for help on this forum. I am making a spell called Storm Supremacy(Will be referred to as "SP" from now on). The spell is supposed to pick 1 nearby enemy and damage them through a trigger. Now, for each level of the ability, the damage should change and pick 1 more target. But for now, lets focus on the basic.
Advice on fixing is much appreciated.
-
Storms Supremacy
-
Events
-
Unit - A unit Begins casting an ability
-
-
Conditions
-
(Ability being cast) Equal to Storm Supremacy
-
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Storm Supremacy for (Triggering unit)) Equal to 1
-
-
Then - Actions
-
Set SP_Target = No unit
-
Set SP_Loc1 = (Position of (Triggering unit))
-
Unit Group - Pick every unit in (Units within 500.00 of (Position of (Triggering unit)) matching (((Picked unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True)) and do (Actions)
-
Loop - Actions
-
Unit Group - Add (Picked unit) to SP_Group
-
Set SP_Target = (Random unit from SP_Group)
-
Unit - Cause (Triggering unit) to damage SP_Target, dealing ((Real((Intelligence of (Triggering unit) (Include bonuses)))) + 125.00) damage of attack type Spells and damage type Universal
-
Special Effect - Create a special effect at (Position of SP_Target) using Abilities\Spells\Other\Monsoon\MonsoonBoltTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
Set SP_Loc2 = (Position of SP_Target)
-
Custom script: call DestroyGroup(udg_SP_Group)
-
Custom script: call RemoveLocation(udg_SP_Loc1)
-
Custom script: call RemoveLocation(udg_SP_Loc2)
-
-
-
-
Else - Actions Do - do nothing
-
-
-
Advice on fixing is much appreciated.