How to use the inventorypane test function? #122
-
I have a couple different types of items I want to give separate inventory panels. However I'm having trouble getting the test function to work. What is the best way to check for these separate types? In a previous version of this project I would use a check if a boolean was true to differentiate types of items, but this doesn't seem to work for the test function. This version of the code tries to use list filtering to get around this, but it still doesn't seem to work.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I have solved the issue. I was using the wrong location. (player.loc vs player.name) This code works fine:
|
Beta Was this translation helpful? Give feedback.
I have solved the issue. I was using the wrong location. (player.loc vs player.name) This code works fine: