I'm currently scripting a battle system for a game and I'm having trouble displaying the hp in the corner and the name of the enemy. Right now I have the blank text slices loaded up in a slice collection along with everything else in the battle scene. I figured this would be the easiest way to do it, rather than having to use show string at().
Here's what the script says now:
Code:
col := load slice collection(0)
append number(lookup slice(sli:hpcurrent,col),get hero stat(0,stat:hp,current stat))
col := load slice collection(0)
append number(lookup slice(sli:hpcurrent,col),get hero stat(0,stat:hp,current stat))
I assume I'm not supposed to treat it as a string since it's a slice, but I don't know how else to add things to it. Do I not use append number()? Also how would I do the same with an enemy's name?
My pronouns are they/them
Ps. I love my wife



