- Jun 2, 2018
- 543
- 686
I'm back...
Firstly, I'm not married to using classes, or anything for that matter. Here's where I'm at:
My goal is to use a template for generating random characters.
I've created a class thinking I could create different types of people with varying statistics which I could then modify after interacting with them in the game.
Too easy.
Here's the logic:
Every dude in the list takes the parameters set by the final randomized dude.
I understand how and why the variable is taking on the same value, but I don't know how to work around it...
I've already tried using baby syntax. I spent all day on this, converting parameters using loops and returning dictionaries... (Don't laugh)
I know I said I'd tone it down but I feel like this is pretty basic... intermediate at best.
Googling how to use classes properly returns comical results and every vid I've watched doesn't really explain anything. If someone has a link to something useful it would MUCH appreciated!
Thanks all
Firstly, I'm not married to using classes, or anything for that matter. Here's where I'm at:
My goal is to use a template for generating random characters.
I've created a class thinking I could create different types of people with varying statistics which I could then modify after interacting with them in the game.
Too easy.
Here's the logic:
You don't have permission to view the spoiler content.
Log in or register now.
Every dude in the list takes the parameters set by the final randomized dude.
I understand how and why the variable is taking on the same value, but I don't know how to work around it...
I've already tried using baby syntax. I spent all day on this, converting parameters using loops and returning dictionaries... (Don't laugh)
I know I said I'd tone it down but I feel like this is pretty basic... intermediate at best.
Googling how to use classes properly returns comical results and every vid I've watched doesn't really explain anything. If someone has a link to something useful it would MUCH appreciated!
Thanks all