Heres a small tutorial for you all.
It will allow you to settext() to any clienthudelem any string you desire.
Known bugs: does not work properly with killcam and .archived = true (so set .archived to false if you use killcam, or just dont use it all together )
Background:
Spoiler:
Ok, on to the code:
Spoiler:
Looks like an aweful lot of code, but it isnt.
All you need to know is:
So, you manually need to find a free index for the createinfhud. I suggest you do this statically so all clients have the same hud associated with the same configstring (eg self.statshud = createinfhud(13) for all clients) This will then return a hud element which can be used with hud setinftext("any string that isnt localized and is under 256 characters long");PHP Code:
newclienthudelem() is replaced (and wrapped) by createinfhud(num)
settext() is replaced (but not wrapped) by setinftext(txt)
init() needs to be called ongamestart
You need a libcod version that supports G_FindConfigstringIndex()
Thats all
Have fun with it