So I am (obviously) new to programming, and trying to figure out how to make this (what should be) simple code work. My issue is in my last line, where I'm trying to call an item in my array, by using an int value to target it. The goal for this code is to display sword1 and sword2 stats, give the user a choice to pick either 1, or 2, and then use their input to situate the choice. ( Sword + equipped value + .name = sword1.name or "Strata")
This is my first code, and if anyone can help guide me in this, or a better method to do this... I would be grateful. I was trying to search up for solutions, but I don't even know the way to write it in a search, that would warrant usable results.