- Joined
- Mar 27, 2009
- Messages
- 194
hey dudes,
i tried to do a spell in jass, but failed. could anyone do it for me? (+rep of course)
i tried to do a spell in jass, but failed. could anyone do it for me? (+rep of course)
-
PB
-

Events
-


Unit - A unit starts the effect of an ability
-
-

Conditions
-


(Ability being cast) equal to PB
-
-

Actions
-


Set PB_loc = (Position of (Casting unit))
-


Set PB_caster = (Casting unit)
-


Unitgroup - Pick every unit in (Units within 600.00 of PB_loc matching (((Matching unit) belongs to an enemy of (Owner of PB_caster)) Gleich True)) and do (Actions)
-



Loop - Actions
-




Set PB_targetloc = (Position of (Picked unit))
-




Lightning - Create a XY lightning effect from source PB_loc to target PB_targetloc
-




Custom script: call RemoveLocation(udg_PB_targetloc)
-




Set num2 = (num2 + 1)
-




Set spez2[num2] = (Last created lightning effect)
-
-
-


Wait 2.00 seconds
-


Unitgroup - Pick every unit in (Units within 600.00 of PB_loc matching (((Matching unit) belongs to an enemy of (Owner of PB_caster)) Gleich True)) and do (Actions)
-



Loop - Actions
-




Unit - Cause PB_caster to damage (Picked unit), dealing ((Real((Level of PB for PB_caster))) x 80.00) damage of attack type Chaos and damage type Normal
-
-
-


Custom script: call RemoveLocation(udg_PB_loc)
-


For each (Integer A) from 1 to num2, do (Actions)
-



Schleifen - Aktionen
-




Lightning - Destroy spez2[(Integer A)]
-
-
-


Set num2 = 0
-
-
Last edited:
