|
楼主 |
发表于 2008-9-16 21:22:12
|
显示全部楼层
unction Trig_NewTrigger_007_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetTriggerUnit()) == Player(PLAYER_NEUTRAL_AGGRESSIVE) ) ) then
return false
endif
return true
endfunction
function Trig_NewTrigger_007_Actions takes nothing returns nothing
call TriggerSleepAction( I2R(GetUnitInteger(GetTriggerUnit(), "整数值")) )
call CreateNUnitsAtLoc( 1, GetUnitTypeId(GetTriggerUnit()), Player(PLAYER_NEUTRAL_AGGRESSIVE), GetUnitLocation(GetTriggerUnit(), "点"), bj_UNIT_FACING )
call SetHandleInteger( GetLastCreatedUnit(), "整数值", GetUnitInteger(GetTriggerUnit(), "整数值") )
call SetHandleHandle( GetLastCreatedUnit(), "点", GetUnitLocation(GetTriggerUnit(), "点") )
endfunction
//===========================================================================
function InitTrig_NewTrigger_007 takes nothing returns nothing
set gg_trg_NewTrigger_007 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_NewTrigger_007, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_NewTrigger_007, Condition( function Trig_NewTrigger_007_Conditions ) )
call TriggerAddAction( gg_trg_NewTrigger_007, function Trig_NewTrigger_007_Actions )
endfunction
function Trig_NewTrigger_006_Func001Func002001 takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'earc' )
endfunction
function Trig_NewTrigger_006_Func001A takes nothing returns nothing
call SetHandleHandle( GetEnumUnit(), "点", GetUnitLoc(GetTriggerUnit()) )
if ( Trig_NewTrigger_006_Func001Func002001() ) then
set udg_guai_shijian = 4
else
call DoNothing( )
endif
call SetHandleInteger( GetEnumUnit(), "整数值", 4 )
endfunction
function Trig_NewTrigger_006_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsOfPlayerAll(Player(PLAYER_NEUTRAL_AGGRESSIVE)), function Trig_NewTrigger_006_Func001A )
endfunction
//===========================================================================
function InitTrig_NewTrigger_006 takes nothing returns nothing
set gg_trg_NewTrigger_006 = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_NewTrigger_006, 2.00 )
call TriggerAddAction( gg_trg_NewTrigger_006, function Trig_NewTrigger_006_Actions )
endfunction
这下看的懂了吧 |
|