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
Hronden
Newbie


Joined: 25 Jan 2010
Posts: 7

PostPosted: Thu Apr 14, 2011 11:45 pm   

Quick formatting issue
 
My mud requires using a dot operator when specifying a quantity.

so Variable - headcount is numerical = 4

Alias head = get @headcount.head harness

Should send get 4.head harness

But it isn't recognizing 4.head and sends get harness

What do I need to change so it will grab the variable and send it properly?
Reply with quote
Daern
Sorcerer


Joined: 15 Apr 2011
Posts: 809

PostPosted: Fri Apr 15, 2011 12:12 am   
 
The problem is that the . following a variable reference makes it think that you are trying to access the value of the head key in the headcount database variable. Try this instead:
Code:
get %expand(@headcount).head harness

Reply with quote
Hronden
Newbie


Joined: 25 Jan 2010
Posts: 7

PostPosted: Fri Apr 15, 2011 12:44 am   
 
That did the trick. Thanks Daern
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