![](templates/Classic/images/spacer.gif) |
xxninjaxx Newbie
Joined: 26 Sep 2004 Posts: 5
|
Posted: Sun Sep 26, 2004 9:02 pm
A little help.. |
Allright, i'm trying to make some inbuilt language and the problem I'm having is.. with this current code as the example.
#ONIN {noble} {#sub C'rintri}
#ONIN {no} {#sub nau}
and when you type noble, it uses both of the subs, showing jumble.. is there anyway I can get it to fire off the EXACT trigger with #onin? |
|
|
![](templates/Classic/images/spacer.gif) |
Vijilante SubAdmin
![](images/avatars/7230815434153eca6be3ad.gif)
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Mon Sep 27, 2004 12:15 am |
I believe you want to surround the word with %q, this matches punctuation and start and eol. For example:
#ONINPUT {%q(no)%q} {#PSUB {nau} %x1}
Since the addition to the pattern would affect #SUB I also switched to a #PSUB so whatever was matched by the %q's will remain unaffected. |
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
![](templates/Classic/images/spacer.gif) |
xxninjaxx Newbie
Joined: 26 Sep 2004 Posts: 5
|
Posted: Mon Sep 27, 2004 5:25 am |
I replaced all the lines into what you suggested, this made zmud not even recognize it as wanting to be substitituted.. if theres any another suggestions I would be grateful.
say noble
You say 'noble'
say no
You say 'no' |
|
|
![](templates/Classic/images/spacer.gif) |
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Mon Sep 27, 2004 12:24 pm |
#ONIN {(%q)noble(%q)} {#SUB {%1C'rintri%2}}
#ONIN {(%q)no(%q)} {#SUB {%1nau%2}} |
|
_________________ LightBulb
Senior member
Most scripts in this forum are written for Command Line entry.
Don't even open the Settings Editor unless its use is specified or obvious. |
|
|
![](templates/Classic/images/spacer.gif) |
|
|