Original Post
Now that I have a semi-decent battle system up and running, I want to move on to the next item on my list-multiple characters. The only problem is, each character in my game has their own storyline to follow. So, what I was originally thinking was to use a switch statement or an if-else statement to create each storyline individually. But I'm unsure if that would cause a problem.
EXAMPLE I SPEAK OF:
I create a class with 6 different player characters, then have them selectable via a switch statement (cases 1-6). I am planning to use arrays for the rooms,enemies and equipment. Say I call a piece of array in case 1 of a switch statement, and then that same piece again in case 2. Would that cause a problem? Same deal with if-else. Would calling the same part of the array multiple times over and over again in the same part of the program cause a problem?
EXAMPLE I SPEAK OF:
I create a class with 6 different player characters, then have them selectable via a switch statement (cases 1-6). I am planning to use arrays for the rooms,enemies and equipment. Say I call a piece of array in case 1 of a switch statement, and then that same piece again in case 2. Would that cause a problem? Same deal with if-else. Would calling the same part of the array multiple times over and over again in the same part of the program cause a problem?