var/gold=0
obj/HUD
layer = 99
New(client/C)
screen_loc=locc
C.screen+=src
Goldcount
icon='Gold.dmi'
locc = "2,24"
maptext_width = 96
maptext_height = 128
maptext = gold
(Just a quick example)
But the compiler tells me I need a constant expression. Is there a way to have maptext output change based on a variable?
I haven't explored maptext that much but it might be worth trying
On another not that gold variable doesn't belong to a client so it's a global variable.
It will still display a result though.