|
发表于 2008-8-4 16:36:09
|
显示全部楼层
解决了,是缺失“endfunction”的问题
给你:
[codes=jass]
function Trig_Select_PoFa_______u_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'e008' ) ) then
return false
endif
return true
endfunction
function Trig_Select_PoFa_______u_Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(0) ) ) then
return false
elseif ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(1) ) ) then
return false
elseif ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(2) ) ) then
return false
elseif ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(3) ) ) then
return false
elseif ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(4) ) ) then
return false
endif
return true
endfunction
function Trig_Select_PoFa_______u_Func002C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(5) ) ) then
return false
elseif ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(6) ) ) then
return false
elseif ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(7) ) ) then
return false
elseif ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(8) ) ) then
return false
elseif ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(9) ) ) then
return false
endif
return true
endfunction
function Trig_Select_PoFa_______u_Actions takes nothing returns nothing
local location loc=null
if ( Trig_Select_PoFa_______u_Func001C() ) then
set loc=GetRectCenter(gg_rct_DuiWu_NO_1_FuHuoQu)
call CreateNUnitsAtLoc( 1, 'H003', GetOwningPlayer(GetTriggerUnit()),loc , bj_UNIT_FACING )
call RemoveUnit( gg_unit_H003_0002 )
call TriggerExecute( gg_trg_setup_Hero )
call DisableTrigger( GetTriggeringTrigger() )
elseif ( Trig_Select_PoFa_______u_Func002C() ) then
set loc=GetRectCenter(gg_rct_DuiWu_NO_1_FuHuoQu)
call CreateNUnitsAtLoc( 1, 'H003', GetOwningPlayer(GetTriggerUnit()), GetRectCenter(gg_rct_DuiWu_NO_1_FuHuoQu), bj_UNIT_FACING )
call RemoveUnit( gg_unit_H003_0002 )
call TriggerExecute( gg_trg_setup_Hero )
call DisableTrigger( GetTriggeringTrigger() )
endif
call RemoveLocation(loc)
set loc=null
endfunction
//===========================================================================
function InitTrig_Select_PoFa_______u takes nothing returns nothing
set gg_trg_Select_PoFa_______u = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Select_PoFa_______u, gg_rct_PoFa )
call TriggerAddCondition( gg_trg_Select_PoFa_______u, Condition( function Trig_Select_PoFa_______u_Conditions ) )
call TriggerAddAction( gg_trg_Select_PoFa_______u, function Trig_Select_PoFa_______u_Actions )
endfunction
[/codes] |
|