|
本帖最后由 xsaturn 于 2014-8-18 01:02 AM 编辑
zmud7.21,写了下面的函数:
#fu direction_convert %if( %pos( s, %1)!=0, "south", %if( %pos( n, %1)!=0, "north", %if( %pos( w, %1)!=0, "west", %if( %pos( e, %1)!=0, "east", %if( %pos( "nw", %1)!=0, "northwest", %if( %pos( "ne", %1)!=0, "northeast", %if( %pos( "sw", %1)!=0, "southwest", %if( %pos( "se", %1)!=0, "southeast", %if( %pos( "enter", %1)!=0, "enter", %if( %pos( "out", %1)!=0, "out"))))))))))
用pathback储存路径list,然后想试着引用:
#var directionlist ""
#forall pathback {%additem( @direction_convert(%i), @directionlist)}
结果directionlist是空的。应该怎么写才对呢?或者有没有更方便的把短方向转成常规方向的办法?
北大侠客行MUD,中国最好的MUD |
|