How do I…
Add a dynamic inventory display screen using static buttons that select the current option to the right of it?
What is the expected result
The first option displayed is the currently equipped weapon at hand. When you click it it gives you a little dialogue blurb. But the tricky part is assigning items 2, 3, 4, etc to their own buttons. The buttons are currently invisible, but are in the place above the ___ space to the left. I found a way to display dialogue according to what my inventory holds-- if I have a health potion, it says "___ 1x Health Potion (Heals +15 HP), and if I dont have a Health Potion, it skips and in slot 2 is ___ 1x Luck Potion (Grants +5 Luck). This is as intended, but the problem is that I have no clue how to assign that button to the CURRENT item in that space. The buttons are labeled buttons 1-6, the top being the blank space next to Melee, second being the blank space next to health potion-- you get the drift right?
What is the actual result
So I cannot for the life of me figure out a solution that adapts the buttons in place to the second inventory option, etc. I want to make that button the USE button so that it consumes the item, gives the text blurb about the item up top.
Related screenshots
Ideally when I master this I’m going to apply it to the shop mechanic and then the actual CYOA aspect of it. Its 5:18AM third day in a row on like next to no sleep-- clocking off for the night. Thanks for whatever help yall can provide.