Subject: "TinyFugue (TF) question" Previous topic | Next topic
Printer-friendly copy Email this topic to a friend CF Website
Top General Discussions New Player Q&A Topic #3335
Show all folders

fluSun 10-Jul-11 09:54 PM
Member since 29th Jun 2011
5 posts
Click to send email to this author Click to send private message to this author Click to view this author's profile Click to add this author to your buddy list
#3335, "TinyFugue (TF) question"


          

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

  

Alert | IP Printer Friendly copy | Reply | Reply with quote | Top

robdarken_Thu 14-Jul-11 01:39 PM
Member since 09th Sep 2009
375 posts
Click to send email to this author Click to send private message to this author Click to view this author's profile Click to add this author to your buddy list Click to send message via AOL IM
#3339, "This was... so confusing to me."
In response to Reply #0


          

I thought you were referring to little fugue for so long.

  

Alert | IP Printer Friendly copy | Reply | Reply with quote | Top

ArtificialSun 10-Jul-11 11:42 PM
Member since 22nd Apr 2008
1180 posts
Click to send email to this author Click to send private message to this author Click to view this author's profile Click to add this author to your buddy list
#3338, "Or you can just type "afk" for past messages. nt"
In response to Reply #0


  

          

nt

  

Alert | IP Printer Friendly copy | Reply | Reply with quote | Top

fluSun 10-Jul-11 10:20 PM
Member since 29th Jun 2011
5 posts
Click to send email to this author Click to send private message to this author Click to view this author's profile Click to add this author to your buddy list
#3336, "RE: TinyFugue (TF) question"
In response to Reply #0


          

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

  

Alert | IP Printer Friendly copy | Reply | Reply with quote | Top

    
fluSun 10-Jul-11 10:58 PM
Member since 29th Jun 2011
5 posts
Click to send email to this author Click to send private message to this author Click to view this author's profile Click to add this author to your buddy list
#3337, "RE: TinyFugue (TF) question"
In response to Reply #1


          

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!

  

Alert | IP Printer Friendly copy | Reply | Reply with quote | Top

Top General Discussions New Player Q&A Topic #3335 Previous topic | Next topic