|
Orang Apprentice
Joined: 22 Jul 2004 Posts: 118 Location: USA
|
Posted: 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 |
|
|
|
Vitae Enchanter
Joined: 17 Jun 2005 Posts: 673 Location: New York
|
Posted: Thu Jul 07, 2005 2:47 pm |
#var (name) {} {}
|
|
|
|
Vitae Enchanter
Joined: 17 Jun 2005 Posts: 673 Location: New York
|
Posted: 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 |
|
|
|
Orang Apprentice
Joined: 22 Jul 2004 Posts: 118 Location: USA
|
Posted: 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
?? |
|
|
|
Vitae Enchanter
Joined: 17 Jun 2005 Posts: 673 Location: New York
|
Posted: 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 ;-) |
|
|
|
Orang Apprentice
Joined: 22 Jul 2004 Posts: 118 Location: USA
|
Posted: Thu Jul 07, 2005 7:59 pm |
ok thanks i got it working though
|
|
|
|
|
|