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
Vitae
Enchanter


Joined: 17 Jun 2005
Posts: 673
Location: New York

PostPosted: Mon Nov 07, 2005 6:09 pm   

#looping nested #vars *solved*
 
Trying to create variables from the myranks var into the RollCall folder

#LOOP 1,%numwords( @myranks, "|") {#VARIABLE %word( @myranks, %i, "|") {} "RollCall"}

All this does is put them in the main folder.
What am i missing?


EDIT:
Well, needed to add the extra {}
#LOOP 1,%numwords( @myranks, "|") {#VARIABLE %word( @myranks, %i, "|") {} {} RollCall}
_________________
http://www.Aardwolf.com
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Wed Nov 09, 2005 1:23 am   
 
Vitae Your loop would be the same as this, but easier to read

#FORALL @myranks {#VAR %i {} _nodef "RollCall"}
_________________
Zmud Support Library
Zmud Knowledge Base
Reply with quote
Vitae
Enchanter


Joined: 17 Jun 2005
Posts: 673
Location: New York

PostPosted: Wed Nov 09, 2005 1:52 pm   
 
hrmmm...I'm SURE i tried it that way and it didn't work...*mutter*
thanks :-)
_________________
http://www.Aardwolf.com
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