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
dragonheart
Beginner


Joined: 09 Jun 2002
Posts: 15
Location: Norway

PostPosted: Wed Sep 06, 2006 10:46 am   

Odd output using %btncol command
 
Hi
I've been working on defining some buttons in Zmud that triggers on certain things in the game.
That all works fine.
Problem is when I change the colour of the button.
For instance, I change the colour like this:
%btncol ( testbutton, green, white)

The button changes into a nice green button with white text, BUT, it also sends "47" to the MUD. Why?!?!

I tried to change it to see what made this number. So i typed
%btncol ( testbutton, white)

Cool, nice and white button, but the client sent 32895 to the mud. What is this?! I don't want the button to send anything to the mud except what i write for it.
How can I remove this?

Please help....

Thanks
Dragonheart
_________________
Best regards,

Dragonheart
Reply with quote
Larkin
Wizard


Joined: 25 Mar 2003
Posts: 1113
Location: USA

PostPosted: Wed Sep 06, 2006 12:03 pm   
 
Most functions return values. You sometimes don't care about return values on functions such as those that manipulate buttons. That's what commands like #NOOP are for, eating the return value so it doesn't get sent to your game. (The return value, in this case, I believe is the previous color value of the button.)

#NOOP %btncol(testbutton, green, white)
Reply with quote
dragonheart
Beginner


Joined: 09 Jun 2002
Posts: 15
Location: Norway

PostPosted: Wed Sep 06, 2006 12:42 pm   
 
That's it. It suppresses the feedback. Excellent. Thank you very much
_________________
Best regards,

Dragonheart
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