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
ToyMage
Apprentice


Joined: 01 Sep 2005
Posts: 120

PostPosted: Sat Nov 26, 2005 7:59 am   

PATH SAVING
 
Hi again,

I got the following saved in my variable @DIRECT "nneeewnnwnww"

I was wondering how can i save the above direction into a Path directly?

#PA TEMPLE @DIRECT?

it doesn't work....

Anyone know how to do this?

Mage
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4689
Location: Pensacola, FL, USA

PostPosted: Sat Nov 26, 2005 2:59 pm   
 
#MARK
enter in all the directions manually (it doesnt like macroed movement)
#PATH Temple
_________________
Discord: Shalimarwildcat
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sat Nov 26, 2005 5:52 pm   
 
Seems to me it'd be easier just to create a new Path in the Settings Editor and copy and paste the contents of the variable. He's only using the cardinal directions (NSEW), after all.
_________________
EDIT: I didn't like my old signature
Reply with quote
ToyMage
Apprentice


Joined: 01 Sep 2005
Posts: 120

PostPosted: Tue Nov 29, 2005 9:57 am   
 
I was hoping there was some command to save directly like ALIAS...

#AL fs {fill waterskin statue}
Reply with quote
Slaem
Apprentice


Joined: 20 Sep 2005
Posts: 135

PostPosted: Tue Nov 29, 2005 8:35 pm   
 
#ALIAS makepath {
#LOOP %eval( %len( @direct)-1),1 {
#VAR direct {
%insert( "|", @direct, %eval( %i+1))
}
}
#MARK
#FORALL @direct {%i}
#PATH %1
}

Syntax Colourizer
______________
Results:

makepath temple <enter>
n
n
e
e
e
w
n
n
w
n
w
w

.2n3ew2nwn2w assigned to temple
_________________
Show your love.
Support Zugg Software!
Donate to zugg@zuggsoft.com with PayPal Send Money.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Tue Nov 29, 2005 8:53 pm   
 
Sneaky, sneaky. While Slaem's version should work, this ability to assign path directions to a named path variable/alias without having to walk the path is already built into the #PATH command. However, the only mention of this is contained within the Command Wizard; the helpfile that ships with 7.21b and the online version both omit this ability completely.

#PATH pathname [directions]

Directions are optional.
_________________
EDIT: I didn't like my old signature
Reply with quote
Taz
GURU


Joined: 28 Sep 2000
Posts: 1395
Location: United Kingdom

PostPosted: Wed Nov 30, 2005 4:37 pm   
 
I wonder what version ToyMage is using because when I tested #pa temple @direct it worked fine, I obviously had to save a variable called direct with some directions in it first. Of course like you say if you don't want the variable then #pa temple nneeewnnwnww works fine too.
_________________
Taz :)
Reply with quote
Slaem
Apprentice


Joined: 20 Sep 2005
Posts: 135

PostPosted: Wed Nov 30, 2005 9:49 pm   
 
I put up the other alias since he said #PATH name directions didn't work. A direct/easy alias obviously would be:

#ALIAS makepath {#PATH %1 @direct}
_________________
Show your love.
Support Zugg Software!
Donate to zugg@zuggsoft.com with PayPal Send Money.
Reply with quote
Taz
GURU


Joined: 28 Sep 2000
Posts: 1395
Location: United Kingdom

PostPosted: Thu Dec 01, 2005 12:01 am   
 
I'd like to know why it doesn't work since the latest version with clean install has no such problem.
_________________
Taz :)
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