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
myrison
Beginner


Joined: 10 Nov 2006
Posts: 22

PostPosted: Fri Jan 26, 2007 2:29 pm   

Reset Single Variable to Default Value
 
Hi all. I'm familiar with the #reset command to reset certain classes to their default, but is there a way to reset an individual variable to its default Question

Thank you.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sat Jan 27, 2007 12:07 am   
 
Varname = defaultvalue

No nifty command like #RESET varname or anything like that.
_________________
EDIT: I didn't like my old signature
Reply with quote
myrison
Beginner


Joined: 10 Nov 2006
Posts: 22

PostPosted: Sat Jan 27, 2007 6:06 pm   
 
Thank you for the reply. I was hoping for a nifty command like you mentioned, but I can make it work this way as well.
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sun Jan 28, 2007 3:01 am   
 
I should have thought of it sooner.

Making a nifty command:
#ALIAS ResetVar {#VARIABLE %1 {%sess.GetVar(%1,%2).Default}}

The usage is ResetVar VariableName Class
_________________
The only good questions are the ones we have never answered before.
Search the Forums
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