About Us
Products
Purchase
Downloads
Support
Forums
Contact Us
Site
 Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
fwah
Beginner


Joined: 08 Nov 2006
Posts: 14

PostPosted: Wed Apr 25, 2007 6:18 am   

[1.29] Trouble with local variables
 
I created an alias like so:

#alias esh($shipnum) {en $shipnum.ship}

If my memory serves correctly, before the recent updates this used to work fine. However, now when I type 'esh 5', all i get is 'en' regardless of what I include after it.

I want the alias to work like this:

I enter: esh 5
CMUD outputs: en 5.ship

Am I doing something wrong? Did something change?
Reply with quote
Guinn
Wizard


Joined: 03 Mar 2001
Posts: 1127
Location: London

PostPosted: Wed Apr 25, 2007 9:43 am   
 
Changed in v1.28
Quote:
Fixed $local.key = value syntax so that it works


So now you need to specify that the .ship bit isn't a part of the variable

#alias esh($shipnum) {en $shipnum".ship"}
_________________
CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;)
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum 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