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
Foma
Newbie


Joined: 11 Feb 2002
Posts: 7

PostPosted: Tue Feb 19, 2002 8:58 pm   

button problem
 
When i start zmud, my custom buttons seem to not work, but when i click them they seem to start, for example i got a toggle type button to turn certain sound triggers classes on and off, when zmud starts the default is on i try to trigger the sound and get nothing, i turn the button to the off position and get nothing, i turn the button back to the on position and they magically start working, anyone know what the problem is?
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Tue Feb 19, 2002 11:08 pm   
 
You most likely have to click on a toggle button
then click on it again to get your desired
effect, right?

When you start zMud, all your buttons will
load but as you haven't clicked on them
the effect your buttons do, won't have
taken effect.

Add into your login scripts the following
concept:

#BUTTON <buttonname or id number> <0 or 1>

That way it will execute the scripts behind
the buttons. Your buttons will now show
the correct state and the scripts behind
the buttons will have taken effect.

TonDiening
Beta Upgrading to 6.26
Reply with quote
Charbal
GURU


Joined: 15 Jun 2001
Posts: 654
Location: USA

PostPosted: Wed Feb 20, 2002 9:22 am   
 
Or set the value of the button to %trigger(Classname)

If the commands for toggling enable and disable the class, then the button state will change as well.

 - Charbal
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