I have a stacklist for holding monster cards:
stacklist monster[3] start
int hp = 0
int attack = 0
int block = 0
end
I am trying to modify a variable of one of the sublists like this:
monster[0].hp = 3
This will give me an illegal assignment expression error. I have verified that I can assign new values to a normal stack or to the stacklist itself. The error may be by design, but I then can't see what is the point of being able to write (monster[0]).hp?
I am trying to have a variable amount of monsters so I need to cycle through them individually to handle their stats. I needed an array like structure to hold variable and I thought I could use the monster stacklist for it but that appears to not be the case.



