I was looking for an easy way to define variables for random monster encounters in my game. I'm not sure how to define some without typing out 1000+ lines of code for like 25 monsters. What I was wondering if there was a way to make a config file, or a way to do it in the c++ code itself where I could just define the monster, and set the integer values for it's variables. So something like this, don't know the code, so I'll kinda just write it out. Something like this.
damage = 10;
health = 20;
defense = 10;
damage = 25;
health = 30;
defense = 15;
Something like that would be greatly appreciated.
Bonus points for text editable config file!