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
chris-74269
Magician


Joined: 23 Nov 2004
Posts: 364

PostPosted: Fri Jun 12, 2009 12:22 am   

Location Suggestion
 
It would be very convenient if a location associated with the last active window was active for the map. Basically if I have one map shared between 2 characters, and if I want to speed walk by clicking on the map with 1, I need to switch the location either via #track or by clicking the selection on the bottom. It would be much more convenient and I think intuitive if you could choose for the location used to be that associated with the last window with focus.
Reply with quote
Zugg
MASTER


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

PostPosted: Fri Jun 12, 2009 12:58 am   
 
Yes, that is actually the intent. It was supposed to work this way, but is currently bugged. Clicking on a session window that has an active track location is supposed to bring the map window to the front and then center on the tracked location and change the tracking location of the map window. This doesn't work at all right now. If you have multiple map windows, it doesn't focus the correct window. And if you have a shared map window, it doesn't update the tracking. This is on my high-priority bug list for the next version already.

Also, for other people reading this, you can avoid this intended behavior by just not having a #track object in a window. You can still have an active location object for scripting via #loc. If there isn't a location assigned via #track, then nothing will be switched in the map when you click on a window.
Reply with quote
chris-74269
Magician


Joined: 23 Nov 2004
Posts: 364

PostPosted: Fri Jun 12, 2009 3:50 am   
 
Nod, The workaround I'm using now is:

#oninput {(*)} {#if (%ismember(%1,@dirconvertlong(%roomexits))) {~%1;#withloc location {#move %1}}

@dirconvertlong is just a function with %subregex($direction,"^h$",nw), ect... in it to convert the single chars to sw,ne,sw,se
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