|
haiku Wanderer
Joined: 19 Nov 2004 Posts: 70
|
Posted: Sun Sep 30, 2007 9:45 pm
help with a trigger and spaces not being added to commands |
Lets say I have this trigger
Code: |
#IF (%ismember(%1, @Forbidden)) {#SHOW FORBIDDEN COMMAND} {%1 %2} |
that works off of this input:
Code: |
@tank tells you:*"do (%w) %2"$ |
When I receive this input:
Code: |
Snargle tells you: "do dance lightn" |
I get this output:
I'd like to get the space that I added in between the %1 and the %2 to register. How do I make that happen? |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Sun Sep 30, 2007 9:53 pm |
#exec %1 %2
Lines must start with commands (or aliases that expand into commands) or literal text you want sent to the MUD. Also, you have two spaces there, not one - if you want both, you might need to add "quotes" round them or the parser might remove one. |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Mon Oct 01, 2007 5:39 pm |
Also, what are you trying to do with
That is undefined. If you are trying to execute them as CMUD commands, then Fang is correct and you should use:
The {} will preserve spaces.
However, if you are trying to send %1 and %2 to the MUD, then you should be using the #SEND command:
Again, the {} will preserve the spaces. |
|
|
|
|
|