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


Joined: 28 Jan 2011
Posts: 4
Location: United States

PostPosted: Sun Jan 30, 2011 4:09 am   

dropping parenthesis
 
I am trying to make an alias that will pick up a description and put it in a secondary window to be read later. I did this by making an alias for "l" that has this code:

#T+ lookcapture
#send l %1 %2 %3 %4 %5 %6

this is working, sending the description to the secondary window. I am encountering something strange though, when I try to use a command with parenthesis in it, sending that to the mud it drops the parenthesis. For example:

l dwarf (nodding)

becomes:

l dwarf nodding

also:

l dwarf (nodding to him)

becomes

l dwarf noddingtohim

I'm confused by it and have been trying to figure out what I've been doing wrong with little success.
brackets seems seem to go through just fine. I would very much like to keep the parenthesis intact.
Any idea what I am doing wrong?
Reply with quote
hogarius
Adept


Joined: 29 Jan 2003
Posts: 221
Location: islands.genesismuds.org

PostPosted: Sun Jan 30, 2011 4:24 am   
 
( and ) are special characters in CMUD. If you want to sent those literal characters to the MUD, you need to type ~ before them in the command line. For example:

l dwarf ~(nodding~)
Reply with quote
blackgoetia
Newbie


Joined: 28 Jan 2011
Posts: 4
Location: United States

PostPosted: Sun Jan 30, 2011 4:29 am   
 
ahh i think thats gonna fix it thank you hogarius
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Sun Jan 30, 2011 4:15 pm   
 
In addition, if you want to send all the parameters, you can do it for any number of parameters rather than just %1, %2, %3, etc.:
#SEND l %params
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