User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

harlowe:saved-games [2017/10/09 20:39] (current)
Line 1: Line 1:
 +**(saved-games:​ ////) -> //​[[harlowe:​Datamap|datamap]]//​**
 +This returns a [[harlowe:​datamap|datamap]] containing the names of currently occupied save game slots.
 +=== Example usage: ===
 +''​%%(print (saved-games:​)'​s "File A"​)%%''​ prints the name of the save file in the slot "File A".
 +''​%%(if:​ (saved-games:​) contains "File A"​)%%''​ checks if the slot "File A" is occupied.
 +=== Rationale: ===
 +For a more thorough description of the save file system, see the [[harlowe:​save-game|(save-game:​)]] article.
 +This macro provides a means to examine the current save files in the user's browser storage, so
 +you can decide to print "Load game" links if a slot is occupied, or display a list of
 +all of the occupied slots.
 +=== Details: ===
 +Each name in the datamap corresponds to an occupied slot name. The values are the file names of
 +the files occupying the slot.
 +Changing the datamap does not affect the save files - it is simply information.
 +=== See also: ===
 +[[harlowe:​save-game|(save-game:​)]],​ [[harlowe:​load-game|(load-game:​)]]
harlowe/saved-games.txt ยท Last modified: 2017/10/09 20:39 (external edit)