早教吧 育儿知识 作业答案 考试题库 百科 知识分享

英语翻译callTriggerRegisterPlayerKeyEventBJ(ggtrgc3,Player(0),bjKEYEVENTTYPEDEPRESS,bjKEYEVENTKEYDOWN)callTriggerRegisterPlayerKeyEventBJ(ggtrgc3,Player(4),bjKEYEVENTTYPEDEPRESS,bjKEYEVENTKEYDOWN)callTriggerAddAction(ggtrgc3,func

题目详情
英语翻译
call TriggerRegisterPlayerKeyEventBJ(gg_trg_c3,Player(0),bj_KEYEVENTTYPE_DEPRESS,bj_KEYEVENTKEY_DOWN)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_c3,Player(4),bj_KEYEVENTTYPE_DEPRESS,bj_KEYEVENTKEY_DOWN)
call TriggerAddAction(gg_trg_c3,function Trig_c3_Actions)
endfunction
function Trig_c4_Func001C takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(0)))then
return false
endif
if(not(udg_kuaiguan[148]==true))then
return false
endif
return true
endfunction
function Trig_c4_Func002C takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(4)))then
return false
endif
if(not(udg_kuaiguan[149]==true))then
return false
endif
return true
endfunction
function Trig_c4_Actions takes nothing returns nothing
if(Trig_c4_Func001C())then
call UnitResetCooldown(udg_KLDW[0])
call SetUnitLifePercentBJ(udg_KLDW[0],100)
call SetUnitManaPercentBJ(udg_KLDW[0],100)
else
endif
if(Trig_c4_Func002C())then
call UnitResetCooldown(udg_KLDW[0])
call SetUnitLifePercentBJ(udg_KLDW[0],100)
call SetUnitManaPercentBJ(udg_KLDW[0],100)
else
endif
endfunction
function InitTrig_c4 takes nothing returns nothing
set gg_trg_c4=CreateTrigger()
call DisableTrigger(gg_trg_c4)
▼优质解答
答案和解析
乱七八糟...
大概意思是当红色或橙色玩家做了什么以后,让某单位满血满魔技能CD重置.