I am a very noob programmer and while I am pretty computer savvy, I am really struggling setting up a HP bar on my MUD profile.. YES I have read the article and NO I dont understand it

Here is my bar, I know... it looks exactly like the example... well this is where I am confused. How do I define the variables current_health and max_health??
how can I keep them current every time my prompt is read to the screen
would I use a trigger? if so how would i set the trigger to look for THOSE number?
also. I am about to post some mapping questions as well, if you are smart as heck give that a read too, you might just make my day!!
Thanks for any help you can give!!!!
MUD ON!
my prompt is as follows
"currenthealth/maxhealth >"
hpbar = Geyser.Gauge:new({
name="hpbar",
x="60%", y="20%",
width="45%", height="5%",
})
hpbar:setValue(current_health,max_health)
ERROR::::
Attempt to compare nil with number