变量请教
#var fangxiang {east|southeast|south|southwest|west|northwest|north|northeast|eastup|southup|westup|northup|eastdown|southdown|westdown|northdown|up|dowm|enter|out}#var fangxiangb {west|northwest|north|northeast|east|southeast|south|southwest|westdown|northdown|eastdown|southdown|westup|northup|eastup|southup|down|up|out|enter}
#fun back %item(@fangxiangb,%ismember(%1,@fangxiang))
上面是别人的写的
这back怎么看不懂,
定义函数及变量赋值里可以用[]吗?好像只有462可以啊,但462不支持item
求高手解释下#fun back
另
temp_path=%item( @exit, 1)
#var path {@temp_path}
path赋值也没看懂
北大侠客行MUD,中国最好的MUD 哪里弄来的代码?被加进html的东西了,把[]和里面的东西无视掉就能看懂了 以前的
http://pkuxkx.com//forum/viewthread.php?tid=8264&extra=&highlight=%B1%E9%C0%FA&page=1
关于遍历
thank.... #fun back %item(@fangxiangb,%ismember(%1,@fangxiang))
这个应该是
#fun back %item@fangxiangb,%ismember(%1,@fangxiang%item(@fangxiangb,%ismember(%1,@fangxiang)) 经测试为
#fun back %item( @fangxiangb, %ismember( %1, @fangxiang))
已搞定
现在可以自动走迷宫了
thank all
页:
[1]