|
楼主 |
发表于 2010-6-24 16:53:15
|
显示全部楼层
回复 7楼 的帖子
这个是没写全。还有一个触发:
Pattern:- 设定环境变量:action = "relocation"$
复制代码 Code:- coder:#wa 800
- #if (@room="黑沼") {.enw2sw;#wa 1000;look} {
- #if (@room="树林") {#10 n;#3 e;#wa 1000;look} {#if (%numitems(@chukou2)=1) {nextstep=@chukou2} {nextstep=%item(@chukou2,%random(1,%numitems(@chukou2)))}
- #execute @nextstep}}
复制代码
反向函数:- %if(%1=east,west,%if(%1=west,east, %if(%1=south,north,%if(%1=north, south, %if(%1=northeast,southwest,%if(%1=northwest,southeast,%if(%1=southwest,northeast,%if(%1=southeast,northwest,%if(%1=up,down,%if(%1=down,up,%if(%1=southup,northdown,%if(%1=southdown,northup,%if(%1=northup,southdown,%if(%1=northdown,southup,%if(%1=westup,eastdown,%if(%1=westdown,eastup,%if(%1=eastup,westdown,%if(%1=eastdown,westup))))))))))))))))))
复制代码
[ 本帖最后由 killunix 于 2010-6-24 04:56 PM 编辑 ] |
|