I will be designing a level that will present participants with a corridor that branches into two hallways. As the player approaches the door of one of the hallways, they are transported to another scenario where they will repeat the process.
I would like to record the choices of the participants with a simple string that contains all of their choices as 0 or L, and 1 or R. So, if they choose the left hallway, their decision will be recorded with an L or 0 string. I imagined that I could just concatenate strings together to store all decisions as a single string. However, it appears that appending strings for each decision into an array of strings may be my best path forward.
Here is my problem:
I need to save the string, array, or whatever the variable type is, into a plain text document that I can examine at a later date for analysis. Also, if possible, I’d like to be able to print the array to screen as back-up information that can be recorded by hand.
Is there a way to save arrays or strings as text documents in the same file folder as the game? Also, is there a way to print an array of strings to screen?
Though an array of strings seems like the best way to store the data, I’m certainly not attached to that method. If anyone has any ideas for how to better store the information, I’m very open to suggestions!