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


Joined: 01 Jul 2002
Posts: 81
Location: USA

PostPosted: Sun Aug 08, 2004 2:33 am   

toggle button
 
I use some toggle buttons to turn different classes on and off and execute commands.

Is there a command to make sure all the buttons are in the button up state when I connect to the mud? Perhaps using an atconnect alias?

Thanks!
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sun Aug 08, 2004 6:24 am   
 
Assign a variable to each button, using the Variable field on the Advanced tab in the Settings Editor or the Variable-name field of the #BUTTON command. Give each variable a default value of 0 or 1, whichever makes the button the way you want it to start.
_________________
LightBulb
Senior member

Most scripts in this forum are written for Command Line entry.
Don't even open the Settings Editor unless its use is specified or obvious.
Reply with quote
parrotslave
Wanderer


Joined: 01 Jul 2002
Posts: 81
Location: USA

PostPosted: Sun Aug 08, 2004 10:17 am   
 
I tried as you suggested.

The button won't stay depressed in the button down position when I have the default at 0. It only stays in state 0 when the default is 0.

However, thanks to your tip, I was able to create an atconnect alias that assigns the value of 0 to the variable.

Thanks for all the help!
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