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
Latent
Apprentice


Joined: 19 Aug 2002
Posts: 120
Location: USA

PostPosted: Thu Jul 10, 2003 1:57 am   

list?
 
can you store a list in a variable? and if so, whats the command to do so
Reply with quote
Amfitrion
Wanderer


Joined: 29 Sep 2001
Posts: 75
Location: Israel

PostPosted: Thu Jul 10, 2003 2:56 am   
 
It is just an ordinary variable.
Read help about #additem, #delitem, etc.
Reply with quote
Siddha
Beginner


Joined: 07 Jul 2003
Posts: 15

PostPosted: Fri Jul 11, 2003 4:26 pm   
 
pattern: (%x) came from west.
command:
example = %additem(%1, @example);
#echo Example: @example;
example = %additem(%1, @example);
#echo Example: @example;

Freddy came from west.
Output:
Example: Freddy
Example: Freddy|Freddy

if u are working with different lang (not english;))
strange thing happening, program is writing down spaces as a first word,
Example: Freddy
Example: |Freddy|Freddy

something like this;)


Although it's possible to create this list "by hand";)

pattern: (%x) came from west.
command:
example = |;
#echo Example: @example;
#add example(%1|);
#echo Example: @example;
#add example(|%1|)

Freddy came from west.
Output:
Example: |Freddy
Example: |Freddy|Freddy|
etc/
P.S> Possibly it could be some mistakes, so for ur part. problem u have to debug code:)
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