觸發相關:Trigger related commands
04-01 COLOR
中文:最後一行上色。
原文:change color of the last line of text
格式:#color 顏色
範例:#trigger {tells the group} {#color red}
將tells the group染成紅色,這個指令會整行染色,除了顏色
,也能使用high(亮彩),blink(閃爍),和underline(底線)
bold(粗體),但要加上","將其隔開。也能使用數字。
#trigger {tells the group} {#color green,blink,bold,high}
將tells the group染成亮綠色,並加上閃爍和粗體。
#trigger {tells the group} {#color 133}
將tells the group染成黑底紫色。號碼所代表的顏色請參照《
zMUD #bu 指令格式》最底附錄,1-128為字色與背景色所有組合
,129-256為粗體,257-384加上底線,385-512為粗體加底線,
513-640為閃爍,641-768為粗體閃爍,769-896為底線與閃爍屬
性,897-1024為粗體閃爍底線三屬性。
04-02 CW
中文:觸發符合的部分上色。
原文:color the matched word on the last line
格式:#cw 顏色
範例:#trigger {tells the group} {#cw red}
同上例,上色,不過只上色於tells ther goup這三個單字。
04-03 PCOL
中文:部分行上色。
原文:color part of the line
格式:#pcol color XStart XEnd YStart YEnd
範例:
XStart:上色起始字。
XEnd:上色結尾字。
YStart:似乎是指定第幾行,相對於當行而言。
YEnd:同上。
沒用過也不會用,5.55版沒有。
04-04 HIGHLIGHT
中文:強調最後一行。
原文:highlight the last line of text
格式:#highlight
範例:#trigger {tells the group} {#highlight}
直翻是高亮,實際上是整行改成粗體。
04-05 GAG
中文:刪除一行。
原文:remove last line from screen
格式:#gag number
範例:#trigger {tells the group} {#gag 5}
刪除包含tells the group這行,和接下來的4行。
#trigger {tells the group} {#gag -5}
刪除不含tells the group這行,往上5行。
不指定行數,就是刪除指定當行。
04-06 UNGAG
中文:停止刪除該行。
原文:prevent the line from being gagged
格式:#ungag
範例:#trigger {tells the group} {#gag}
#trigger {windman} {#ungag}
目前感覺有用的地方,就是過濾用的白名單,當tells the group
無差別的被刪掉後,如果遇到windman tells the group的時候,
會在#ungag的作用下被顯示出來。
04-07 GAGON
中文:開啟gag。
原文:turn on gagging of text
格式:#gagon
範例:#gagon
使用後,接下來的訊息會全部隱藏起來,畫面看來起就像凍住一
樣,不過觸發該判斷的還是會判斷。
4-08 GAGOFF
中文:關閉gag。
原文:turn off gagging of text
格式:#gagoff
範例:#gagoff
有打開就有關上。就是解除#gagon的指令。
04-09 GAGBLOCK
中文:刪除一整塊文字gag。
原文:a block of text
格式:#gagblock
範例:#gagblock
使用後,會隱藏接下來的訊息,直到收到空白行為止。實用上,
一定會收到空白行而自解,要自行解除的話,#say,#show都可以。
04-10 SUBSTITUTE
中文:取代符合的文字。
原文:replace matching text
格式:#substitute {string} {string}
範例:#trigger {你的技能,} {#sub {%time}}
將"你的技能",改成當時的時間。
#sub {*({你的技能|你技能中})(*)} {{%time%1%2}}
將"你的技能"保留下來,在前面加上時間。
04-11 PSUB
中文:取代部分行。
原文:substitute text in part of the line
格式:#PSUB text [XStart] [XEnd] [YStart] [YEnd]
範例:#TRIGGER {(%w) tells you} {#PSUB "[%1]" %x1}
沒用過也不會用,5.55版應該沒有。
04-12 T+
中文:開啟類別。
原文:turn on a class or specific trigger
格式:#t+ classname
7.21 #T+ classname/id [type]
範例:#t+ blood
開啓名為blood的機器人群組。7.21版可以指定要開關機器人
的哪個元件。但要填上類別比較不易混淆。
04-13 T-
中文:關閉類別。
原文:turn off a class or specific trigger
格式:#t- classname
7.21 #T+ classname/id [type]
範例:#t+ blood
關閉名為blood的機器人群組。7.21版可以指定要開關機器人
的哪個元件。但要填上類別比較不易混淆。
04-14 CLASS
中文:啟動或停止類別。
原文:enable or disable a class
格式:#class classname state|options
範例:#class blood 1
效果同#t+ blood。在5.55裡,只有開關和建立類別的功能。
04-15 SETPROMPT
中文:由MUD的提示列抓資料。
原文:capture values from the MUD prompt
格式:#SETP string varname [varname...]
範例:假設有提示列如下:
<100/150hp 50/60ma 90/100mv>
那觸發格式如下:
#SETPROMPT "<" hp maxhp mana maxmana mv maxmv
那些hp maxhp mana maxmana...,是變數名。
沒用過也不會用,不是zMUD版本問題,是很少有MUD有提示列。