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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Josiah.Bruns
Apprentice


Joined: 04 Mar 2007
Posts: 103

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


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: 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.
Reply with quote
hadar
Apprentice


Joined: 30 Aug 2009
Posts: 198
Location: my apt, in california

PostPosted: 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
Reply with quote
Josiah.Bruns
Apprentice


Joined: 04 Mar 2007
Posts: 103

PostPosted: 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?
Reply with quote
hadar
Apprentice


Joined: 30 Aug 2009
Posts: 198
Location: my apt, in california

PostPosted: 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
_________________
if you build it they will come, assuming that they have not already come to build it
Aardwolf Bootcamp
My youtube channel
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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