魔兽地图编辑器吧 关注:64,836贴子:3,833,915
  • 4回复贴,共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回复
    进游戏测试就知道了


    IP属地:广东来自Android客户端2楼2019-10-02 18:02
    回复
      用我的插件寫啊


      IP属地:广东来自iPhone客户端3楼2019-10-02 21:29
      回复
        你到底想问什么?
        1.先说明你这段代码是想实现的功能,如果你连代码要实现的功能都不知道,请把代码截全,我们不是上帝视角不能把看不到的代码都给你补完,如果有人有给你补完的空闲和技术,那他多半也是收费的.
        2.截也要在一段功能的意义上把代码截全,不全的部分起码要用注释补充说明,你这个只有if没有endif的代码拿出来问实在是……


        IP属地:广东4楼2019-10-02 22:13
        回复


          IP属地:四川来自Android客户端5楼2019-10-02 23:49
          回复