Попытался избавится от bj и написал
function Trig_____________________________________105_____________________u_Conditions takes nothing returns boolean
if ( not ( GetUnitState(udg_ShooteR,UNIT_STATE_LIFE) <= 0 ) ) then
return false
endif
if ( not ( GetUnitState(udg_ShooteR,UNIT_STATE_MANA) >= 10.00 ) ) then
return false
endif
return true
endfunction
if ( not ( GetUnitState(udg_ShooteR,UNIT_STATE_LIFE) <= 0 ) ) then
return false
endif
if ( not ( GetUnitState(udg_ShooteR,UNIT_STATE_MANA) >= 10.00 ) ) then
return false
endif
return true
endfunction
function Trig_____________________________________105_____________________u_Actions takes nothing returns nothing
call GetUnitState(udg_ShooteR,UNIT_STATE_MANA - 5.00)
endfunction
call GetUnitState(udg_ShooteR,UNIT_STATE_MANA - 5.00)
endfunction
===========================================================================
function InitTrig_____________________________________105_____________________u takes nothing returns nothing
set gg_trg_____________________________________105_____________________u = CreateTrigger( )
call DisableTrigger( gg_trg_____________________________________105_____________________u )
call TriggerRegisterTimerEvent( gg_trg_____________________________________105_____________________u, 1.00, true )
call TriggerAddCondition( gg_trg_____________________________________105_____________________u, Condition( function Trig_____________________________________105_____________________u_Conditions ) )
call TriggerAddAction( gg_trg_____________________________________105_____________________u, function Trig_____________________________________105_____________________u_Actions )
endfunction
function InitTrig_____________________________________105_____________________u takes nothing returns nothing
set gg_trg_____________________________________105_____________________u = CreateTrigger( )
call DisableTrigger( gg_trg_____________________________________105_____________________u )
call TriggerRegisterTimerEvent( gg_trg_____________________________________105_____________________u, 1.00, true )
call TriggerAddCondition( gg_trg_____________________________________105_____________________u, Condition( function Trig_____________________________________105_____________________u_Conditions ) )
call TriggerAddAction( gg_trg_____________________________________105_____________________u, function Trig_____________________________________105_____________________u_Actions )
endfunction
Исправил базовый
call SetUnitManaBJ( udg_ShooteR, ( GetUnitStateSwap(UNIT_STATE_MANA, udg_ShooteR) - 5.00 ) )
endfunction
call SetUnitManaBJ( udg_ShooteR, ( GetUnitStateSwap(UNIT_STATE_MANA, udg_ShooteR) - 5.00 ) )
endfunction
Не пойму, почему не правильно call GetUnitState(udg_ShooteR,UNIT_STATE_MANA - 5.00)
То есть имя переменной юнита и указанная манна -5, что не верно ?!
Принятый ответ
- не называй триггеры по-русски
- SetUnitState(udg_ShooteR,UNIT_STATE_MANA, GetUnitState(udg_ShooteR,UNIT_STATE_MANA) - 5.00)
`
ОЖИДАНИЕ РЕКЛАМЫ...
Чтобы оставить комментарий, пожалуйста, войдите на сайт.
Ред. SсRealm