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
KurtDH
Beginner


Joined: 14 Sep 2004
Posts: 17

PostPosted: Mon Nov 08, 2004 12:07 am   

time question
 
I'm capturing yells to a window.

In the capture window with the yells, I want to append the time the yell happened, right next to the yell.

I want to use %time(c)

I can extract the time the yell happened using the time function, and send that to a variable. But how do I get the variable to prepend itself right before the yell in the capture window?
Reply with quote
Curlay
Beginner


Joined: 17 May 2004
Posts: 27
Location: USA

PostPosted: Mon Nov 08, 2004 12:44 am   
 
Do you NEED it to prepend itself before the yell?

If it's ok to have it come after the yell, then in the same trigger that you #cap, try:

#window {WINDOWNAME} {%time( c)}

Where WINDOWNAME is, obviously, the windowname. That's what I use, let me know if you have any advice on how to make it more efficient or if this isn't what you were seeking!

Curlay
Reply with quote
KurtDH
Beginner


Joined: 14 Sep 2004
Posts: 17

PostPosted: Mon Nov 08, 2004 12:48 am   
 
Is it possible to put it on the same line as the yell? And not have it create a new line in the window after the yell?

Curlay wrote:
Do you NEED it to prepend itself before the yell?

If it's ok to have it come after the yell, then in the same trigger that you #cap, try:

#window {WINDOWNAME} {%time( c)}

Where WINDOWNAME is, obviously, the windowname. That's what I use, let me know if you have any advice on how to make it more efficient or if this isn't what you were seeking!

Curlay
Reply with quote
Curlay
Beginner


Joined: 17 May 2004
Posts: 27
Location: USA

PostPosted: Mon Nov 08, 2004 1:04 am   
 
Heh, well, I'm not even sure if this would work, but if there's any way to work such a command:

#window {tells} {%time( c) #cap tells}

(That brings a syntax error, so it obviously won't work, but you can see where I'm trying to go.)
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Mon Nov 08, 2004 2:06 am   
 
You could use
#WINDOW yells {%time("c") %line}
However you will lose all coloring in that line.

Next solution is to have a trigger in your yells window actually #SUBSTITUTE in the %time. Since all text going to this window should have a similar format it is easy enough to recolor during that #SUB. Remember to save a seperate setting for that child window to make the trigger automatically recreated.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
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