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


Joined: 30 Oct 2004
Posts: 127

PostPosted: Fri Jul 13, 2007 4:43 am   

Getting paths from mapper.
 
I have a mapquery that comes up and shows a room of the person I sense, then I can click GOTO if I want to automatically walk there.

My question is, is there a way I can capture that path and use it to a string or something to use in other applications?
Reply with quote
talonnb
Apprentice


Joined: 30 Oct 2004
Posts: 127

PostPosted: Fri Jul 13, 2007 3:37 pm   
 
Other applications like, ordering pets around in a Mud through tells, stuff like that.
Reply with quote
Thinjon100
Apprentice


Joined: 12 Jul 2004
Posts: 190
Location: Canada

PostPosted: Fri Jul 13, 2007 3:52 pm   
 
If you've got the %roomvnum() of your target room saved somewhere, try %path(@roomvnumvar) That will give you the dot-syntax path from where you are in the mapper to that room. You can parse that as you'd like.
_________________
If you're ever around Aardwolf, I'm that invisible guy you can never see. Wizi ftw! :)
Reply with quote
talonnb
Apprentice


Joined: 30 Oct 2004
Posts: 127

PostPosted: Fri Jul 13, 2007 6:26 pm   
 
Thinjon100 wrote:
If you've got the %roomvnum() of your target room saved somewhere, try %path(@roomvnumvar) That will give you the dot-syntax path from where you are in the mapper to that room. You can parse that as you'd like.


How exactly can I get that to a var?

I tried #var pathname %path (%1) where I'm entering the room number.
Reply with quote
talonnb
Apprentice


Joined: 30 Oct 2004
Posts: 127

PostPosted: Fri Jul 13, 2007 7:24 pm   
 
I figured it out so you know.

This worked well with Var
%pathexpand( %walk( %1))
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