|
blackgoetia Newbie
Joined: 28 Jan 2011 Posts: 4 Location: United States
|
Posted: 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? |
|
|
|
hogarius Adept
Joined: 29 Jan 2003 Posts: 221 Location: islands.genesismuds.org
|
Posted: 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~) |
|
|
|
blackgoetia Newbie
Joined: 28 Jan 2011 Posts: 4 Location: United States
|
Posted: Sun Jan 30, 2011 4:29 am |
ahh i think thats gonna fix it thank you hogarius
|
|
|
|
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: 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 |
|
|
|
|
|