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
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sun Nov 06, 2011 1:56 am   

[3.34pro]%roomnote() returns blank from beyond the main window context
 
If the context of the call to %roomnote() originates in the main window (script execution or via commandline), %roomnote() properly returns the data found in the mapper. However, if the context originates in any other window (ie, a button click) it will return a blank value.
_________________
EDIT: I didn't like my old signature
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4692
Location: Pensacola, FL, USA

PostPosted: Sun Nov 06, 2011 9:00 am   
 
Seems that would be intentional with scoping.
Child windows have no associated map, and the map is not in a package that can be toggled on or off in the advanced window settings.
Does having the script reference the main window %item(%names,1) fix it?
_________________
Discord: Shalimarwildcat
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sun Nov 06, 2011 7:09 pm   
 
bah, stared at the CMud goat for too long and I was the one who fell over. No bug here. Embarassed
_________________
EDIT: I didn't like my old signature
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