Mumra Wanderer
Joined: 12 Feb 2003 Posts: 93 Location: USA
|
Posted: Sun Sep 05, 2010 2:17 am
Question regarding additem and commas. |
I am using a trigger to capture text so I can play it back easily in the MUD I'm on. I have it writing to a file, but I figure it would be easier if I could just play it back through a variable list instead. Here is the code I am using:
#TR {^(%w) tells you '(*)$} {#VAR %concat( %char, "whisperlog") %addItem( %time( c) %1 tells you: %2, @{%concat( %char, "whisperlog")})}
This stores what someone tells me into a variable named after my character, appending "whisperlog" to the name of it, for instance, this comes out as "mumrawhisperlog" I can then use a loop command to play it back to me in a nicely formatted structure, and even use Control-F to search. The problem i seem to run into though, is that if anyone says anything with a comma in it, it basically restarts the variable completely, adding what was said in the whisper, but the comma forces a new line. Not only do I lose all past information in the variable, but it seperates it and makes it look ugly ;( Is there any way to stop the comma from doing this ? |
|