|
orcsoul Beginner
Joined: 05 Sep 2004 Posts: 10
|
Posted: Wed Mar 23, 2005 7:58 pm
How to make 'child' windows? |
Not sure how to ask this question or to search for it as I'm quite sure it's been asked in the past.. so forgive my asking it again.
I'd like to know how to make a child window for a MUD that filters out channel talking from the rest of the usual MUD scrolling like combat, moving, etc...
So on the dominant portion of the screen I'd have your usual MUD spam from combat, moving, etc... and then elsewhere either anchored or hovering or something like that, a separate window that displays messages from the various channels on the MUD.
Can anybody point me in the right direction here? |
|
|
|
DeReP Adept
Joined: 14 Jun 2003 Posts: 222 Location: Chile
|
Posted: Wed Mar 23, 2005 8:58 pm |
You can make a new window using the #WINDOW command, eg: #WINDOW Comm will make a new "child" window named Comm.
now to send the text to that window you have to use #CAPTURE command
eg:
#TRIGGER {tells you, '} {#CAPTURE Comm}
will send every line containing the " tells you, ' " text to the Comm window autatically, same with other channels, depending on how many your mud uses. |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Wed Mar 23, 2005 11:34 pm |
#WINDOW works much better, but if you want a bit more control over features and position you can play with #MAKEWINDOW as well. One word of warning, though, the stayontop feature doesn't work at creation (it's supposed to work and ZMud I believe does run the associated code properly, but because of a windows bug with multiple top-level windows the new window won't appear on top).
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
Turtlemell Beginner
Joined: 31 Mar 2005 Posts: 12
|
Posted: Thu Mar 31, 2005 5:29 pm |
i saw this, so I tried it.. did #WINDOW Tells, and then #TRIGGER {tells you, '} {#CAPTURE Tells}
it didnt work, so I tried #TRIGGER {tells you, "} {#CAPTURE Tells} since my game shows like this... tells you, "blah blah" still nothing going into the window |
|
|
|
Kiasyn Apprentice
Joined: 05 Dec 2004 Posts: 196 Location: New Zealand
|
Posted: Thu Mar 31, 2005 5:54 pm |
try #TRIGGER {tells you} {#CAPTURE Tells} ?
|
|
|
|
DeathDealer Adept
Joined: 20 Jul 2004 Posts: 268
|
Posted: Thu Mar 31, 2005 6:46 pm |
This is my chat capture:
Code: |
#CLASS {Chat Windows} {enable}
#TRIGGER "Clan3" {^You tell the CLAN:} {#window clan %time( hh:nn) %trigger}
#TRIGGER "Clan2" {tells the CLAN:} {#window clan %time( hh:nn) %trigger}
#TRIGGER "Clan1" {CLAN ANNOUNCEMENT: *.} {#window clan %time( hh:nn) %trigger}
#TRIGGER "Group" {~(Group~) *} {#window group %time( hh:nn) %trigger}
#TRIGGER "Spouse" {~(Spouse~)} {#window spouse %time( hh:nn) %trigger}
#TRIGGER "FTalk2" {~(Friend~)} {#window ftalk %time( hh:nn) %trigger}
#TRIGGER "FTalk1" {^You tell your friends:} {#window ftalk %time( hh:nn) %trigger}
#TRIGGER "Clan4" {~) CLAN:} {#window clan %time( hh:nn) %trigger}
#TRIGGER "Tells2" {^* - %w tells you '*'} {#window tells %time( hh:nn) %trigger}
#TRIGGER "Tells1" {You tell %w '*'} {#window tells %time( hh:nn) %trigger}
#CLASS 0 |
|
|
_________________
|
|
|
|
|
|