Hello, I'm pretty new to C++, but so far I have managed to figure things out from the tutorials on this site. I'm glad they were written, they have been quite helpful. But now I've ran into a problem.
I haven't actually done it yet, but I'm going to have a menu where a player selects what area they want to explore from a list. After they pick an area there is a random function that goes off, and based on the result of the random, an event will happen. Such events include finding a chest with gold in it, eating a bad berry, and running into monsters. All that I'm sure I can figure out on my own, except for the monster part.
I want to set up attributes for monsters, such as they're name, hp, level and things like that. And then when a player comes into contact with the monster function, it will run another random function and based on the result(say there are 5 monster types in the area, if the result is 3, "Crockile" or something will show up), a monster will appear. This is where the problem lies. I figured a class could be used to call the monster data that goes with the number, but I have no idea how to save the monster data or to call it with the class. I think I can figure out how to call it, but not really sure how I should save it.
I'm sorry if my description is not all that clear, I don't know the technical terms for these things. If anyone gets what I'm saying, a nudge in the right direction would be great. Thanks.