Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
gasolin
Novice


Joined: 17 Aug 2002
Posts: 31
Location: Denmark

PostPosted: 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
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: 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
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
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

© 2009 Zugg Software. Hosted by Wolfpaw.net