Юнит начинает применять спосбоность
--------------------------------------
если это способность N
--------------------------------------------------
Set OP_Caster = (Casting unit)
Set OP_Caster_Loc = (Position of OP_Caster)
Set OP_Target_Loc = (Target point of ability being cast)
боевая единица - Create 1 Dummy for (Owner of OP_Caster) at OP_Caster_Loc facing OP_Caster_Loc
Set OP_Dummy = (Last created unit)
боевая единица - Order OP_Dummy to двигаться OP_Target_Loc
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Если - Условия
(Level of способность N for OP_Caster) равно 1
То - Действия
Триггер - Turn on OP Check1 <gen>
Иначе - Действия -----------------------------------------------------------------------------------------------------
триггер OP Check1
-----------------------------------------------------------------------------------------------
Время - Every 0.05 seconds of game time
------------------------------------------------------
Set OP_Dummy_Loc = (Position of OP_Dummy)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Если - Условия
(Distance between OP_Dummy_Loc and OP_Target_Loc) меньше или равно 30.00
То - Действия
Set OP_Group = (Units within 300.00 of OP_Target_Loc)
Отряд - Pick every unit in OP_Group and do (Actions)
Цикл - Действия
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Если - Условия
((Picked unit) belongs to an enemy of (Owner of OP_Caster)) равно Да
То - Действия
Set OP_Pick = (Picked unit)
Триггер - Turn on OP1 <gen>
Триггер - Run OP Cancel <gen> (checking conditions)
Иначе - Действия
боевая единица - Kill OP_Dummy
Триггер - Turn off (This trigger)
Иначе - Действия
-------------------------------------------------------------------------
Добавлено (07-04-2011, 18:53)
---------------------------------------------
триггер OP1
-----------------------------------------------------------------------------------------------
Время - Every 1.00 seconds of game time
-----------------------------------------------------
Спецэффект - Create a special effect attached to the origin of OP_Pick using Abilities\Weapons\PoisonSting\PoisonStingTarget.mdl
Set OP_Effect = (Last created special effect)
боевая единица - Cause OP_Caster to damage OP_Pick, dealing 23.00 damage of attack type Заклинание and damage type Обычный
Wait 0.50 seconds
Спецэффект - Destroy OP_Effect