|
Gibs Newbie
Joined: 22 Dec 2005 Posts: 2
|
Posted: 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. |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4692 Location: Pensacola, FL, USA
|
Posted: 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 |
|
|
|
Gibs Newbie
Joined: 22 Dec 2005 Posts: 2
|
Posted: 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} |
|
|
|
Pseudo Wanderer
Joined: 25 Oct 2005 Posts: 99
|
Posted: 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). |
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: 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 |
|
|
|
|
|