function Trig____________________001_Actions takes nothing returns nothing
local integer i
set i=0
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=10
loop
exitwhen i>1
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreatUnitAtLoc(Player(0),udg_a[udg_i], GetRandomLocInRect(gg_rct______________000), 0)
call TriggerSleepAction( 2 )
set bj_forLoopAIndex = bj_forLoopAIndex +1
endloop
set i=i+1
endloop
endfunction
//===========================================================================
function InitTrig____________________001 takes nothing returns nothing
set gg_trg____________________001 = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg____________________001, 5 )
call TriggerAddAction( gg_trg____________________001, function Trig____________________001_Actions )
endfunction
为什么变量i的值没改变呢??明明有i=i+1啊 我是想刷10个udg_a[0], 再刷10个udg_a[1], 结果一直在刷udg_a[0],悲剧啊
|