|
楼主 |
发表于 2008-4-30 13:02:44
|
显示全部楼层
- function Trig_torf_Func001001002 takes nothing returns boolean
- return ( UnitHasBuffBJ(GetEnumUnit(), 'BHad') == true )
- endfunction
- function Trig_torf_Func001A takes nothing returns nothing
- set udg_a=GetUnitAbilityLevel(GetEnumUnit(), 'BHad')
- endfunction
- function Trig_torf_Actions takes nothing returns nothing
- call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_torf_Func001001002)), function Trig_torf_Func001A )
- call DisplayTextToPlayer( Player(0), 0, 0, I2S(udg_a) )
- endfunction
- //===========================================================================
- function InitTrig_torf takes nothing returns nothing
- set gg_trg_torf = CreateTrigger( )
- call TriggerRegisterTimerEventPeriodic( gg_trg_torf, 1.00 )
- call TriggerAddAction( gg_trg_torf, function Trig_torf_Actions )
- endfunction
复制代码
但是我这样得到的值,总是0.无论是使用物品还是提升技能等级,为什么会这样啊? |
|