|
function BG takes nothing returns nothing
set udg_shuaguai=true
set udg_shuaguaishu=0
set udg_boshu=udg_boshu+1
call DestroyTimerDialog(udg_A_TW[6])
call DestroyTimer(udg_A_T[6])
set udg_A_TW[6]=null
set udg_A_T[6]=null
endfunction
function SG takes nothing returns nothing
local integer i
local unit u
if(udg_shuaguai) then
if(udg_shuaguaishu<120) then
set i=ModuloInteger(udg_boshu-1,5)*5
set u= CreateUnitAtLoc(Player(6),udg_A_UT[i+GetRandomInt(0,4)],udg_A_P[11],180)
call TriggerRegisterUnitEvent( gg_trg_GD, u, EVENT_UNIT_DEATH )
call IssuePointOrderLoc( u, "attack", udg_A_P[10] )
set u= CreateUnitAtLoc(Player(6),udg_A_UT[i+GetRandomInt(0,4)],udg_A_P[12],180)
call TriggerRegisterUnitEvent( gg_trg_GD, u, EVENT_UNIT_DEATH )
call IssuePointOrderLoc( u, "attack", udg_A_P[10] )
set u= CreateUnitAtLoc(Player(6),udg_A_UT[i+GetRandomInt(0,4)],udg_A_P[13],180)
call TriggerRegisterUnitEvent( gg_trg_GD, u, EVENT_UNIT_DEATH )
call IssuePointOrderLoc( u, "attack", udg_A_P[10] )
set u=null
set udg_shuaguaishu=udg_shuaguaishu+1
elseif(udg_shuaguaishu<240) then
set udg_shuaguaishu=udg_shuaguaishu+1
else
set udg_shuaguai=false
set udg_A_T[6]=CreateTimer()
call TimerStart(udg_A_T[6],120,false,function BG)
set udg_A_TW[6]=CreateTimerDialogBJ(udg_A_T[6],"|C00FF0000鬼魂出现|r|cFF696969 第"+I2S(udg_boshu+1)+"波|r")
endif
endif
endfunction
function KS takes nothing returns nothing
local timer tm=CreateTimer()
call TimerStart(tm,1,true,function SG)
set tm=null
endfunction |
|