Добавлен Николай8
Ошибка в строчке "function PickedCond takes unit returns boolean" — Expected: "returns", что от меня требуется?
function Trig_Instigate1_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'ROAR' ) ) then
return false
endif
return true
endfunction
function PickedCond takes unit returns boolean
if ( not ( IsPlayerEnemy(GetOwningPlayer(GetEnumUnit()), GetOwningPlayer(caster)) == true ) ) then
return false
endif
return true
endfunction
function Provoke takes unit returns nothing
if ( PickedCond() ) then
local group G1 = GetLastCreatedGroup()
call GroupAddUnitSimple( GetEnumUnit(), G1 )
call GroupTargetOrderBJ( G1, "attack", caster )
else
endif
endfunction
function Group takes nothing returns nothing
local unit caster = GetSpellAbilityUnit()
return caster
call ForGroupBJ( GetUnitsInRangeOfLocAll(600.00, GetUnitLoc(caster)), function Provoke )
endfunction
//===========================================================================
function InitTrig_Instigate1 takes nothing returns nothing
set gg_trg_Instigate1 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Instigate1, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Instigate1, Condition( function Trig_Instigate1_Conditions ) )
call TriggerAddAction( gg_trg_Instigate1, function Group )
endfunction
`
ОЖИДАНИЕ РЕКЛАМЫ...
Чтобы оставить комментарий, пожалуйста, войдите на сайт.
function PickedCond takes unit u returns boolean