|
talonnb Apprentice
Joined: 30 Oct 2004 Posts: 127
|
Posted: 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? |
|
|
|
talonnb Apprentice
Joined: 30 Oct 2004 Posts: 127
|
Posted: Fri Jul 13, 2007 3:37 pm |
Other applications like, ordering pets around in a Mud through tells, stuff like that.
|
|
|
|
Thinjon100 Apprentice
Joined: 12 Jul 2004 Posts: 190 Location: Canada
|
Posted: 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! :) |
|
|
|
talonnb Apprentice
Joined: 30 Oct 2004 Posts: 127
|
Posted: 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. |
|
|
|
talonnb Apprentice
Joined: 30 Oct 2004 Posts: 127
|
Posted: Fri Jul 13, 2007 7:24 pm |
I figured it out so you know.
This worked well with Var
%pathexpand( %walk( %1)) |
|
|
|
|
|