|
Josiah.Bruns Apprentice
Joined: 04 Mar 2007 Posts: 103
|
Posted: Tue Nov 03, 2009 8:03 pm
path inside a path? |
is it possible to use a path inside a path?
like say i have a path to the zoo
and then i want a path to the rhino in the zoo.
.zoo n
is there a way to make this work so i can go forward and backwards with the path command. |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Wed Nov 04, 2009 5:23 pm |
Not with paths. You would need to use aliases for this:
Code: |
#ALIAS rhino {.3s}
#ALIAS zoo {.3e;rhino} |
But this won't handle going backwards. Someone else might be able to come up with a more complex script to handle this though. |
|
|
|
hadar Apprentice
Joined: 30 Aug 2009 Posts: 198 Location: my apt, in california
|
Posted: Wed Nov 04, 2009 8:10 pm |
lets see if ill end up getting flames for this:P ... its not exactly a path in a path but it will help make "paths in paths" easier to an extent you still will end up making an extra path but now its made kinda quicker (i bet there is a better way to do this i just made it with my experiance)
Code: |
#ALIAS newpath {$pathline=%exec(.%2);#path %1 %replace($pathline,"|",%char( 59))%char( 59)%3} |
to work it you would type as follows newpath <areaname> <oldpath> <new coords>
so as a working example you would do newpath zoorhino zoo 3s
as a note this will only work if you have a path already defined |
|
|
|
Josiah.Bruns Apprentice
Joined: 04 Mar 2007 Posts: 103
|
Posted: Fri Nov 06, 2009 7:33 pm |
thanks zugg that gives me some idea's.
an hadar why does it say you only have 14 posts? i see you posting more than that? |
|
|
|
hadar Apprentice
Joined: 30 Aug 2009 Posts: 198 Location: my apt, in california
|
Posted: Sat Nov 07, 2009 2:03 pm |
*shrugs*
im not new the the forms just lost my old account, and i recently got into learning more about cmud so i try to help answer more questions as best as i can |
|
|
|
|
|