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


Joined: 26 Sep 2004
Posts: 5

PostPosted: 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?
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: 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
Reply with quote
xxninjaxx
Newbie


Joined: 26 Sep 2004
Posts: 5

PostPosted: 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'
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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.
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