Hi everyone,
I'm currently trying to hash out an extremely simple HP system - basically just a variable which gets changed when certain choices are made. I want to be able to display this variable on screen, and I discovered ui.text, which pretty much does what I want it to do! There's just one problem -- it only lasts for one screen. I want it to be persistent and display at all times.
(I know that the DSE has a stat system in it, too, but I couldn't figure out how to make it so that you got a game over when you hit 0 in your stats. As a last resort I could always use it alongside a variable, but I feel like there's a simpler solution.)
Here's my code for the UI box, if that helps.
Code:
$ HP = 100
$ ui.frame()
$ ui.hbox()
$ ui.text("HP: %d" % (HP))
$ ui.close()