Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Twine 2 + Sugarcube 2 = how?

Short question: how do I use the save API?
Do I have to add macros to operate the API from the JS?
I've read the documentation but I can't find any info about using the APIs.
Sidenote to the author: would be nice to have an example or explanation how to use all these features.

Comments

  • What exactly do you want to do with the Save API?

    If all you want to do is allow the reader's of your story to save their progress then they can do that by clicking on the Saves link/button in the side-bar.
  • To add to what greyelf said, if you've hidden the UI bar but still want to be able to open the saves dialog you want the UI.saves() static method. Used thus:
    <<link "Saves">><<script>>UI.saves()<</script>><</link>>
    


    You only need the Save API if you want to manually handle saves.
Sign In or Register to comment.