- Joined
- Mar 24, 2008
- Messages
- 184
i have several spells split on 2 triggers (mainly there is one trigger for the spell execution and another for interrupting it), i post here one of theese (the shortest one
), just as example:
so...what do i have to do?
-
Aimed Shot
-

Events
-


Unit - A unit starts the transmission of an ability*
-
-

Conditions
-


(Ability being cast) Equals to Aimed Shot
-
-

Actions
-


Set AimedShotCaster = (Casting unit)
-


Set AimedShotTarget = (Target unit of ability being cast)
-


Special Effect - Create a special effect attached to the left hand of (Triggering unit) using Abilities\Spells\Undead\OrbOfDeath\OrbOfDeathMissile.mdl
-


Set AimedShotCasterSfx = (Last created special effect)
-


Set AimedShotCasted = TRUE
-


Wait 5.00 seconds
-


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



If - Conditions
-




AimedShotCasted Equals to TRUE
-
-



Then - Actions
-




Special Effect - Destroy AimedShotCasterSfx
-




Set AimedShotCasted = FALSE
-




Set AimedShotCasterLoc = (Position of AimedShotCaster)
-




Set AimedShotTargetLoc = (Position of AimedShotTarget)
-




Wait ((Distance between AimedShotCasterLoc and AimedShotTargetLoc) / 800.00) seconds
-




Custom script: call RemoveLocation(udg_AimedShotCasterLoc)
-




Custom script: call RemoveLocation(udg_AimedShotTargetLoc)
-




Unit - Cause (Triggering unit) to damage AimedShotTarget, dealing (500.00 + ((Real((Agilit of AimedShotCaster (Includi bonuses)))) x 5.00)) damage of attack type Caos and damage type Universale
-
-



Else - Actions
-
-
-
-
Stop Aimed Shot
-

Events
-


Unit - A unit Stops casting an ability*
-
-

Conditions
-


(Ability being cast) Equals to Aimed Shot
-


AimedShotCasted Uguale a TRUE
-
-

Azioni
-


Special Effect - Destroy AimedShotCasterSfx
-


Set AimedShotCasted = FALSE
-
-
so...what do i have to do?




