Hi, I am looking for a way to create a 2 functions that will basicly do 2 things:
1) Displays the history of choices, example below:
I went through 5 different passages (Intro, Left, Left, Right, Jumped)
This would help create a nice history for me, to make sure everything is working in my dynamic story (many different endings).
2) Similar one (not sure if fully possible though), but with a coded "save state" that can later be decifred, for example each passage would have an ID (or would use tags), and it would add as youre going, so if you stop on one of them your code would be 2A5FAD, it would be easy to recreate for you. Maybe even with an input field to recreate all decisions?
Anyone got any clue how to approach this?
Comments
re: Displays the history of choices
This functionality is possible to do in each of the different story formats although the actual implementation would be different for each one, thus the need to know yours.
re: Save State Codes:
It sounds like you are trying to implement a way to save the path the Reader took through your story, both Harlowe (1.x and 2.x) and SugarCube (1.x and 2.x) story formats already have a History Save System built into them.
Thank you.
1. Displays the history of choices
Create a header tagged passage and place the following example in it.
2. Save State Codes
I suggest reading about the (save-game: ) macro and the (load-game: ) macro
As for the save option, I am looking to have a code instead of save / load type thing. As I want to make a help system for a board game, so that players know where they stopped, just by copying the code in the footer, and then pasting it into input, so that all the decisions he made has been still active.
Will the save option be able to do that?