|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4692 Location: Pensacola, FL, USA
|
Posted: 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 |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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.
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
|
|