作者hmml (hmml)
看板mud_sanc
标题[zMUD] 主要项目04
时间Sat Oct 13 12:56:43 2012
触发相关: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有提示列。
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 220.132.196.45