One idea would be that you plan your story like a tree structure, if it is complex and has moments where the story is forked.
Than you could assign a number to every node of the tree and simply save this node number.
If you habe things like serveral quests or something similar you could build a tree for every single of these quest and save there suiting numbers.