Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Mumra
Wanderer


Joined: 12 Feb 2003
Posts: 93
Location: USA

PostPosted: 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 ?
_________________
Mumra the Everliving, Realms of Despair
216.251.47.10 Port 4000
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net