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
jroper73
Novice


Joined: 03 Aug 2006
Posts: 30

PostPosted: 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
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: 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
Reply with quote
Arminas
Wizard


Joined: 11 Jul 2002
Posts: 1265
Location: USA

PostPosted: 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
Reply with quote
jroper73
Novice


Joined: 03 Aug 2006
Posts: 30

PostPosted: 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...
Reply with quote
Arminas
Wizard


Joined: 11 Jul 2002
Posts: 1265
Location: USA

PostPosted: 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
Reply with quote
jroper73
Novice


Joined: 03 Aug 2006
Posts: 30

PostPosted: Mon Aug 27, 2007 4:13 am   
 
WORKED! thanks
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