Page 1 of 1

Make gauges update automatically

Posted: Wed Jan 16, 2019 1:37 am
by jwrobbs
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?

Re: Make gauges update automatically

Posted: Wed Jan 16, 2019 1:58 am
by valaria
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

Posted: Wed Jan 16, 2019 2:02 am
by jwrobbs
No, it's in the script.

Re: Make gauges update automatically

Posted: Wed Jan 16, 2019 2:09 am
by jwrobbs
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

Posted: Wed Jan 16, 2019 2:19 am
by valaria
:ugeek:

Re: Make gauges update automatically

Posted: Wed Jan 16, 2019 6:18 am
by Vadi
Scripts only get processed on startup and when you save them - it is triggers that get processed for every line.