Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ Lua ➜ Help with a poppup window

Help with a poppup window

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Mccane   (28 posts)  Bio
Date Sat 01 Sep 2007 07:25 AM (UTC)
Message
Hi! I'm relatively new to Lua, and I'm looking for some pointers on how to do this (I don't know whether Lua is even capable of this, if it isn't, pointing me in the right direction would be appreciated). My idea for a game I play is to take text with a constant prefix and omit it from the main game window output, and send it to a poppup window.

An easy way I'd like to put this is say I'm talking with a friend named Bob. I would like everything Bob says removed from the output and sent to a mini-window or pane or some sort of separate window. So I was thinking of setting a trigger of

Bob tells you, "*"
or even globalizing it for everyone
* tells you "*"
and omitting this from output, and sending the line to the poppup window. I could then keep track of conversations separately (I don't care if everyone that pages me is in the same miniwindow). I also would plan on making it so I still type tell bob whatever in the normal window, I just want the output from the game in a separate window. Any help, pointers, or redirections to reading material would be appreciated! Thanks!
Top

Posted by Shaun Biggs   USA  (644 posts)  Bio
Date Reply #1 on Sat 01 Sep 2007 07:37 AM (UTC)
Message
MUSHclient FAQ (http://mushclient.com/faq) #23. How can I log chats etc. to another window? There's code and examples and such.

It is much easier to fight for one's ideals than to live up to them.
Top

Posted by Mccane   (28 posts)  Bio
Date Reply #2 on Sat 01 Sep 2007 09:22 AM (UTC)
Message
Interesting, I didn't know you could do that. Two things, though. When I try to copy the second code (the example that copies stuff to a separate world), it returns an error saying

Line 5: Value '14' too large in numeric attribute named 'send_to'. Range is 0 to 13. (trigger not loaded)


The second thing I was kind of hoping for was for the separate window to be visible in the same window as the game I'm on (with the screen maximized). I thought of maybe using the infobar, is it possible to add multiple lined things into, and to resize it? Thanks for replying so quickly!
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #3 on Sat 01 Sep 2007 10:43 AM (UTC)
Message
Sounds like you have an older version of MUSHclient. Version 3.83 onwards should support "14" which is "send to script (after omit)".

You should be able to have both screens visible. You can maximize MUSHclient itself, but not the individual windows inside it.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


15,947 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.