|
发表于 2011-3-20 08:02:18
|
显示全部楼层
你想要什么效果呢?我很好奇....自己写了一个..希望能给你 一点帮助好了.
也请高手看看.这么写是不是会有什么问题.....
[jass]
function Trig____________________001Conditions takes nothing returns boolean
return ((GetSpellAbilityId()== 'AOws'))
endfunction
function Trig____________________001Actions takes nothing returns nothing
local location d = GetUnitLoc(GetSpellAbilityUnit())
local unit u2
local integer i = 0
loop
exitwhen i > 10
set u2 = CreateUnitAtLoc(GetOwningPlayer(GetTriggerUnit()), 'h000', d, 0)
set i = i +1
endloop
call DisplayTextToForce( GetPlayersAll(), "你说你想要什么效果呢?" )
call RemoveLocation(d)
set d = null
set u2 = null
endfunction
//===========================================================================
function InitTrig____________________001 takes nothing returns nothing
set gg_trg____________________001 = CreateTrigger()
call TriggerRegisterUnitEvent( gg_trg____________________001, gg_unit_Otch_0011, EVENT_UNIT_SPELL_EFFECT )
call TriggerAddCondition(gg_trg____________________001, Condition(function Trig____________________001Conditions))
call TriggerAddAction(gg_trg____________________001, function Trig____________________001Actions)
endfunction
[/jass] |
|