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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
kjaerhus
Magician


Joined: 18 Dec 2006
Posts: 317
Location: Denmark

PostPosted: Fri Apr 02, 2010 7:31 pm   

Map question: Is there a way to pick up current room number?
 
I use two characters within the same package and I want to register their position so it automatically loads when I log in. Problem is that I don't get the position on the map right. There is some option on the map where I can choose character but I can't figure out what is does - it doesn't do what I want anyway.

Perhaps there are better ways?
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Fri Apr 02, 2010 8:43 pm   
 
I'm not sure I understand what you want. Are you saying you use the same login session for two different characters? Do you use different Location objects for them? That would be the way to do it. Use #LOCATION to create a new location object or to specify which one is you. Then you can use %roomnum() to find out where that location object is, or set it somewhere. Use the #TRACK command to specify which location the map should follow.
Reply with quote
Zugg
MASTER


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

PostPosted: Fri Apr 02, 2010 10:40 pm   
 
Rahab is correct. The #LOC for a window determines the character/location used for all of the %roomxxx scripting functions, like %roomnum. The #TRACK tells the mapper which #LOC to track/follow, and is the same as what is shown in the bottom-left of the mapper window itself.
Reply with quote
kjaerhus
Magician


Joined: 18 Dec 2006
Posts: 317
Location: Denmark

PostPosted: Sat Apr 03, 2010 8:29 am   
 
Ok, so if I use these two commands I can tell the map to follow a certain dot. And the mapper seems to know my two characters already so that's fine. There are a few things puzzling me though. There seem to be a blue dot stuck then when I move from my original spot. Like a ghost or something at the location I was at the beginning.

And how do I delete red dog by the way? (tried creating a marker with #LOCATION and now I'm stuck with it or so it seems) Confused
Reply with quote
Zugg
MASTER


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

PostPosted: Sat Apr 03, 2010 5:39 pm   
 
You can use the View/Locations menu to display all of the locations you have in various windows. If a blue dot is being left behind, then there is still another location object defined somewhere. You can also view location objects in the normal Package Editor using the View/Show/Locations menu option.

To delete a location, use the View/Locations window, or use the #LOC command to print all locations, and then #UNLOC to remove a named location. But if you didn't give it a name, then the View/Locations window is the only way to remove it.
Reply with quote
kjaerhus
Magician


Joined: 18 Dec 2006
Posts: 317
Location: Denmark

PostPosted: Sat Apr 03, 2010 9:36 pm   
 
That's funny. I see three locations in the package editor but typing #LOCATION reveals nothing. I seem to remember that I had a similar problem about threads. Can someone think of a reason?
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sun Apr 04, 2010 2:04 am   
 
Corrupted settings. Without more specific info, can't really help you.
_________________
EDIT: I didn't like my old signature
Reply with quote
kjaerhus
Magician


Joined: 18 Dec 2006
Posts: 317
Location: Denmark

PostPosted: Sun Apr 04, 2010 7:14 am   
 
Not sure how I could be more specific about this though, but as long as I can see settings in another way I guess it's fine. I can't see threads either by just typing #THREAD. Always been like this so I doubt it has anything to do with settings really. Is there an alternative way to see threads too by the way?
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Mon Apr 05, 2010 1:28 am   
 
Are you by chance putting your commands into a different window than your main session window?
Reply with quote
kjaerhus
Magician


Joined: 18 Dec 2006
Posts: 317
Location: Denmark

PostPosted: Mon Apr 05, 2010 9:06 am   
 
No, I only have a command line in my main session window. I haven't digged too hard into the problem lately though so don't use too much time figuring out what the problem can be. I'll take it up later perhaps. Right now it seems I am the only one with this problem anyway...
Reply with quote
kjaerhus
Magician


Joined: 18 Dec 2006
Posts: 317
Location: Denmark

PostPosted: Mon Apr 05, 2010 10:55 am   
 
The following seem to work for me with two character on the same map:

Code:
#TRACK X
#LOCATION X %roomnum()


...for character X. I run this every time I start up. The last line I do to force the map to actually show the current zone and not just the one I left last time I played. However I still find some strange markers. One is the marker of my other character. I can live with that though - might even be useful - but I also get one at the spot where I start from when I open my sesison. That one I can't figure out where comes from. According to the editor I only have two markers but there are three on my map - well at least... Wink

Anyone experienced something like this?
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum 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