|
Fallen.Anvil Novice
Joined: 12 Jul 2012 Posts: 47
|
Posted: 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 |
|
|
|
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: 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.
|
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
|
Fallen.Anvil Novice
Joined: 12 Jul 2012 Posts: 47
|
Posted: Mon Jul 16, 2012 1:49 am |
Thank you both
|
|
|
|
Fallen.Anvil Novice
Joined: 12 Jul 2012 Posts: 47
|
Posted: 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'} |
|
|
|
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: 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. |
|
|
|
Fallen.Anvil Novice
Joined: 12 Jul 2012 Posts: 47
|
Posted: 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? |
|
|
|
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: 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}}
|
|
|
|
|
|
|