0 votes
asked by (180 points)

Hi! I'm new and very noob.

I'm trying to let the player save only on some passages, so i foud this: 

Config.saves.isAllowed = function () {
	return tags().contains("allowed")
};

And it's working pretty well. (it's possible to save only on passages that have the tag "allowed")

The problem occurs when the player decides to save in a passage where it is not allowed to save: it doesn't save (pretty fine) but it doesn't display the message "Saving has been disallowed on this passage." that is supposed to display according to this documentation. It just close the save window.

It's a bug? Or i did something wrong?

 

1 Answer

+1 vote
answered by (57.1k points)
selected by
 
Best answer
This is a bug that has been fixed. You need to update to a more recent version of SugarCube 2 to get the fix. The 2.21.0 version packaged with Twine is not the most recent version.
Welcome to Twine Q&A, where you can ask questions and receive answers from other members of the community.

You can also find hints and information on Twine on the official wiki and the old forums archive.

See a spam question? Flag it instead of downvoting. A question flagged enough times will automatically be hidden while moderators review it.
...