|
jroper73 Novice
Joined: 03 Aug 2006 Posts: 30
|
Posted: Mon Aug 27, 2007 1:54 am
#ALL not working right |
I try and type something like this:
#all drink fountain
I get a 'Error parsing command - Illegal token'
#all {drink fountain}
works but is unacceptably burdensome
What is going on and how do I get around it?
Asbestos
ncmud.org 9000 |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Mon Aug 27, 2007 2:03 am |
The problem appears to be that #ALL only takes one argument. Your version of the command is sending two. You are looking at a lot more work than adding { and } to get around this.
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
Arminas Wizard
Joined: 11 Jul 2002 Posts: 1265 Location: USA
|
Posted: Mon Aug 27, 2007 3:08 am |
#alias all {#all {%-1}}
|
|
_________________ Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram |
|
|
|
jroper73 Novice
Joined: 03 Aug 2006 Posts: 30
|
Posted: Mon Aug 27, 2007 3:44 am |
Thank you Arminas! One catch. That will not process aliases.
So If I have:
#alias rrr rec recall
#alias aaa {#all (%-1}}
then try: aaa rrr
it sends rrr to all the sessions, not the alias... |
|
|
|
Arminas Wizard
Joined: 11 Jul 2002 Posts: 1265 Location: USA
|
Posted: Mon Aug 27, 2007 4:11 am |
Well, you can try this.
#alias all {#all {#exec {%-1}}} |
|
_________________ Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram |
|
|
|
jroper73 Novice
Joined: 03 Aug 2006 Posts: 30
|
Posted: Mon Aug 27, 2007 4:13 am |
WORKED! thanks
|
|
|
|
|
|