|
ToyMage Apprentice
Joined: 01 Sep 2005 Posts: 120
|
Posted: 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 |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4689 Location: Pensacola, FL, USA
|
Posted: Sat Nov 26, 2005 2:59 pm |
#MARK
enter in all the directions manually (it doesnt like macroed movement)
#PATH Temple |
|
_________________ Discord: Shalimarwildcat |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
|
ToyMage Apprentice
Joined: 01 Sep 2005 Posts: 120
|
Posted: Tue Nov 29, 2005 9:57 am |
I was hoping there was some command to save directly like ALIAS...
#AL fs {fill waterskin statue} |
|
|
|
Slaem Apprentice
Joined: 20 Sep 2005 Posts: 135
|
Posted: 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 |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
|
Taz GURU
Joined: 28 Sep 2000 Posts: 1395 Location: United Kingdom
|
Posted: 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 :) |
|
|
|
Slaem Apprentice
Joined: 20 Sep 2005 Posts: 135
|
Posted: 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} |
|
|
|
Taz GURU
Joined: 28 Sep 2000 Posts: 1395 Location: United Kingdom
|
Posted: 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 :) |
|
|
|
|
|