|
如题,我这样步兵方阵
loop
exitwhen i<-5
set j=7
loop
exitwhen j<-7
if i>4 or i<-4 then
set uid='orai'
else
set uid='ogru'
endif
if i!=0 and j!=0 then
set you=CreateUnit(Player(1),uid,x+dist*j,y+dist*i,0)
if cout>0 and i==5 or i==-5 then
call SaveUnitHandle(udg_HT,GetHandleId(udg_HT),StringHash("wolf")+cout,you)//就是这一句,我用主角把他们全杀光后,退出游戏就弹错了。
set cout=cout-1
endif
call SetUnitMoveSpeed(you,200)
set you=null
endif
set j=j-1
endloop
set i=i-1
endloop |
|