|
楼主 |
发表于 2007-2-28 13:41:00
|
显示全部楼层
下载那个破解版了,可是触发器里。。。。。
function Trig_huoniao1_Conditions takes nothing returns boolean
if ( not ( GetIssuedOrderIdBJ() == String2OrderIdBJ("carrionswarm") ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'Hblm' ) ) then
return false
endif
return true
endfunction
function Trig_huoniao1_Actions takes nothing returns nothing
call TriggerSleepAction( 0.50 )
call CreateNUnitsAtLoc( 1, 'e00A', GetOwningPlayer(GetTriggerUnit()), PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()), 500.00, GetUnitFacing(GetTriggerUnit())), GetUnitFacing(GetTriggerUnit()) )
set udg_huoniao1 = GetLastCreatedUnit()
call IssuePointOrderLocBJ( udg_huoniao1, "shockwave", PolarProjectionBJ(GetUnitLoc(udg_huoniao1), 40.00, ( GetUnitFacing(udg_huoniao1) + 45.00 )) )
call TriggerSleepAction( 0.20 )
call IssuePointOrderLocBJ( udg_huoniao1, "shockwave", PolarProjectionBJ(GetUnitLoc(udg_huoniao1), 40.00, ( GetUnitFacing(udg_huoniao1) + 135.00 )) )
call TriggerSleepAction( 0.20 )
call IssuePointOrderLocBJ( udg_huoniao1, "shockwave", PolarProjectionBJ(GetUnitLoc(udg_huoniao1), 40.00, ( GetUnitFacing(udg_huoniao1) + 225.00 )) )
call TriggerSleepAction( 0.20 )
call IssuePointOrderLocBJ( udg_huoniao1, "shockwave", PolarProjectionBJ(GetUnitLoc(udg_huoniao1), 40.00, ( GetUnitFacing(udg_huoniao1) + 315.00 )) )
call UnitApplyTimedLifeBJ( 2.00, 'BTLF', udg_huoniao1 )
endfunction
//===========================================================================
function InitTrig_huoniao1 takes nothing returns nothing
set gg_trg_huoniao1 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_huoniao1, EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER )
call TriggerAddCondition( gg_trg_huoniao1, Condition( function Trig_huoniao1_Conditions ) )
call TriggerAddAction( gg_trg_huoniao1, function Trig_huoniao1_Actions )
endfunction
这些是什么啊,几乎全是这些,希望everguo大哥快帮我做个吧,感激不尽,其实我并不是要发扬,只是想了解而已,但是又不会做,哎~~~~ |
|