真三里太史慈战场法则这个加敏是怎么计算的
functionTrig_Battlefield_Law_Conditionstakesnothingreturnsbooleanreturn((GetUnitTypeI...
function Trig_Battlefield_Law_Conditions takes nothing returns boolean
return ((GetUnitTypeId(GetKillingUnit())=='E00J'))
endfunction
function Trig_Battlefield_Law_Func001Func001C takes nothing returns boolean
return ((GetUnitAbilityLevelSwapped('A032',GetKillingUnit())==1))
endfunction
function Trig_Battlefield_Law_Func001Func002C takes nothing returns boolean
return ((GetUnitAbilityLevelSwapped('A032',GetKillingUnit())==2))
endfunction
function Trig_Battlefield_Law_Func001Func003C takes nothing returns boolean
return ((GetUnitAbilityLevelSwapped('A032',GetKillingUnit())==3))
endfunction
function Trig_Battlefield_Law_Func001Func004C takes nothing returns boolean
return ((GetUnitAbilityLevelSwapped('A032',GetKillingUnit())==4))
endfunction
function Trig_Battlefield_Law_Func001C takes nothing returns boolean
return ((udg_Battlefield_Law_Effect>=60))
endfunction
function Trig_Battlefield_Law_Actions takes nothing returns nothing
if (Trig_Battlefield_Law_Func001C()) then
call ModifyHeroStat(1,GetKillingUnit(),0,1)
set udg_Battlefield_Law_Effect=0
else
if (Trig_Battlefield_Law_Func001Func001C()) then
set udg_Battlefield_Law_Effect=(udg_Battlefield_Law_Effect+2)
endif
if (Trig_Battlefield_Law_Func001Func002C()) then
set udg_Battlefield_Law_Effect=(udg_Battlefield_Law_Effect+3)
endif
if (Trig_Battlefield_Law_Func001Func003C()) then
set udg_Battlefield_Law_Effect=(udg_Battlefield_Law_Effect+4)
endif
if (Trig_Battlefield_Law_Func001Func004C()) then
set udg_Battlefield_Law_Effect=(udg_Battlefield_Law_Effect+5)
endif
endif
endfunction
//===========================================================================
function InitTrig_Battlefield_Law takes nothing returns nothing
set gg_trg_Battlefield_Law=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Battlefield_Law,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(gg_trg_Battlefield_Law,Condition(function Trig_Battlefield_Law_Conditions))
call TriggerAddAction(gg_trg_Battlefield_Law,function Trig_Battlefield_Law_Actions)
endfunction
改2,3,4,5就能修改敏捷加成,我想知道那个函数是怎么算的 展开
return ((GetUnitTypeId(GetKillingUnit())=='E00J'))
endfunction
function Trig_Battlefield_Law_Func001Func001C takes nothing returns boolean
return ((GetUnitAbilityLevelSwapped('A032',GetKillingUnit())==1))
endfunction
function Trig_Battlefield_Law_Func001Func002C takes nothing returns boolean
return ((GetUnitAbilityLevelSwapped('A032',GetKillingUnit())==2))
endfunction
function Trig_Battlefield_Law_Func001Func003C takes nothing returns boolean
return ((GetUnitAbilityLevelSwapped('A032',GetKillingUnit())==3))
endfunction
function Trig_Battlefield_Law_Func001Func004C takes nothing returns boolean
return ((GetUnitAbilityLevelSwapped('A032',GetKillingUnit())==4))
endfunction
function Trig_Battlefield_Law_Func001C takes nothing returns boolean
return ((udg_Battlefield_Law_Effect>=60))
endfunction
function Trig_Battlefield_Law_Actions takes nothing returns nothing
if (Trig_Battlefield_Law_Func001C()) then
call ModifyHeroStat(1,GetKillingUnit(),0,1)
set udg_Battlefield_Law_Effect=0
else
if (Trig_Battlefield_Law_Func001Func001C()) then
set udg_Battlefield_Law_Effect=(udg_Battlefield_Law_Effect+2)
endif
if (Trig_Battlefield_Law_Func001Func002C()) then
set udg_Battlefield_Law_Effect=(udg_Battlefield_Law_Effect+3)
endif
if (Trig_Battlefield_Law_Func001Func003C()) then
set udg_Battlefield_Law_Effect=(udg_Battlefield_Law_Effect+4)
endif
if (Trig_Battlefield_Law_Func001Func004C()) then
set udg_Battlefield_Law_Effect=(udg_Battlefield_Law_Effect+5)
endif
endif
endfunction
//===========================================================================
function InitTrig_Battlefield_Law takes nothing returns nothing
set gg_trg_Battlefield_Law=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Battlefield_Law,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(gg_trg_Battlefield_Law,Condition(function Trig_Battlefield_Law_Conditions))
call TriggerAddAction(gg_trg_Battlefield_Law,function Trig_Battlefield_Law_Actions)
endfunction
改2,3,4,5就能修改敏捷加成,我想知道那个函数是怎么算的 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询