|
Killfile Novice
Joined: 30 Sep 2002 Posts: 32 Location: USA
|
Posted: Thu Nov 07, 2002 10:44 pm
Multipule Windows and Variables |
Got a challenge for you people....
I've got a multi-window system set up. Text is echoed to one of several windows based on what is happening in the main mud window.
I'm trying to set up a menu system in one of the sub-windows that will initiate a command in the main window. In this case, a simple finger command...
So I right click on the persons name, select "finger" from the speed menu and I want it to execute the command finger %selword in the main window.
The problem is that %selword does not transfer, instead I get a null value for that when the echo occurs.
I though putting the value into a variable might help, but I realized I don't know how to access variable settings in another window from the main window.
Thoughts?
--Killfile |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Thu Nov 07, 2002 11:49 pm |
Main window can generally be determined by %item(%names,1) so I will use that here, if you have it specifically defined then feel free to make the substitution.
#MENU {Finger} {#EXEC {%concat(":",%item(%names,1),":","finger ",%selword)} |
|
|
|
Killfile Novice
Joined: 30 Sep 2002 Posts: 32 Location: USA
|
Posted: Fri Nov 08, 2002 12:10 am |
Thanks! That works perfectly! Now I can complete me self aware trigger set and take over the world!
:-)
--Killfile |
|
|
|
virtuous Wanderer
Joined: 08 Jan 2003 Posts: 60
|
Posted: Sun Mar 30, 2003 8:14 am |
I have a problem related to this. My main window has no name at all. I've tried setting the character's session name to something, but when it loads the .lay file it resets the window name to blank, which sets the session name in the char. database to blank.
What I am trying to do is create a status bar in a child window that uses a variable in the main window. I have searched the boards and used every permutation of trans-session variable access that's been mentioned, and none of them work. I can execute *commands* just fine, but not access variables like this. How can I do it? |
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: Sun Mar 30, 2003 8:50 am |
Try:
quote:
NAME
Syntax: #NA string
Change the name of the current window. The default name of a window is the name of the MUD character. With this command you can change the name to anything you want. This name is saved with the character.
Ton Diening |
|
|
|
virtuous Wanderer
Joined: 08 Jan 2003 Posts: 60
|
Posted: Sun Mar 30, 2003 9:16 am |
It didn't work, and I don't know why, but I'm having some new problems so I'm going to start a new thread on this. Thanks for your help.
|
|
|
|
Wrudyn Novice
Joined: 24 Mar 2003 Posts: 44 Location: USA
|
Posted: Sun Mar 30, 2003 9:49 am |
About the COM, I think Zugg confirmed it is a bug.
...Edit your post, or am I just seeing things? |
|
|
|
virtuous Wanderer
Joined: 08 Jan 2003 Posts: 60
|
Posted: Sun Mar 30, 2003 9:57 am |
Yea, I edited my post so I wouldn't have post after post after post and make a fool of myself. What exactly is the COM bug? I created a new thread that expands on the COM problems I'm having, if maybe you're willing to look at that one so I understand? :-)
|
|
|
|
|
|