Go
back to previous topic |
Forum Name |
New Player Q&A | Topic subject | TinyFugue (TF) question | Topic
URL | https://forums.carrionfields.com/dcboard.php?az=show_topic&forum=5&topic_id=3335 |
3335, TinyFugue (TF) question
Posted by flu on Wed 31-Dec-69 07:00 PM
I'd like to catch all tells and log them to a unique file. That way I can have another terminal open tailing said file, thereby keeping tells from getting 'lost in the sauce' when I'm on the move. Has anyone successfully done this? Defining the trigger is easy enough, it's just logging to a particular file that has me stumped.
Thanks in advance
|
3339, This was... so confusing to me.
Posted by robdarken_ on Wed 31-Dec-69 07:00 PM
I thought you were referring to little fugue for so long.
|
3338, Or you can just type "afk" for past messages. nt
Posted by Artificial on Wed 31-Dec-69 07:00 PM
nt
|
3336, RE: TinyFugue (TF) question
Posted by flu on Wed 31-Dec-69 07:00 PM
Alright, so the body of the trigger should be something like:
= /test fwrite("tells.txt", "%1 - %2")
Unfortunately, my triggers aren't firing (testing against a shopkeeper, which always tells me something when I list their wares).
My current trigger is:
/trig {*} tells you {*} = /test fwrite("tells.txt", "%1 - %2")
But the shopkeeper's tell isn't causing it to fire. Any help appreciated :)
|
3337, RE: TinyFugue (TF) question
Posted by flu on Wed 31-Dec-69 07:00 PM
Solved. In case anyone else uses TF and wants this functionality, I added the following two macros. One logs tells you send, the other logs received tells. These are written to the file 'tells.txt'
/def -mregexp -F -p1 -t'(.+) tells you ' tellRecv = /test fwrite("tells.txt","%P1 tells you, %PR")
/def -mregexp -F -p1 -t'You tell (.*) (\'.*\')' tellSend = /test fwrite("tells.txt", "You tell %P1, %P2")
Sorry for the self-reply spam!
| |