Mud 版 (精华区)

发信人: Baggio (傻瓜牌生活), 信区: Mud
标  题: 巫师在线编辑                           xiha 
发信站: 哈工大紫丁香 (Tue May  4 20:32:29 1999), 转信

发信人: xiha (随风), 信区: Mud_Builder

标  题: [转载] 巫师在线编辑

发信站: 深大荔园晨风站 (Fri Apr  3 16:56:49 1998), 站内信件

【 以下文字转载自 Mud 讨论区 】

【 原文由 xiha 所发表 】

这学期新添了不少巫师,他们或多或少地对在线编辑有些不适应。

下面小弟就谈谈自己的经验,错漏之处还望各位老手不吝指教。

在东方故事2中,巫师级别如下:

   级别          男            女

(immortal)   【 仙  人 】 【 仙  女 】

(apprentice) 【巫师学徒】  【 小魔女 】

(wizard)     【 巫  师 】 【 魔  女 】

(arch)       【 大巫师 】 【 大魔女 】

(admin)      【 天  神 】 【 女  神 】

(wizard) 级别以上的可使用 edit指令,只要拥有某个目录的写权,

就可以在该目录下进行写的操作。

进入edit后,输入h,可得到下列命令的help。

Commands

--------

/       search forward for pattern

?       search backward for a pattern

=       show current line number

a       append text starting after this line

A       like 'a' but with inverse autoindent mode

c       change current line, query for replacement text

d       delete line(s)

e       replace this file with another file

E       same as 'e' but works if file has been modified

f       show/change current file name

g       Search and execute command on any matching line.

h       help file (display this message)

i       insert text starting before this line

I       indent the entire code (Qixx version 1.0)

--Return to continue--:

j       join lines together

k       mark this line with a character - later referenced as 'a

l       list line(s) with control characters displayed

m       move line(s) to specified line

n       toggle line numbering

O       same as 'i'

o       same as 'a'

p       print line(s) in range

q       quit editor

Q       quit editor even if file modified and not savedr        read file i

nto editor at end of file or behind the given lines       search and replac

eset     query, change or save option settings

t       move copy of line(s) to specified line

v       Search and execute command on any non-matching line.

x       save file and quit

w       write to current file (or specified file)

W       like the 'w' command but appends instead

z       display 20 lines, possible args are . + -

Z       display 40 lines, possible args are . + -

For further information type 'hc' where c is the command

that help is desired for.

如果还不是太清楚edit 的操作,可以先在/open下建立一个属于自己的目录。

(我就建了一个/open/apollo的目录),然后就自己试着使用edit指令中

各命令,找编辑技巧。

其实新手很快就会掌握edit的用法。

不过有些特殊符号的输入会有麻烦,新手恐怕无技可施。比如说:

1 输入 #include <ansi.h>  ,但却无任何显示,好象没输入一样。

  这时可以试着输入  ~#include <ansi.h>   ,就ok了。

2 输入  inherit ROOM;   ,但是却变成了不带符号的 inherit ROOM 

  解决方法是输入   inherit ROOM;;   就行了。

3 输入  =   时没反应,建议把zMUD的General 中a=b syntax 取消。

4 输入 ::init() 时变成了  init()  ,解决方法是输入 ::::init()

5 。。。。。 不记得还有什么了     chat* hehe

因为edit是行编辑器,如果想对程序中多处进行修改,就会觉得使用不方便,

但利用zMUD的 Edit Command Buffer可很好地解决这个麻烦,在edit状

态下 Ctrl-Enter可得到 Edit Command Buffer窗口,该窗口最爽的功能

是File菜单下的save,load,send.可以把程序存到自己的硬盘上,然后在自

己的硬盘上修改完毕后再send到mud里。(具体操作就不用我罗嗦了吧)

顺便说一句,若想给某个房间加action的话,replace_program(ROOM);

是要去掉的。

巫师可以给自己set一些环境变数,可以看/doc/help/wiz_settings 得

知用途。

深大mud的巫师还缺人,谁会C编程的且又读过ES2原码,欢迎你申请加入

我们的巫师队伍。把我们的mud搞得更好。

--

☆ 来源:.深大荔园晨风 bbs.szu.edu.cn.[FROM: www-post@linux.szu.e]

--

※ 转载:.深大荔园晨风站 bbs.szu.edu.cn.[FROM: 202.192.140.167]--

※ 转寄:.BBS 荔园晨风站 bbs.szu.edu.cn.[FROM: 172.18.32.20]


--
☆ 来源:.哈工大紫丁香 bbs.hit.edu.cn.[FROM: bin@fengyun.hit.edu.]
[百宝箱] [返回首页] [上级目录] [根目录] [返回顶部] [刷新] [返回]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:2.095毫秒