Hello,
I am currently using Harlowe on Twine 2.
I have a story with a cover page that works as a start screen.
The page has the following options:
"New Game"
"Load Game"
"Achievements"
"About"
I am having trouble with the "Load Game" option: I would like it to only show up if a saved game exists.
If a saved game doesn't exist, I would like it to appear as greyed out / unclickable text.
Right now, my code for loading a game looks like this:
And for saving it is:
And I would think this issue could be easily resolved with an if:/else: statement, ie: if a savegame exists, show the code above; else show plain text.
I can't, however figure out what to put in the if: clause.
Note: I haven't figured out the Achievements yet, but I'll most likely open a new thread for that soon.
I am currently using Harlowe on Twine 2.
I have a story with a cover page that works as a start screen.
The page has the following options:
"New Game"
"Load Game"
"Achievements"
"About"
I am having trouble with the "Load Game" option: I would like it to only show up if a saved game exists.
If a saved game doesn't exist, I would like it to appear as greyed out / unclickable text.
Right now, my code for loading a game looks like this:
[Load Game]<restore|</li>{(click: ?restore)[Done!(loadgame: "A")]}
And for saving it is:
[Save]<save| {(click: ?save)[Done!(savegame: "A")]
And I would think this issue could be easily resolved with an if:/else: statement, ie: if a savegame exists, show the code above; else show plain text.
I can't, however figure out what to put in the if: clause.
Note: I haven't figured out the Achievements yet, but I'll most likely open a new thread for that soon.