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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Fallen.Anvil
Novice


Joined: 12 Jul 2012
Posts: 47

PostPosted: Sun Jul 15, 2012 12:04 am   

Time stamping events.
 
If I receive a message via a MUD how might I time-stamp it on screen?

Game message:

Bob logs in.

To either:

Bob logs in. (Tue 3:14pm)

Or

(Tue 3:14pm) Bob logs in.

Thanks
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Sun Jul 15, 2012 1:20 am   
 
In the Package Editor, select the window you want this to happen in. At the bottom of the editor window, click Preferences. In the Preferences window, click Sessions, then click the Scrollback tab. Mark the checkbox labeled Show Timestamps. In another box on that screen you can specify the format you want for the timestamp.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sun Jul 15, 2012 5:39 am   
 
If you only want to timestamp that line, you'll have to do it manually via trigger (you would #SUBSTITUTE or #PSUB (adds stuff wherever you want) or #SAYADD (adds stuff to the end of the line) the %time() in whatever format you desired).
_________________
EDIT: I didn't like my old signature
Reply with quote
Fallen.Anvil
Novice


Joined: 12 Jul 2012
Posts: 47

PostPosted: Mon Jul 16, 2012 1:49 am   
 
Thank you both
Reply with quote
Fallen.Anvil
Novice


Joined: 12 Jul 2012
Posts: 47

PostPosted: Mon Jul 16, 2012 12:32 pm   
 
Where would i add the #substitute or #psub command?

With the time stamp code or in a separate trigger?

#WIN Anvil {%ansi(brown)%time(hh:nn:ss) *%ansi(default) %1 pages with: '%2'}
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Mon Jul 16, 2012 2:22 pm   
 
If you are making a new line with #WIN, you can do it directly (as you show in that code). The #SUB or #PSUB suggestion was for inserting the timestamp into an existing line in the window, and would be done by a trigger.

If you want a window in which _all_ the lines are timestamped, you can use the window timestamp setting which I suggested, instead of inserting it manually.
Reply with quote
Fallen.Anvil
Novice


Joined: 12 Jul 2012
Posts: 47

PostPosted: Mon Jul 16, 2012 2:43 pm   
 
It doesn't necessarily have to be a window.
In fact I would like the output from the MUD to be modified seamlessly on screen if possible.
In the above example Anvil was the window name.

Also I just noticed when I log into my mud the sign in page keeps scrolling. Any ideas?
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Mon Jul 16, 2012 4:17 pm   
 
The problem with the sign-in page should be posted in a separate thread, along with any details--I'm not sure what you mean.

To modify the output from the mud "seamlessly on screen", you would use #SUB or #PSUB in a trigger, like this:
Code:

#TRIGGER {^(%w logs in.)} {#SUB {%ansi(brown)%time(hh:nn:ss)%ansi(default) %1}}
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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