- Joined
- Feb 20, 2007
- Messages
- 843
Why this code doesn't work:
-
Set SOULS = (SOULS - (SOULS x ((18 - (3 x (Level of Soul Birst for SBirst_caster))) / 100)))
-
SoulBirst
-

Events
-


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

Conditions
-


(Ability being cast) Equal to Soul Birst
-
-

Actions
-


Set SBirst_caster = (Casting unit)
-


For each (Integer A) from 1 to (5 + (SOULS / 2)), do (Actions)
-



Loop - Actions
-




Set SBirst_point = (Position of SBirst_caster)
-




Unit - Create 1 DummySBirst for (Owner of SBirst_caster) at SBirst_point facing (Facing of SBirst_caster) degrees
-




Unit - Add a (Random real number between 0.01 and 1.20) second Generic expiration timer to (Last created unit)
-




Set SBirst_point = (SBirst_point offset by 800.00 towards (Random real number between ((Facing of SBirst_caster) - 45.00) and ((Facing of SBirst_caster) + 45.00)) degrees)
-




Unit - Order (Last created unit) to Move To SBirst_point
-




Wait 0.01 seconds
-
-
-


Set SOULS = (SOULS - (SOULS x ((18 - (3 x (Level of Soul Birst for SBirst_caster))) / 100)))
-


Game - Display to (Player group((Owner of SBirst_caster))) the text: (Remaining Souls: + (String(SOULS)))
-


Custom script: call RemoveLocation (udg_SBirst_point)
-
-




