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
moclab
Newbie


Joined: 21 Aug 2002
Posts: 2

PostPosted: Wed Aug 21, 2002 7:53 pm   

Another window captureing question.
 
Hello,
I'm sure this has been answered before but I can't find where. I wrote a simple script to catch anyone telling or saying anything to me. It places it in a window.

#CLASS {chat}
#TRIGGER {(*) tells you '(*)'} {#CAP chat "%1" tells you: "%2"}
#TRIGGER {(*) says '(*)'} {#CAP chat "%1" says: "%2"}
#CLASS 0

I want to know how to make it display it in a status window. I tryed to replace #CAP with #STW and it will display it to a status window but when a new tell or say is captured it overwrites the previous one. I want it to display on the next line. Can someone show me the way to change my code in order to do this.

Thanks in advance
M
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Wed Aug 21, 2002 8:16 pm   
 
Perhaps you are better off not using the status window. The problem lies in that the status window is not like normal zMUD windows. The status window is defined once and updated every time the value of a varibale changes, in the event that the defenition for the status window contains some variable. If you define the status window again, the new definition overwrites the old definition.

This means that to do what you want to do, you would need to keep all of the tells and says received in a variable and add to this variable every time you receive a new tell or say. Over a long period of time, this variable consumes more and more memory, and I'm sure that refreshing the status window will get slower and slower.

Because of all this, I think you should use a normal zMUD window (like the one that #CAP creates when it is used for the first time.) If you need this window to look like the status bar, you can disable the Attached Command Line and Show Status Bar option for that window (right-click on top of the output area and look in Window Options) and click the thumbtack to make the window Stay on Top.

Kjata
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