I have very little coding experience, so I'm having trouble finding a way to make an ongoing list for a player inventory in pulp. What I'm trying to do is when the player opens a menu and selects inventory a list of everything they have picked up is populated as options in the menu. As of right now what I have is something like this:
menu at x,y then
if itemSword == "pickup" then
option "Sword" then
end
if ItemSheild == "pickup" then
option "Shelid" then
end
end
This seems to work alright, but if the player doesn't have the previous item(s) in the list the following item(s) don't populate in the menu. I'm just not exactly sure what to do. Any help is welcome!