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
shaun.murray
Magician


Joined: 23 Jul 2005
Posts: 334
Location: Chicago

PostPosted: Wed Sep 19, 2007 1:17 pm   

trigger on everything
 
Trying to put a timestamp on some of my sub windows. And I know I've asked this before (but I can't find my post... grrrrrr...) It has been a while, but I think it used #psub and regex triggering. Mainly to trigger off of everything. And then using #psub to insert the time. I think... I can't for the life of me get it. TIA! =D
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Wed Sep 19, 2007 2:27 pm   
 
Well, depending on how you're capturing for some of your sub windows. I used to have a trigger that did the same thing for my tells - it'd capture it, move it to a child window, and timestamp it so I knew when I received it. The way I accomplished this was the following:

#TRIGGER {%w tells you '*'} {#WIN tells %time %trigger}

That should work, though don't quote me on it. :P Give it a try.

Charneus
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4813
Location: Pensacola, FL, USA

PostPosted: Wed Sep 19, 2007 2:47 pm   
 
I just add thi trigger to my child windows:

#TR {^} {#SUB {%time(t)}}
_________________
Discord server
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Wed Sep 19, 2007 9:04 pm   
 
I'm really surprised that that works, but work it does. You might need to add a space, though.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
shaun.murray
Magician


Joined: 23 Jul 2005
Posts: 334
Location: Chicago

PostPosted: Wed Oct 10, 2007 1:40 pm   
 
YEAH! Works like a champ!

Now... Is there a way to format the color? (Anal, I know... But I like to make it all look the same as much as possible?)

It looks like this now

10:31 AM--You say, 'Test!!'
10:31 AM--Bob tells you, 'Howdy!!'

Be kinda nice to have the timestamp one single color throughout the whole window. Make sense? TIA!
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Wed Oct 10, 2007 2:47 pm   
 
Just add %ansi(10) or whatever wherever you want to change colour. You can also add MXP color tags in the #sub command, like:

#trig {^(%w tells you)} {#sub {<color blue>%time(t)"--"%1<color>}}

Or if you want all the stamps the same colour, just

#trig {^} {#sub {<color blue>%time(t)</color>}
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5187

PostPosted: Wed Oct 10, 2007 11:51 pm   
 
What I use to keep the existing color is
#TRIGGER {(?)} {#PSUB {%time("hh:mm") %1} %x1}
_________________
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