|
请大家帮忙看看这个J怎么在JassShopPro中老是报错
[Jass]function JassCreateUnit takes player P,integer Num,location point,unit Uid,integer U returns nothing
local integer i=0
local unit u
loop
set i = i+1
exitwhen i > Num
set u = CreateNUnitsAtLoc( 1, U, P, point, bj_UNIT_FACING )
call ModifyHeroStat( bj_HEROSTAT_STR, u, bj_MODIFYMETHOD_SET, ( GetHeroStatBJ(bj_HEROSTAT_STR, Uid, false) * Num ) )
call ModifyHeroStat( bj_HEROSTAT_AGI, u, bj_MODIFYMETHOD_SET, ( GetHeroStatBJ(bj_HEROSTAT_AGI, Uid, false) * Num ) )
call ModifyHeroStat( bj_HEROSTAT_INT, u, bj_MODIFYMETHOD_SET, ( GetHeroStatBJ(bj_HEROSTAT_INT, Uid, false) * Num ) )
call UnitApplyTimedLifeBJ( ( 20.00 * I2R(Num) ), 'BHwe', GetLastCreatedUnit() )
call SuspendHeroXPBJ( false, u )
set u=null
endloop
endfunction[/Jass] |
|