|
Sixy Newbie
Joined: 02 Jun 2002 Posts: 5
|
Posted: Sun Jun 02, 2002 5:16 am
auto log |
How do you make an auto log trigger that makes the name of the character date and start time as the logs file name?
Thanks |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sun Jun 02, 2002 5:28 am |
1. Add the #LOG commands to the end of the password trigger, or
2. Put the #LOG commands in the atconnect alias
Attempts to include the time in the filename haven't worked well and aren't necessary. One log per day, per character, should be more than enough. The #LOG command appends by default, so overwriting isn't a problem. If you need the logon time, make a trigger that will fire at the end of your logon text. This can either use the MUD's time command, if it has one, or the %time function.
#AL atconnect {#LOG {%char_%time(mmm-d-y)}
LightBulb
Vague questions get vague answers |
|
|
|
Sixy Newbie
Joined: 02 Jun 2002 Posts: 5
|
Posted: Sun Jun 02, 2002 5:38 am |
It makes a text file by the name of {%char_%time(mmm-d-y)).txt thats the exact file name in the dir
|
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sun Jun 02, 2002 7:58 am |
Since you know your character's name (I don't) you can replace %char with the actual name. If you can't get the time function to work, then I'm afraid you'll have to either make your logfiles manually or do without the date/time in the filename. I believe this will work, but I don't intend to test it since I don't want to clutter my hard-drive with unneeded logfiles. The last example had an unmatched {.
#AL atconnect {#LOG {Sixy_%time(mmm-d-y)}}
LightBulb
Vague questions get vague answers |
|
|
|
|
|