I have been working over the past few days to see if I can fix this issue. The farthest I was able to get was to put code inside of the screen that the player uses to access items.
Code: Select all
for items in armory.inventory:
$ simparm = set(armory.inventory)
for items in armory.inventory:
$ numcheck = armory.inventory.count(items)
for items in simparm:
textbutton "[items.name] X[numcheck]" action SetVariable ("itemselect", items)
I have tried doing list(set(armory.inventory)), but it does the exact same thing.
I am able to have numcheck work as intended but I would have to change the code to
Code: Select all
for items in armory.inventory:
$ numcheck = armory.inventory.count(items)
textbutton "[items.name] X[numcheck]" action SetVariable ("itemselect", items)
Otherwise I am at a loss on how to implement this feature correctly. At this point I am certain that I may need to change up the inventory system I have in place, but I do want to note that I am looking to keep items listed as textbuttons and have their amount listed on screen.
I can provide more code from the inventory code. However I don't think that any other piece of code is conflicting aside from the code listed here.
Any help is appreciated