當前位置:編程學習大全網 - 熱門推薦 - 用mpqmaster--如何修改魔獸rpg地圖的觸發器?

用mpqmaster--如何修改魔獸rpg地圖的觸發器?

mpqmaster這個不推薦使用

下載個魔獸改圖壹條龍(裏面有我們需要的火龍hke和編輯jass的JassCraft)或者直接下載個火龍hke?JassCraft用記事本也行

用火龍hke解壓妳要的文件

打開裏面的war3map.j?記事本可以JassCraft也可以

然後搜索function?InitCustomTriggers?takes?nothing?returns?nothing這句鳥語

比如我們搜到這句

function?InitTrig_Melee_Initialization?takes?nothing?returns?nothing

set?gg_trg_Melee_Initialization?=?CreateTrigger(?)

call?TriggerAddAction(?gg_trg_Melee_Initialization,?function?Trig_Melee_Initialization_Actions?)

endfunction

//===========================================================================

function?InitCustomTriggers?takes?nothing?returns?nothing

call?InitTrig_Melee_Initialization(?)

endfunction

接下來

復制call?CheatGold()到call?InitTrig_Melee_Initialization(?)的下邊

復制

function?CheatGoldActions?takes?nothing?returns?nothing

call?SetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD,GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD)+1000)

endfunction

function?CheatGold?takes?nothing?returns?nothing

local?trigger?CheatGoldTrigger=CreateTrigger()

local?triggeraction?CheatGoldTriggerAction

call?TriggerRegisterPlayerChatEvent(CheatGoldTrigger,Player(0),"-gold",true)

call?TriggerRegisterPlayerChatEvent(CheatGoldTrigger,Player(1),"-gold",true)

call?TriggerRegisterPlayerChatEvent(CheatGoldTrigger,Player(2),"-gold",true)

call?TriggerRegisterPlayerChatEvent(CheatGoldTrigger,Player(3),"-gold",true)

set?CheatGoldTriggerAction=TriggerAddAction(CheatGoldTrigger,function?CheatGoldActions)

set?CheatGoldTrigger=null

set?CheatGoldTriggerAction=null

endfunction

到function?InitCustomTriggers?takes?nothing?returns?nothing

這句的上邊

比如復制好就是

function?InitTrig_Melee_Initialization?takes?nothing?returns?nothing

set?gg_trg_Melee_Initialization?=?CreateTrigger(?)

call?TriggerAddAction(?gg_trg_Melee_Initialization,?function?Trig_Melee_Initialization_Actions?)

endfunction

function?CheatGoldActions?takes?nothing?returns?nothing

call?SetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD,GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD)+1000)

endfunction

function?CheatGold?takes?nothing?returns?nothing

local?trigger?CheatGoldTrigger=CreateTrigger()

local?triggeraction?CheatGoldTriggerAction

call?TriggerRegisterPlayerChatEvent(CheatGoldTrigger,Player(0),"-gold",true)

call?TriggerRegisterPlayerChatEvent(CheatGoldTrigger,Player(1),"-gold",true)

call?TriggerRegisterPlayerChatEvent(CheatGoldTrigger,Player(2),"-gold",true)

call?TriggerRegisterPlayerChatEvent(CheatGoldTrigger,Player(3),"-gold",true)

set?CheatGoldTriggerAction=TriggerAddAction(CheatGoldTrigger,function?CheatGoldActions)

set?CheatGoldTrigger=null

set?CheatGoldTriggerAction=null

endfunction

//===========================================================================

function?InitCustomTriggers?takes?nothing?returns?nothing

call?InitTrig_Melee_Initialization(?)

call?CheatGold()

endfunction

然後保存註意別動其他的?用火龍打開地圖?把war3map.j替換掉

然後重壓縮就行了

進入遊戲輸入-gold就加1000的錢?只限玩家1234

球采納?謝謝?

有不懂繼續問

  • 上一篇:韓雪個人資料及簡歷(了解這位實力派女演員的成長歷程和代表作品)
  • 下一篇:ipod touch2 可不可以下載應用軟件,比如詞典翻譯之類?
  • copyright 2024編程學習大全網