Story based game, story event programming

Hello!
I just started working with unity and I want to make a story based game, but i’m not sure what approach to use. How do I remember the choices made by the player? I could create a bunch of variables where all the decisions would be stored, but I believe there is a better way. In related threads, I read about game states, but there were no examples of how they work. I will be very grateful for links to tutorials, books or videos explaining how to make such games.

Hello!

Some links:

Finite State Machines Ultimate Guide + Functional Implementation | Unity/C# Tutorial - YouTube.
Unity 3D - Make a Basic AI State Machine [2017] - YouTube

Good luck!