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


Joined: 29 Jul 2002
Posts: 105

PostPosted: Sat Feb 21, 2004 2:33 am   

Toggle Buttons
 
I'd like to make a button, that shows the Variable @tank as it's label, I'd also like that when it's clicked, it turns on or off the class following so... @tank, and clicking alternates #t+ following, and #t- following. I tried but for the life of me couldn't get it to work :(
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat Feb 21, 2004 5:51 am   
 
Use the Settings Editor.
Caption: @tank
Value: #IF (%class( following)) {#T- following} {#T+ following}
Reply with quote
darkspot
Apprentice


Joined: 29 Jul 2002
Posts: 105

PostPosted: Sat Feb 21, 2004 10:21 am   
 
that didn't make it so when pushing it it'd turn the class on/off. it pushes... the tank name is on the button... but :( well thanks for the caption at least
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat Feb 21, 2004 3:53 pm   
 
Sorry to disagree, but that is precisely what it does. If the "following" class is on, it turns it off. If the class is off it turns it on.

EDIT: I should perhaps point out that the script is for a Push button, not a Toggle button.
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