I've been working on my menu system, but I've come to a problem... I'm trying to make it so every character has their own item inventory, and so, I've done this:
#If (kail!=1)
{
#p!=p!+1
#person[p!]$=KAIL
}
Now, person1$=KAIL, and so, because this is true now (with kail!=1 of course), I'm making it so the player can selecton one of the charater's iventory. The problem now, is that I'm also trying to show their inventory when they are highlighted (but not selected), and so, I must access the item depending on the player. So I have set it up like this:
#char$=person[p!]$ *This makes the equation simplify. When pressed left or right, it changes p!.
#iy!=35.7
#FontSize(
#ColorRGB(255,255,255)
#If (potion[char$]!>=1)
{
#i!=i!+1
#itemload[i!]$="#Load_Potion()"
#itemuse[i!]$="#Use_Potion()"
#iy!=iy!+1.25
#Text(29,iy!,"Potion <potion[char$]!>")
#Titem!=Titem!+1
}
But, instead of being able to make potionKAIL! the variable, it seems to be unable to do this (with potionKail! equal to something). This would also change depending on which character it seleced, like potionFIONA!.
So, does anyone know what I am doing wrong in this? :unsure: