It looks like you're new here. If you want to get involved, click one of these buttons!
(load-game:)macro requires you to know what the save file was in order to have a link to load it.
(if: (save-game: (prompt: "Name your Save" + " "(current-time:) + " " (current-date:)))) [Game Saved. (current-time:)](else:)[Save Failed]Any suggestions?
Comments
Harlowe saves are not files they are records stored within your web-browser's local storage cache.
The (saved-games:) macro when combined with the (datanames: ) macro can be used to obtain an Array containing the names of the known saves.
How you loop the contents of that array and create links based on the names stored within it depends on which version of Harlowe you are using.
How would you create the links based on the names?
The following solution uses the Display Macro Recursion with a Named Hook method to emulate looping.
1 Add code like following to the passage you want the list of load game links to appear in:
2. Create a Display Load Link passage and add the following code to it:
note: You can change the names of the Named Hook, the Variables and the Displayed Passage to whatever makes sense in your story, as long as you update the code in points 1 & 2 to include the new names.