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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
emnaki
Wanderer


Joined: 12 May 2007
Posts: 59

PostPosted: Tue Sep 18, 2007 11:55 am   

Variables do not expand in this situation
 
Code:
#LOOP 1,%numitems(@aflist) {#VAR affectnumtmp %i;#STW + {%concat(%format("&-10s",%item(@afnamelist,@affectnumtmp)),": ",%item(@aflist,@affectnumtmp))}}


No matter what I replace @affectnumtmp (%i,local variables) with in %item method it is not expanded. The final result is always the literal @affectnumtmp (or %i).
Reply with quote
gamma_ray
Magician


Joined: 17 Apr 2005
Posts: 496

PostPosted: Tue Sep 18, 2007 2:08 pm   
 
Yes, #stw isn't expanding, I suspect this is on purpose, since often you want to have (unexpanded) variables in the status setting and let the status window do the expanding.

I think in this situation you're better off using a normal window, and either replacing the status window with it or docking it to the status window.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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