Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
orcsoul
Beginner


Joined: 05 Sep 2004
Posts: 10

PostPosted: 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?
Reply with quote
DeReP
Adept


Joined: 14 Jun 2003
Posts: 222
Location: Chile

PostPosted: 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.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: 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
Reply with quote
Turtlemell
Beginner


Joined: 31 Mar 2005
Posts: 12

PostPosted: 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
Reply with quote
Kiasyn
Apprentice


Joined: 05 Dec 2004
Posts: 196
Location: New Zealand

PostPosted: Thu Mar 31, 2005 5:54 pm   
 
try #TRIGGER {tells you} {#CAPTURE Tells} ?
_________________
Kiasyn
Owner of Legends of Drazon
Coder on Dark Legacy
Check out Talon, an easy IMC connection.
Reply with quote
DeathDealer
Adept


Joined: 20 Jul 2004
Posts: 268

PostPosted: 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
_________________
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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