|
gasolin Novice
Joined: 17 Aug 2002 Posts: 31 Location: Denmark
|
Posted: Sat May 24, 2003 7:47 am
%pathreverse() |
Hi
I have a alias name kk and is used like this
kk guard west
My value is:
#VAR getkill %1;#VAR flee %2;Back @getkill;flee @flee;#walk %pathreverse(@flee);back @getkill
This is what it sould do, put guard in #VAR getkill %1, put west in #VAR flee, back(stab) guard, flee west, e, Back guard, but it wont go back east and I have try with #noop %pathreverse(@flee) with no luck, what am I doing worng ?
Gasolin
Denmark |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sat May 24, 2003 8:10 am |
west = w(west)e(east)s(south)t(no move), so the reverse path is
nwe = n(north)w(west)e(east)
Use single-letter directions. Also use #EXEC with the function, so its result will be interpreted by zMUD.
#AL kk {#VAR getkill %1;#VAR flee %2;Back @getkill;flee @flee;#EXEC %pathreverse(@flee);back @getkill}
LightBulb
Advanced Member |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sat May 24, 2003 8:11 am |
quote:
Hi
I have a alias name kk and is used like this
kk guard west
My value is:
#VAR getkill %1;#VAR flee %2;Back @getkill;flee @flee;#walk %pathreverse(@flee);back @getkill
This is what it sould do, put guard in #VAR getkill %1, put west in #VAR flee, back(stab) guard, flee west, e, Back guard, but it wont go back east and I have try with #noop %pathreverse(@flee) with no luck, what am I doing worng ?
Gasolin
Denmark
%pathreverse() is NOT designed to (or does not yet) translate full direction names like north, south, east, and west. It's designed to translate speedwalking/path/mapper predefined directions, examples of which can be found in the System|Directions (n, s, e, w by default) and System|DirectionsDiag (h, j, k, l by default) folders.
Thus, you need to change what you put into @flee to a valid one-letter predefined direction.
li'l shmoe of Dragon's Gate MUD |
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|