Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Sun Feb 03, 2008 1:25 am   

[2.18] #ONINPUT bug?
 
I'm using ONINPUT for simplification reasons. Thus, I found this bug. Or at least, I believe it to be a bug.

Start out by creating this oninput:
#ONINPUT {^something$} {#echo This is something.}

Be connected to a MUD, then type "something" and hit return. It'll echo the "This is something." but it'll also send "something" as a MUDside command. In essence, it gets sent twice. I did this with the oninput listed below:

#ONINPUT {^addcast ~{(*)~} ~{(*)~}} {#addkey spells_cast_msg {%1} {%2}}

The reason I used the above format is because the key will contain multiple words, as can the value. For example:

You feel gills growing on your neck! //this is the key
underwater breathing //this is the value

so a regular alias will not work (at least, not that I can see).

Now, this only happens when #ONINPUT happens to have a CMUD command as its value (i.e., the #addkey or #echo). If it's something like:

#ONINPUT {^smile$} {gt *smile}

it only gets sent once.

Charneus
Reply with quote
Arminas
Wizard


Joined: 11 Jul 2002
Posts: 1265
Location: USA

PostPosted: Sun Feb 03, 2008 7:21 pm   
 
You are looking for the #noinput command.
_________________
Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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