魔兽地图编辑器吧 关注:64,835贴子:3,833,889
  • 0回复贴,共1

求教、JASS这段代码再游戏里能触发吗?

取消只看楼主收藏回复

function InitTrig_XNDT takes nothing returns nothing
set gg_trg_XNDT=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_XNDT,Player(0),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_XNDT,Player(1),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_XNDT,Player(2),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_XNDT,Player(3),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_XNDT,Player(4),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_XNDT,Player(5),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_XNDT,Player(6),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_XNDT,Player(7),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_XNDT,Player(8),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_XNDT,Player(9),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_XNDT,Player(10),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_XNDT,Player(11),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_XNDT,Player(12),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_XNDT,Player(13),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_XNDT,Player(14),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_XNDT,Player(15),"",true)
call TriggerAddAction(gg_trg_XNDT,function Trig_XNDTActions)
endfunction
function Trig_XZDTActions takes nothing returns nothing
if Xw_GetB(GetTriggerPlayer(),GetEventPlayerChatString(),"17518934611964579355344299871") then
if GetPlayerTechCountSimple($5230314C,GetTriggerPlayer())==0 then
call DisplayTextToPlayer(GetTriggerPlayer(),0,0,"|CffFFFF00系统:|r|Cff00FF00


IP属地:河南1楼2019-10-02 17:56回复