• Hey! Register here to create your account, engage with the community, and talk about what is new!

Opening a chest containing an empty list variable

ThiccEgg

New member
Joined
May 25, 2021
Messages
1
Reaction score
0
I am trying to make a chest that starts out empty, but players can add items to it. The items of the chest are held with a list variable that starts with nothing in it, but when the list is empty and I show the player the chest 'menu' it does not show up.
 

ARMcPro

Forum adept
Overlord
Joined
Oct 20, 2020
Messages
1,260
Reaction score
356
You can check if the list length is 0 or if the list variable = 0 before showing the menu, if it is, show an empty menu
 
Top Bottom