The CAOS Documentation wrote:
126
Make Speech Bubble
Called when a creature speaks, so scripts can display a speech bubble. Every agent which has this script is called. _P1_ is the text being spoken, _P2_ is the creature who is speaking.
Taken from the Script Numbers table.
We are not going to make speech bubbles, but it is juuuuust what we need. That's probably what evolnemesis was looking for. The entire script could look something like this:
scrp # # # 126
* target the speaking creature
targ _p2_
* timestamp, weekday month/day/year hour:minute:second
sets va00 rtif rtim "%A %x %X"
* space
adds va00 " "
* add the creature's name
adds va00 hist name gtos 0
* a : and a space to seperate name and text
adds va00 ": "
* what was said
adds va00 _p1_
* if file exists append, otherwise create it in main Journal directory
file oope 1 "creature_conversation.txt" 1
* write text to file
outs va00
* close file and finish
file oclo
targ ownr
endm |
That script alone together with a dummy agent should record all the speech in the world. You should check the file, though, I *think* after 65.000 and a bit lines files are full.
I have to warn you, though. I am quite confident that it will work, but this script is untested.