I've been going thru the material about Geyser: https://wiki.mudlet.org/w/Manual:Geyser#Geyser.Gauge
I have a trigger (in triggers) that stores the numbers I need.
I have a script (in scripts) that creates and styles the gauges.
But the gauges only update when I save the script even though I know the variables are changing. What did I do wrong? What did I miss?
Make gauges update automatically
Re: Make gauges update automatically
did you add code in triggers that use those numbers to update the gauge like e.g:
?
Code: Select all
hp_bar:setValue(current_health, max_health)
Re: Make gauges update automatically
No, it's in the script.
Re: Make gauges update automatically
That fixed it. I swore I read that the scripts got processed on every line. I assume that is incorrect.
Re: Make gauges update automatically
Scripts only get processed on startup and when you save them - it is triggers that get processed for every line.