[心得] MUSHclient - 快速開關觸發/觸發群組

看板mud_sanc作者 (浜の)時間12年前 (2011/12/24 14:31), 編輯推噓1(101)
留言2則, 2人參與, 最新討論串1/1
┌──────────────────────────────────┐ │操作環境:MUSHclient 4.73(較舊版本不保證能夠正常運行)使用語言:Lua│ └──────────────────────────────────┘ 這篇說明一下如何快速開關觸發,包括: 1、快速開關單一觸發 2、快速開關觸發群組 3、做出類似 zMUD 中右下角的小手槍功能 ps.以上三種是我個人的用法,也許有其他更快更好的方法尚待發掘~ ===============1、快速開關單一觸發=============== 1.複製下方紅色虛線內的部分 2.接著到 MUSHclient 按 Shift+Ctrl+9 開啟 aliases 視窗 3.點下方的 Paste 鍵貼上就行了 使用方法: 在視窗輸入 t+ xxx 會打開名稱為 xxx 的觸發,輸入 t- xxx 則關閉觸發 ------------------------------------------------------------------ <aliases> <alias match="^t\+ (.+)$" enabled="y" group="trigger_switch" regexp="y" send_to="12" sequence="100" > <send>if IsTrigger ("%1") ~= 0 then Note ("%1" .. " 名稱的觸發不存在") else EnableTrigger ("%1", true) ColourNote ("white", "green", "打開 " .. "%1" .. " 名稱的觸發") end</send> </alias> <alias match="^t\- (.+)$" enabled="y" group="trigger_switch" regexp="y" send_to="12" sequence="100" > <send>if IsTrigger ("%1") ~= 0 then Note ("%1" .. " 名稱的觸發不存在") else EnableTrigger ("%1", false) ColourNote ("white", "green", "關閉 " .. "%1" .. " 名稱的觸發") end</send> </alias> </aliases> ------------------------------------------------------------------ ===============2、快速開關觸發群組=============== 1.複製下方紅色虛線內的部分 2.接著到 MUSHclient 按 Shift+Ctrl+9 開啟 aliases 視窗 3.點下方的 Paste 鍵貼上就行了 使用方法: 在視窗輸入 tg+ xxx 會打開名稱為 xxx 的觸發群組,輸入 tg- xxx 則關閉觸發群組 ------------------------------------------------------------------ <aliases> <alias match="^tg\+ (.+)$" enabled="y" group="trigger_switch" regexp="y" send_to="12" sequence="100" > <send>if EnableTriggerGroup ("%1") == 0 then Note ("%1" .. " 類別的觸發不存在") else EnableTriggerGroup ("%1",true) ColourNote ("white", "blue", "打開 " .. "%1" .. " 類別的觸發") end</send> </alias> <alias match="^tg\- (.+)$" enabled="y" group="trigger_switch" regexp="y" send_to="12" sequence="100" > <send>if EnableTriggerGroup ("%1") == 0 then Note ("%1" .. " 類別的觸發不存在") else EnableTriggerGroup("%1",false) ColourNote ("white", "blue", "關閉 " .. "%1" .. " 類別的觸發") end</send> </alias> </aliases> ------------------------------------------------------------------ ===========3、類似 zMUD 中右下角的小手槍功能============ 1.複製下方紅色虛線內的部分 2.接著到 MUSHclient 按 Shift+Ctrl+9 開啟 aliases 視窗 3.點下方的 Paste 鍵貼上就行了 4.按 Shift+Ctrl+2 打開 Macros 5.選二個你喜歡的鍵(eg. F3, F4),點二下打開 F3 鍵的設定內容 底下填入「enable_triggers」,F4 鍵則填入「disable_triggers」 確定之後你就可以用 F3 與 F4 鍵來控制觸發的開關啦! ps.這裡的開關和按 Shift+Ctrl+8 打開觸發視窗勾選/取消勾選底下的 Enable Triggers 是一樣的效果,只是做成按鍵比較方便 ------------------------------------------------------------------ <aliases> <alias match="disable_triggers" enabled="y" group="trigger_switch" send_to="12" sequence="100" > <send>SetOption("enable_triggers",0) ColourNote("white", "green", "==========觸發關閉==========")</send> </alias> <alias match="enable_triggers" enabled="y" group="trigger_switch" send_to="12" sequence="100" > <send>SetOption("enable_triggers",1) ColourNote("white", "green", "==========觸發開啟==========")</send> </alias> </aliases> ------------------------------------------------------------------ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 123.241.194.17

12/25 01:28, , 1F
推+1
12/25 01:28, 1F

12/26 00:07, , 2F
樓上是zmud高手 >"<
12/26 00:07, 2F
文章代碼(AID): #1EzN7Jre (mud_sanc)