Instead there is a bunch of if-then conditions where the dialogue that shows up is based on what the player has done/read before hand. To move the story forward, you solve puzzles and get items. Large portions of the story are locked away until you complete certain tasks.
I'm trying to find out if anybody knows of a method of how to write the script so that it is follow-able, not confusing, and easy to implement.
I'll tell you my current method. Right now I split up my files into three types: Character Outline, Character Script, Location Script.
Here is a screenshot of my google docs folder

In the character outline file, I try writing the story like in a normal writing style where I just outline what will happen and such.
Here is an example

Then I have the character script file where I take what I wrote in the outline and turn it into an actual script.
Here is my example

It's the script of all the dialogue between the main character and that specific character. As you can see the writing doesn't really stand on it's own and it's hard to tell what is happening unless you wrote the entire thing which makes it hard for me to hire new writers. I also feel like later on, I'm going to have 50 if statements before a single line of dialogue, which can't be a good thing.
The last file I have is location script file which is very similar to the character script file but instead of all the dialogue that happens between the MC and one character it is all the things that happen in that specific location with all characters. Here is my example of the Cafeteria Script

So that's how I'm trying to organize all the writing. As you can see, I don't think this method is working out quite well. For the first 10-20 minutes of game-play I already have like 30 different files created. I feel like the complexity will keep increasing exponential as I add more characters,quests, and objects.
Does anybody know a better way? Either a better way to organize all the files/documents or a third party software that specifically handles this type of writing?
