|
发表于 2008-12-17 12:32:23
|
显示全部楼层
[jass]①function InitTrig_GA takes nothing returns nothing
set gg_trg_GA = CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_GA,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddAction(gg_trg_GA,function Trig_GA_Actions)
endfunction
②function InitTrig_GA takes nothing returns nothing
set gg_trg_GA = CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_GA,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_GA,Condition(function Trig_GA_Actions))
endfunction[/jass]
②多了个Condition.和①比,①少调用了个Condition啊.①和②哪个好? |
|