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
Talahaski
Enchanter


Joined: 10 Oct 2000
Posts: 656
Location: USA

PostPosted: Mon Dec 01, 2003 3:22 am   

#var without a default value.
 
Does anybody know how to create a new variable without a default value while still specifying the class.

This will create a variable with a default of nothing, so when you restart, it gets reset.
#var test 10 {} {testclass}
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Mon Dec 01, 2003 5:55 am   
 
If a defaultval is specified, the variable is initialized to that value when the settings are loaded or the #RESET command is used. To specify no default, leave this parameter out or use the _nodef value.

#var test 10 {_nodef} {testclass}
Reply with quote
Talahaski
Enchanter


Joined: 10 Oct 2000
Posts: 656
Location: USA

PostPosted: Mon Dec 01, 2003 3:54 pm   
 
{_nodef}

That's what I needed, I did not see this in the help file under #var. Are these special values documents anywhere? Are there any other values of similar nature that would be good to know.
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Mon Dec 01, 2003 4:48 pm   
 
The only special value is _nodef. This is documented under #VAR and what LightBulb posted is a direct quote from this help entry.
Reply with quote
Talahaski
Enchanter


Joined: 10 Oct 2000
Posts: 656
Location: USA

PostPosted: Mon Dec 01, 2003 6:59 pm   
 
Now I feel like a real a**hole. My appologies, I should have actually read the entire help page instead of scanning through it.
[:I]
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