Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
dak
Beginner


Joined: 08 Aug 2009
Posts: 14

PostPosted: Wed Aug 12, 2009 5:09 am   

[3.10a][Help] Lua Gauge Value
 
I'm trying to use Lua to control the value of a gauge. I haven't been able to find documentation on the correct variable to set, so I've tried a number including "value", "gaugevalue", "gaugeval", "expr", and "gauge", although none so far have worked.

The relevant code is below:
Code:
zs.getbutton("button name").value = 6


I'm able to update other properties of the button such as textcol and color, so there's no problem there.

What variable should I be setting for the value of a gauge? IE, if max = 10, min = 2, what variable sets the current state of the gauge?

Thanks.
Reply with quote
dak
Beginner


Joined: 08 Aug 2009
Posts: 14

PostPosted: Wed Aug 12, 2009 5:15 am   
 
I answered my own question. I was looking for 'boolval'.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum 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