作者hmml (hmml)
看板mud_sanc
标题[zMUD] 主要项目06、07、08
时间Sat Oct 13 13:07:06 2012
移除设定:Remove settings items
06-01 UNALIAS
中文:移除别名。
原文:remove an alias
格式:#unalias alias classname
范例:#unalias cc
移除cc这个别名。
06-02 UNBUTTON
中文:移除按钮。
原文:remove a button
格式:#unbutton number
范例:#unbutton 2
移除第二个按钮,不过其後的按钮,编号不会前移。
06-03 UNCLASS
中文:移除类别。
原文:removes a class
格式:#unclass classname
范例:#unclass blood
移除群组BLOOD。旗下的条目会归类到<none>下。
06-04 DELCLASS
中文:移除类别并删除其下的设定。
原文:removes a class and deletes settings
格式:#delclass classname
范例:#delclass blood
移除群组BLOOD。旗下的条目会全部删除。
06-05 UNKEY
中文:移除按键。
原文:remove a macro key
格式:#unkey key classname
范例:#unkey <F1>
移除设在F1下的指令。
06-06 UNTRIGGER
中文:移除触发。
原文:remove a trigger
格式:#untrigger {pattern} classname
范例:#untrigger {tells you}
移除触发tells you。
06-07 UNVAR
中文:移除变数。
原文:remove a variable
格式:#unvar variable classname
范例:#unvar a
移除变数a。
06-08 UNMENU
中文:移除选单。
原文:remove a speed menu item
格式:#UNM caption classname
范例:#unmenu 补血
移除"补血"这个选单项目。
06-09 UNDIR
中文:移除方向。
原文:remove a direction setting
格式:#UND direction classname
范例:#undir n
移除方向north。
06-10 UNTAB
中文:移除自动完成。
原文:remove a word from the tab list
格式:#untab word
范例:#untab fancylants
移除fancylants 这个自动完成。
06-11 KILLALL
中文:移除所有别名、按键、触发、自动完成。
原文:delete all aliases, macros, trigger actions, tab-completion words
格式:#KILLALL
范例:#killall
全删光了,小心使用。
计时器:Tick Timer
07-01 TI
中文:开启/关闭计时器。
原文:toggle the timer
格式:#TI timer-state command message-flag margin
#TI 0/1 {指令} {时间快到时是否显示讯息} {时间到前几秒显示讯息}
范例:#ts 137
#ti 1 {#2 bless} 0 5
设定一个每137秒就去bless的计时器,时间快到时不用显示讯息,
时间到前5秒显示讯息。margin对message-flag的设定没有依存性
,即使message-flag为0,margin还是可以作用。
message-flag打开後,如果margin设5秒,可以看到:
TICK IN 5 SECONDS
07-02 TS
中文:设定计时器的时间。
原文:set the time or origin of the timer
格式:#TS 秒数
范例:#ts
设定每137秒一个循环。设好就会开始倒数。
07-03 T?
中文:显示计时器剩下的时间。
原文:display time remaining in timer
格式:#t?
范例:#t?
应该用不到的东西,下指令後会显示一道讯息,或许有可能
应用它来做触发吧!
07-04 TZ
中文:计时器归零。
原文:zero the tick timer
格式:#TZ
范例:#tz
放弃目前的计时,重头开始,但不会影响计时器的开关状态。
档案:File Commands
08-01 FILE
中文:开档。
原文:open a file for reading and writing
格式:#FILE number filename
范例:#FILE 1 test.txt
打开test.txt准备读写。zMUD可以打开10个文件,文件号1~5打开
文本文件,能够按顺序读或追加,文件号6~10打开记录文件用於随
机读写。如果nuber已经用於打开的文件,则前一个文件将被关闭。
打开的文件只能位於zmud.exe所在的目录且不能是EXE,HLP和MUD文
件。
08-02 READ
中文:读档。
原文:read and execute a script from a file, or read a record from
a file
格式:#REA number filename
范例:#rea mud.txt
逐行读入并执行mud.txt。逐行读入指定的文件并执行每一行。
#file 1 mudlist.txt
#read 1 10
读入mudlist.txt的第十行
读入第n个文件的第rec个记录。文件由file命令载入。
如果n是1~5,则指定的文件是文本文件,rec表示行号,省略rec
时,读入下一行。如果n是6~10,表示是一个结构文件,指定的记
录将被读入,省略rec时,读入下一个记录。
08-03 WRITE
中文:写档。
原文:write a record to a file
格式:#wri number {value} rec
范例:#FILE 1 log.txt
#WRI 1 {logged onto Dark Castle}
添加字串logged onto Dark Castle到编号为1的文字档结尾。
#FILE 6 rec.fil
#WRI 6 {this is record 3} 3
写字串this is record 3到档案6的第3个纪录。
08-04 ERASE
中文:从硬碟中删除用#file打开的文件档案。
原文:erase a file from the disk
格式:#ERA filenumber
范例:#FILE 1 old.log
#ERA 1
删除old.log,需要先用#file命令打开。
08-05 RESET
中文:将第n个档案的指标重设为起点,档案必须用#file指令开启。 。
原文:reset the file back to the beginning.
格式:#RES n
#reset classname
范例:#res 5
把正在开启的档案5,游标位置移到第一行。
#res blood
把群组blood里的变数和触发重设为预设的状态。
#res
所有变数和触发重设为预设值。
预设值就是打开Variables编辑视窗後,每个变数中第三个栏位的值。
触发则是classes项中,打勾位置。
08-06 CLOSE
中文:依指定的编号关闭文件档,文件档必须是已用#file打开的。
原文:close a file
格式:#CL filenumber
范例:#cl 6
关闭编号第六号的已开启文档。
08-07 SEND
中文:将一个档案的内容加上前缀当作指令送到mud。
原文:send a text file to the MUD prefixed by a command
格式:#SE filename {prefix(前缀)} {postfix(後缀)}
范例:#SEND notes.txt {tell zugg}
送出档案notes.txt,并在每一行前加上tell zugg。
#SEND hello there
送出"hello there"文字,如同你自己键入它。
08-08 TYPE
中文:在萤幕显示档案内容。
原文:display all or part of a text file to the screen
格式:#TY filenumber {pattern}
范例:#FILE 1 mudlist.txt
#TYPE 1
显示mudlist.txt的全部内容。
#TYPE 1 castle
只显示mudlist.txt里包含castle文字的行
08-09 LOG
中文:开启/关闭纪录档。
原文:start a log file or toggle logging
格式:#lo filename
范例:#lo test.txt
开始将MUD的所有输出记入test.txt
#lo
开关记录,如果正在记录,该命令将停止记录,否则开始记录。
08-10 FTP
中文:执行ftp 。
原文:perform file transfers using FTP
格式:#FTP [command] [arguments]
范例:
没用过,根据说明档,它有以下指令可用:
open hostname[:port] [username] [password]
close 关闭
dir or list 显示目录或清单
cwd 显示"当前工作目录"的远端伺服器
ascii 设定传输模式为ascii
binary 设置传输模式为二进制
get filename [localname] 下载远端伺服器的档案。
put filename 上传档案到伺服器
getedit filename 下载指定的文件档,并用编辑器打开。
所以,云端机器人?
08-11 IMAGE
中文:显示图片。
原文:display an image in a popup window
格式:#IM filename
范例:#IM image.gif
在新视窗显示image.gif。
#IM
移除图片视窗。
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 220.132.196.45