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


Joined: 20 Apr 2008
Posts: 69
Location: Watervliet, NY

PostPosted: Thu Nov 05, 2009 3:47 am   

Using %proper with variables.
 
I am having trouble making all things entered into a variable through the #additem <variable> <value> to be stored in proper case. Basically a list of names, that I want to be able to call on. Not that it really matters to the function of the thing, but appearance wise I would like to make the names uppercase. I have tried the following, but it does not work the way I had thought it would. Any help would be greatly appreciated.

Code:

#additem HouseMembers %proper (%1)


If it cannot be made to store with the proper case in a variable some method of calling it up when I use #Echo so that all are uppercase is adequate. I tried the following to get that to work... which it didn't.

Code:

#Echo %proper (@HouseMembers".")
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Thu Nov 05, 2009 1:21 pm   
 
Don't put spaces between the function and opening (. It needs to be %proper(%1), not %proper (.

Charneus
Reply with quote
Stowslee
Wanderer


Joined: 20 Apr 2008
Posts: 69
Location: Watervliet, NY

PostPosted: Thu Nov 05, 2009 8:13 pm   
 
That was an easy fix, thank you.
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