|
[trigger]lean 02
事件
单位 - 任意单位 发动技能效果
条件
(施放技能) 等于 风暴之锤
动作
设置 UintID = 111
设置 GTU = (触发单位)
设置 GSU = (技能施放目标)
自定义代码: call JassA(udg_UintID,udg_GTU,udg_GSU)
[/trigger]
[jass]
function JassA takes intrger UID,unit TU,unit SU returns nothing
local location UL
local unit U
local unit LU
local integer i = 0
set UL = GetUnitLoc(TU)
set U = CreateUintAtloc( GetOwningPlayer(TU), UID, UL, 0)
set LU = GetLastCreatedUnit()
call PauseUnitBJ( true, TU)
loop
set i = i+1
exitwhen i>5
call SetUnitAnimation( TU, "attack" )
call IssuePointOrderLoc( LU, "thunderbolt", SU)
call ResetUnitAnimation( TU)
call PolledWait(1)
endloop
call KillUnit( LU)
call PauseUnitBJ( false, TU)
endfunction
[/jass]
又是错误...求解决办法,JASS之路真难 |
|