I wasn't able to get this to work with table.insert, because that requires a numerical index, so I did this:
That gets an entry in there. However I can't figure out how to reference the data in other commands - in particular to update it if the current HP changes, or to get the HP of a character by name.
I think it's just a rookie programming mistake, where I don't know the syntax for referencing the table correctly. Can someone lend a hand, or is there a better way to accomplish this? Thanks!