Button Names

Share your scripts and packages with other Mudlet users.
Post Reply
rolly
Posts: 27
Joined: Sat Jul 03, 2010 9:51 pm

Button Names

Post by rolly »

Hi everyone, This is my first post to this forum. I am looking for a way to store and update the value of a variable to a button name. I've looked all over and can't seem to find it anywhere. This was quite easy in Zmud and Cmud. For instance in a limb counter the damage done to a limb is shown on the button and pushing the button attacks the limb. Then I simply made a man-shape out of buttons and triggers to update the damage variables.

User avatar
demonnic
Posts: 886
Joined: Sat Dec 05, 2009 3:19 pm

Re: Button Names

Post by demonnic »

I don't believe you can do this with actual buttons, but you can using labels, which can be used somewhat like buttons.
See the createLabel(), and the setLabelClickCallback() functions


ETA: Also, labels can take css, making them quite flexible in the formatting arena.

Post Reply