0 votes
by (120 points)
Hey guys. I'm Jay and I am totally new to twine. Just writing a little multiple choice adventure with twine Ver 2.1.3 and I want to know is there a way to make it impossible for people to return to the previous page once they have made a selection?

Thanks in advance. Looking forward to getting to grips with it all and seeing what I can do with it.



1 Answer

0 votes
by (156k points)

Please use the Question Tags to state the name and full version number of the Story Format you are using, as answers can vary based on this information. You have stated that you are using an older version of Twine 2 (v2.1.3), I suggest upgrading to the latest version as it contains updates to many of the included story formats.

Because you haven't supplied the required information about the story format you are using I will need to supply answers for each of the story formats that support side-bar based Undo link/buttons.

A. The Harlowe 1.x and 2.x series's.

Each of the Undo & Redo links shown by both of these story formats are represented a tw-icon HTML elements contained within the left side-bar's tw-sidebar HTML element. You can use CSS within the Story Stylesheet area to either hide both of the tw-icon HTML elements like so.

tw-sidebar tw-icon {
	display: none;

... or (my preferred solution) because current the left side-bar only purpose is to contain the Undo & Redo links you can hide the whole side-bar using CSS like so.

tw-sidebar {
	display: none;

B. SugarCube 2.x series.

This story format includes Config.history.controls configuration setting which you can use within your Story Javascript area to hide the navigation "Go backward" (Undo) and "Go forward" (Redo) buttons found at the top of it's left side-bar.

C. SugarCube 1.x series.

This story format includes a config.disableHistoryControls configuration setting which you can use within your Story Javascript area to disable the ability to use the web-browser's own "Go back" and "Go forward" navigation buttons to traverse the story's Passage History.

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.