Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
danilo
Beginner


Joined: 27 May 2001
Posts: 12

PostPosted: Thu Dec 25, 2003 9:07 am   

Expand an entire string list to the command line
 
Hello everyone,

#var friends bob|tommy|yvonne

Is there a way to do 'hug @friends', so that it will send

hug bob,tommy,yvonne

to the mud? It currently sends

hug bob|tommy|yvonne

which doesn't work, since the mud only recognizes "," and "&".

Thank you. :)

Danilo
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Thu Dec 25, 2003 11:43 am   
 
Individual commands
#FORALL @friends {hug %i}

Combined command
hug <%expandlist( @friends, ",")>
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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