Didn't really know what to name this post but basically I want to make a program that will allow players of my game to change specific variables so they can mod it. IE the experience points you get for killing something or the damage you do or maybe the gravity of the level. I know there are some posts on writing to a txt file and what not but I was thinking of doing something more along the lines of how unreal script does which basically they define which variables they want and looks a little like this:
///You have a variable that you want users to be able to mod after you publish the game. So you would define those variables like so
int config Damage;
///Config being the keyword that would tell the program that this variable is going to be defined in a txt file.
Now I know you can't define variables like that but this is basically how unreal script does theres. Would there be a way to do this and what would be the difficulties behind a program like this. I'm really just looking to do this as I work on my main project so if anyone knows that this is going to be a big task or would be pretty difficult please let me know before I start trying to dive into it.
Any suggestions or help would be greatly appreciated.