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
surge4883@yahoo.com
Beginner


Joined: 30 Jul 2010
Posts: 19

PostPosted: Sat Sep 04, 2010 5:03 pm   

%btncol
 
I am having trouble with the btncol function. I have a button that I want to change colors when I enter a certain command.

#NOOP %btncol( @Wardstype, white, black)

The button's name is @Wardstype
The name of the button changes depending on what ward I have on, and I want to change the color when my ward drops.
When I try doing the btncol function, it changes the color of a different button. I don't understand what is wrong. How do you make btncol specify which button changes color?
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4692
Location: Pensacola, FL, USA

PostPosted: Sat Sep 04, 2010 5:12 pm   
 
Give the button an ID and use the buttonID
_________________
Discord: Shalimarwildcat
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sat Sep 04, 2010 7:12 pm   
 
Buttons can have two different types of IDs, an automatic numeric one and a text one provided by the user. It is recommended that you use the text id, because the button number will change based on where it appears in the Settings Editor (basically).
_________________
EDIT: I didn't like my old signature
Reply with quote
surge4883@yahoo.com
Beginner


Joined: 30 Jul 2010
Posts: 19

PostPosted: Mon Sep 06, 2010 9:03 pm   
 
ok I found in the advanced settings that I can set an ID
Now I have an alias that resets my ward inside it it currently says this

#NOOP %btncol( @wardstype, white, black)
where in there would I place a buttonID?

#NOOP %buttonID(wardbutton)%btncol( @Wardstype, white, black)
like that?
Reply with quote
surge4883@yahoo.com
Beginner


Joined: 30 Jul 2010
Posts: 19

PostPosted: Mon Sep 06, 2010 9:11 pm   
 
nvm I was able to figure it out

thanks for 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