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
Myrkul
Wanderer


Joined: 21 Aug 2008
Posts: 85

PostPosted: Sun Jun 14, 2009 1:31 pm   

[edit][/edit]
 
[edit][/edit]


Last edited by Myrkul on Thu Apr 14, 2011 11:16 pm; edited 1 time in total
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Sun Jun 14, 2009 3:12 pm   
 
%concat returns a string, "@var1". There's one item in the string "@var1". What you want is for CMUD to interpret that string as a reference to a variable - @{%concat("@var",1)} will do this.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Myrkul
Wanderer


Joined: 21 Aug 2008
Posts: 85

PostPosted: Sun Jun 14, 2009 3:19 pm   
 
[edit][/edit]


Last edited by Myrkul on Thu Apr 14, 2011 11:16 pm; edited 1 time in total
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Mon Jun 15, 2009 5:21 pm   
 
Or, another solution that might be easier to read is:

%numitems(%expand(%concat("@var",1)))
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