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
Guinn
Wizard


Joined: 03 Mar 2001
Posts: 1127
Location: London

PostPosted: Tue Jun 07, 2005 10:40 am   

Tell capturing, %quote and %replace
 
I've looked through the similar topics, but don't seem to be able to fix the problem still.

A game I play allows multiplaying. I have the following to copy tells from more than one character into the same window (and a simple bit to prevent spamming):
Code:
#TRIGGER {^(%w) tells you: (*)} {#GVARIABLE channel {%1 tells @character: %2};channel}

#ALIAS channel {#if (@channel = @channelLast) {} {#window {Channels} {%time( hh:nn:ss) @channel};#gvariable channelLast {@channel}}}

It works, but whenever the tells includes quotes(") then it switches them to tildes(~)

I've tried using %quote() and %replace()

In the main window I see:
Bob tells Guinn: test123 "test123"

In the Channels window I see:
11:29:18 Bob tells Guinn: test123 ~test123~


Any hints on altering the formatting to display correctly?
I'm using v7.10, but I had the same problem in 7.05, so nothing to do with that.

Thanks
Reply with quote
Guinn
Wizard


Joined: 03 Mar 2001
Posts: 1127
Location: London

PostPosted: Sun Jun 12, 2005 10:07 am   
 
bump...

Upgraded to 7.11a, no change.
Any ideas?
_________________
CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;)
Reply with quote
Full Throttle
Wanderer


Joined: 07 Dec 2004
Posts: 65

PostPosted: Sun Jun 12, 2005 1:15 pm   
 
I use %trim() instead of %quote() or %replace().

Code:
#trigger {^~[CLAN~] You feel (*) say, '(*)'.} {
#window CLAN %concat(%ansi(15)%time(hh:nn) %ansi(12)%1 %ansi(14)%char(34)%trim(" %2 ")%char(34))}


This trick displays with less error than any other method I tested.
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