|
if(Trig_liubo_gongji_Func002C())then
set udg_liubosjs[27]=GetHeroLevel(GetAttacker())
if(Trig_liubo_gongji_Func002Func002C())then
call SetHeroLevelBJ(GetAttacker(),(udg_liubosjs[27]+1),false)
call CreateTextTagUnitBJ("等级提升",GetAttacker(),0,17.,GetRandomReal(0,100.),GetRandomReal(0,100.),GetRandomReal(0,100.),0)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,GetRandomReal(40.,150.),GetRandomReal(0,360))
call SetTextTagLifespan(bj_lastCreatedTextTag,3.)
endif
set udg_liubosjs[26]=(3*(R2I(SquareRoot(I2R(udg_liubosjs[22])))*R2I(SquareRoot(I2R(GetHeroLevel(GetAttacker()))))))
if(Trig_liubo_gongji_Func002Func004C())then
call ModifyHeroStat(0,GetAttacker(),0,udg_liubosjs[26])
call CreateTextTagUnitBJ(("+力量"+I2S(udg_liubosjs[26])),GetAttacker(),0,17.,GetRandomReal(0,100.),GetRandomReal(0,100.),GetRandomReal(0,100.),0)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
比如这段当等级提升时set udg_liubosjs[26]=(3*(R2I(SquareRoot(I2R(udg_liubosjs[22])))*R2I(SquareRoot(I2R(GetHeroLevel(GetAttacker()))))))是所加力量的值么,如果是的话,我可不可以直接set udg_liubosjs[26]=GetRandomInt(1,5),从1-5随机取个数呢
完整的代码见附件
f.rar
(4 KB, 下载次数: 20)
|
|