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
Gibs
Newbie


Joined: 22 Dec 2005
Posts: 2

PostPosted: Thu Dec 22, 2005 3:23 am   

Mud Reader
 
Hi I just wanted to know how to keep mud reader from saying this [ or this ] let me give you an example:

Ship [166], the Sovereign, just entered the sector.

is read as

Ship left square bracket 166 right square bracket , the Sovereign, just entered the sector.

I don't know how to keep it from saying that but it does get annoying even though I like mud reader. Please if anyone has any ideas for a script to fix this problem please reply thanks.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4692
Location: Pensacola, FL, USA

PostPosted: Thu Dec 22, 2005 7:37 am   
 
use a %replace() to strip it out of the string before before it gets sent to the reader?
_________________
Discord: Shalimarwildcat
Reply with quote
Gibs
Newbie


Joined: 22 Dec 2005
Posts: 2

PostPosted: Thu Dec 22, 2005 6:45 pm   
 
shalimar wrote:
use a %replace() to strip it out of the string before before it gets sent to the reader?
Okay this is my code but it isn't working I want to replace the [ and ] with nothing so what do I do please tweak my code or give me a code thate works the way I want it to I would be forever grateful.

Code:
#tr {Ship [%W]{%repalce [ }{%replace ] }} {#speak %trigger}
Reply with quote
Pseudo
Wanderer


Joined: 25 Oct 2005
Posts: 99

PostPosted: Thu Dec 22, 2005 7:13 pm   
 
Here is your answer:

#TR {~[} {#SUB ""}
#TR {~]} {#SUB ""}

On a related note, the similiar command:
#SUB {~[} {""}
appears to strip the quotes from the trigger and does not allow the trigger to register (as defined above).
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Fri Dec 23, 2005 12:12 am   
 
#tr {^Ship ~[(%d)~], (*), (*).} {#speak Ship %1 %2 %3}

That should work as well.

Ship 166 the sovereign just entered the sector
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