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
ReedN
Wizard


Joined: 04 Jan 2006
Posts: 1279
Location: Portland, Oregon

PostPosted: Fri Mar 03, 2006 9:50 pm   

Using variables to create variable names
 
I've had a problem with this for a while. I often want to create a variable name with a variable such as:

#var prefix myPrefix
#var <@prefix>_RestofName 1

or perhaps

#var prefix myPrefix
#var varname @<@prefix>_RestofName

My brain is realing trying to figure out how to get these to evaluate appropriatly. I've tried using <> in the past with varying success and wanted to see if anyone has got a better solution.
Reply with quote
Vorax
Apprentice


Joined: 29 Jun 2001
Posts: 198
Location: USA

PostPosted: Fri Mar 03, 2006 10:51 pm   
 
You should be able to use a syntax such as
#VAR @{prefix}_RestofName 1
Reply with quote
ReedN
Wizard


Joined: 04 Jan 2006
Posts: 1279
Location: Portland, Oregon

PostPosted: Fri Mar 03, 2006 10:53 pm   
 
Does this work in all cases? The editor at least seem to quite often have a hard time understanding what I'm trying to do.
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