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
Orang
Apprentice


Joined: 22 Jul 2004
Posts: 118
Location: USA

PostPosted: Thu Jul 07, 2005 2:32 pm   

quick var question
 
this may seem like a stupid question but
how do i make a var reset itself to 0 when you disconnect from the MU* server?

thanks in advance
Reply with quote
Vitae
Enchanter


Joined: 17 Jun 2005
Posts: 673
Location: New York

PostPosted: Thu Jul 07, 2005 2:47 pm   
 
#var (name) {} {}
_________________
http://www.Aardwolf.com
Reply with quote
Vitae
Enchanter


Joined: 17 Jun 2005
Posts: 673
Location: New York

PostPosted: Thu Jul 07, 2005 3:00 pm   
 
Oh wait, ya didn't mean when quitting zMud?
Err...well, if it's always the SAME var, add #var (name) {} to the #atdisconnect in the systems class
_________________
http://www.Aardwolf.com
Reply with quote
Orang
Apprentice


Joined: 22 Jul 2004
Posts: 118
Location: USA

PostPosted: Thu Jul 07, 2005 5:08 pm   
 
ok i want this to be with a script that i'm gonna distribute on here so how would i do that with just using the cmd line?

and would it be:
#var exp_today {cur} {default}
when
cur = the current value that gets changed by triggers
default = what it gets changed to when disconnecting

??
Reply with quote
Vitae
Enchanter


Joined: 17 Jun 2005
Posts: 673
Location: New York

PostPosted: Thu Jul 07, 2005 7:26 pm   
 
since it's on a disconnect, is it a specific mud?
could just use the disconnect/reconnect msg/motd/whatever to trigger it to reset with #var exp_today {cur} {}

If it's for any mud, then afaik you can still have a atdisconnect alias in your class.
when i said #atdisconnect in my other post the # was an error. it's an alias not a var ;-)
_________________
http://www.Aardwolf.com
Reply with quote
Orang
Apprentice


Joined: 22 Jul 2004
Posts: 118
Location: USA

PostPosted: Thu Jul 07, 2005 7:59 pm   
 
ok thanks i got it working though
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