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


Joined: 23 May 2003
Posts: 31

PostPosted: Mon Jul 07, 2003 8:46 pm   

Lists and commas
 
Here is what I am trying to do:

I want to send someone a list variable over a tell communication, and
want the items to be seperated by commas instead of the | character.

I tried to use a #SUB trigger for the | and turn it into a comma and
a space, but it seems it just substitutes it on your view : This is
what I get..

List::: Typhoeus, Medea, Gandalf, Darkmere, Hades
Tell Typhoeus Typhoeus, Medea, Gandalf, Darkmere, Hades
You tell Typhoeus, 'Typhoeus|Medea|Gandalf|Darkmere|Hades'

Is there any way I can make those commas followed by a space?

Thanks in advance,
Darkmere
Reply with quote
megamog75
Enchanter


Joined: 20 Nov 2002
Posts: 627
Location: USA

PostPosted: Mon Jul 07, 2003 9:11 pm   
 
#send %replace(@list,"|",",")

will do the trick
Reply with quote
Carabas
GURU


Joined: 28 Sep 2000
Posts: 434
Location: USA

PostPosted: Mon Jul 07, 2003 9:13 pm   
 
Try this: %expandlist(@List,", ")
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