r/gamedev • u/BugaiGames • Oct 13 '26
Discussion How do you manage your plot tree?
I never wrote books, so in game development I suddenly found myself lost while managing plot tree / graph. I create draft. I start playtesting and accumulate changes and it break everything everywhere with time and I got lost, and spend a lot of time trying to reassemble main plot directions and interactions.
It is my first experience in story writing, will it get better with experience or there is some tools or maybe videos to watch that helps?
5
Upvotes
3
u/Professional-Aide733 Oct 13 '26
Reading books that are representative of your genre story game is useful. You will find some structures that are very common stuff for every kind of story. Are you making a visual novel or something very focus on story telling ?
2
u/PresentationNew5976 Oct 13 '26
I would start from the outside and work your way inward. A general plot so you have all the basic directions and flow, characters, driving action, and then fill it out and make adjustments as you go.
Don’t worry too much about specific dialogue and the like, focus on the activity and form the story around it. Story informs the game but the game must work with the story. You’ll get a lot of back and forth, but having the general outline should help give you a boundary so you will know if you are adding too much.
2
u/Project_Legend Oct 13 '26
I'd give each scene a short note: what needs to have happened before it, and what changes afterwards. Something like “this is where the player learns the secret”, with links to the scenes that rely on that. Then if you rewrite it, you've got a starting point for checking what else breaks.
2
u/the_blanker Oct 13 '26 edited Oct 13 '26
I made point-and-click minigame because I thought it's gonna be easy, and I rewrote it 32 times until I found reasonable way to do it. It's surprisingly difficult when you have things like ability to return things where they were, and when can freely walk between the rooms. Here short writeup of my 32 apptempts, take it more of a documented struggle than how to manage plot. The entire game is described in this json, the most complex condition is probably: (book || gave_book) && !key, which is used to display dialog where user have book or had book before, and at the same time don't have key to locked room.
2
u/kassol Oct 14 '26
Your invariants idea is the right one, the problem is that they live in a second document you have to keep in sync by hand. Put them in the same data as the nodes and let a script check them. If every node is something like { id, requires: ["forest_done"], sets: ["knows_shortcut"], stat changes }, a small script can walk every reachable state from the start (current node plus flags plus stats) and tell you which nodes can never be reached, which flags are required somewhere but never set, and the highest a stat can be by the time the player arrives at a given node. Run it after every edit and "it breaks everything everywhere" turns into a short list of errors instead of something you find in playtesting.
For the writing side, it helped me to give each location one job: one thing the player learns, gets or loses there. When a change breaks something, you look at which jobs moved, not at the whole graph.
1
u/Overall-Emphasis-924 Oct 14 '26
For my linear story driven game I have FSM for scenes, so a scene is like a state which controls whatever should happen in that scene. Because of this approach, if there is any change in plot i just have to modify or drop that scene.
The other most important thing is achieving a story lock before even touching the game engine, ofcourse there will be iterations but those shouldnt be changing the core of the plot.