I have this code here for creating monsters.
This array is made from the monster template code I have here.
I want to set a String variable (specifically a random name of the monster.) in my main game code. I cannot figure out how to get just the name part out of the monster from the array.
My end goal is to get a random monster to show, and then tell the player the name of the monster, and allow the player to fight it, but I need to know how to get the information on the monster out of the array to use in the code I have for fighting/taking damage and such.
If you need any more information or anything (I probably messed up in my explanation), then please tell me .
Thank you for taking the time to read this.