DaveTheCoder ...
I started programming on a PDP11, with punch-cards, in 14-bit 'words', using toggle switches. I spent quite some time with Atari 68K ASM programming (plus the usual 'GFA Basic's etc...), then on to higher level Production Management stuff, with Paradox, and some C++ (I didn't do so much coding then, just the analysis and programming, others tapped the code...). All that to say that, firstly, I'm OK with the principles of the stuff, and secondly : yes, I'm old, and have less retention than in daze of yore.
I can probably integrate the Slots into my Globals (more shoehorns...), but would still need to be able to read their contents into an Array (for Load/Save operations, later..?).
And 'Yes, arrays in GDScript'. I've been making this Dungeon Master since 2021, learning Blender and Godot 3.5 along the way. At 76 next birthday, I'm not sure when or if Level 5 will be complete (Entry, Levels 1 and 2 are operational, 3 is WIP, 4 and 5 are built, but not populated yet. Adding this Inventory (plus Particle explosions on a bug's demise...) is, for me, a major overhaul (and an opportunity to check it all works well...). I still have to add the bonus/malus associated with each Item (Poison antidote, or vaccination, health/stamina up, or down if the Item given turns out to be rotten...), and have the creatures 'spawn' the random Item when they expire. There are certainly better ways of organising the whole venture, but, for this Project, that ship has sailed. I'm pleased with the result so far; t'will be all the better once I get these pesky Arrays mastered (well, if not 'mastered', at least 'operational..!).
Sorry, long post. Arrays, then. Should I just pile in and fight my way through..? I'll win in the end, that's certain, but there may be other versions of Godot by then..! Any pointers, or pseudo-code, compatible with my code above..? :-)