各位新人好,欢迎进入主题 我发布此主题呢,主要是为了OU99的WE技术也提高。 话不多说,直接进入主题。 首先发布的呢,是我叫人帮忙翻译的JASS技能 翻译的是本人喜欢的一招技能—仙剑]万剑决 [attach]48790[/attach] 代码如下: function fire takes nothing returns nothing//函数 fire 输入 没有 输出 没有 local location p2= PolarProjectionBJ(udg_Point[0], GetRandomReal(0, 300.00), GetRandomReal(0.00, 360.00))//设置p2为从udg_Point[0]开始,随即角度,0到300随即距离的一个点; local location p3 //纯粹的声明变量没有翻译 local location p4 //纯粹的声明变量没有翻译 local unit u //纯粹的声明变量没有翻译 call CreateNUnitsAtLoc( 1, 'h003', GetOwningPlayer(udg_Unit), p2, GetUnitFacing(udg_Unit) )//为udg_Unit的玩家在p2点创建一个hoo3单位,朝向与udg_Unit相同; set u = GetLastCreatedUnit()//设置u为最后创建的单位; call SetUnitFlyHeight( u, GetRandomReal(0, 200.00), 99999.00 )//设置u的飞行高度为随机(0到200),改变速度为99999.00 call UnitApplyTimedLifeBJ( 1.50, 'BTLF', u )//设置u的生命时限为1.5秒; set p3 = GetUnitLoc(u)//设置p3点为u的位置; set p4 = PolarProjectionBJ(p3, 20.00, GetUnitFacing(u))//设置p4为从p3开始,距离为20,方向为u的朝向的点; call TriggerSleepAction( 1.00 )//等待1秒; call IssuePointOrderLoc( u, "carrionswarm", p4 )//对u发布carrionswarm命令到p4点; call RemoveLocation( p2 ) //纯粹的声明变量没有翻译 call RemoveLocation( p3 ) //纯粹的声明变量没有翻译 call RemoveLocation( p4 ) //纯粹的声明变量没有翻译 set p2=null//设置p2=清除点 set p3=null//设置p3=清除点 set p4=null//设置p4=清除点 set u=null //设置u为没有单位 endfunction//结束 |