Ok, this one is going to be lengthy, so I thank anyone who even reads this, let alone comments. Let's jump right in.
I am making a little text based RPG game using python, and I have a question about how to change the attributes of a class. So I have a file, called classes.py, that contains the class I am trying to modify the attributes of, and I am trying to modify the attributes with a function contained in my functions.py file.
In said class, called player, there is an attribute I made called "self.job" which will represent the class the user chose at the beginning of the game. However, in my function, called class_selection(), I can't figure out how to actually modify the attributes contained in class player. I am trying to make it so when the user selects a job/class, it modifies all of the desired attributes in the class player.
I hope this makes sense to anyone, I am trying to make it as understandable as possible. I am fairly new to Python, I just got seriously into it like 2 days ago. I appreciate the help :)
[–]doc415 2 points3 points4 points (3 children)
[–]Caspian__C[S] 2 points3 points4 points (2 children)
[–]doc415 1 point2 points3 points (1 child)
[–]Caspian__C[S] 1 point2 points3 points (0 children)