|
danilo Beginner
Joined: 27 May 2001 Posts: 12
|
Posted: 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 |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Thu Dec 25, 2003 11:43 am |
Individual commands
#FORALL @friends {hug %i}
Combined command
hug <%expandlist( @friends, ",")> |
|
|
|
|
|
|
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
|
|