|
发表于 2009-8-9 20:01:36
|
显示全部楼层
额``` 就是提示错误名字
这是函数``
- function JassCreateUnit takes player P,integer Num,integer N,location point,unit Uid,integer U ,integer red, integer green,integer blue,integer Opacity returns nothing
- local integer i=0
- local unit u
- loop
- set i = i+1
- exitwhen i > Num
- set u = CreateUnitAtLoc( P,U,point,bj_UNIT_FACING)
- call ModifyHeroStat( bj_HEROSTAT_STR, u, bj_MODIFYMETHOD_SET, ( GetHeroStatBJ(bj_HEROSTAT_STR, Uid, false) * N ) )
- call ModifyHeroStat( bj_HEROSTAT_AGI, u, bj_MODIFYMETHOD_SET, ( GetHeroStatBJ(bj_HEROSTAT_AGI, Uid, false) * N ) )
- call ModifyHeroStat( bj_HEROSTAT_INT, u, bj_MODIFYMETHOD_SET, ( GetHeroStatBJ(bj_HEROSTAT_INT, Uid, false) * N ) )
- call SetUnitVertexColorBJ( u, red, green, blue, Opacity )
- call UnitApplyTimedLifeBJ( ( 20.00 * I2R(Num) ), 'BHwe', u )
- call SuspendHeroXPBJ( false, u )
- set u=null
- endloop
- endfunction
复制代码
这是运行代码- call JassCreateUnit(Player(0),5,1,udg_point,GetTriggerUnit(),H000,I2R(GetRandomInt(1, 45)),I2R(GetRandomInt(1, 45)),I2R(GetRandomInt(1, 45)),I2R(GetRandomInt(1, 45)))
复制代码
自从在函数中添加了call SetUnitVertexColorBJ( u, red, green, blue, Opacity ) 后就不行了 |
-
|