Is there a way to insert a link that forces a Restart

Is there a way to insert a link that forces a Restart in the body of a section instead of having to scroll to the textadventure inserted Restart link?


I used this technique and it works nicely....

First I place Restart in a phrase in a section. Then hilite it and click on the Add Section tool.

Squiffy will place a new Section somewhere following. I just hilite and CUT and then paste at the beginning of the program.

Then I can copy the Restart syntax and place in each section that it is needed.

First lines of code --

[[Restart]]:
@clear

At appropriate place in following Sections--

[[Yes]]:
"I am so sorry but I don't think it was I that you met. Perhaps you should be better informed. It looks like you will have to Start Over by clicking on [[Restart]] again."


I used this technique and it works nicely....

First I place Restart in a phrase in a section. Then hilite it and click on the Add Passage tool.

Squiffy will place a new passage somewhere following. I just hilite and CUT and then paste at the beginning of the program.

Then I can copy the Restart syntax and place in each section that it is needed.

First lines of code --

[[Restart]]:
@clear

At appropriate place in following Sections--

[[Yes]]:
"I am so sorry but I don't think it was I that you met. Perhaps you should be better informed. It looks like you will have to Start Over by clicking on [[Restart]] again."


I'm not quite clear on what you are saying here. However, there is a concern that if you are using "seen" functions, unless you actually let the program do its own user-click reset, it might not reset the seens.

Anyone know how to unsee something? That would be cumbersome , through. You'd have to keep track of everything you would need to unsee. Possibly there is a global unsee?


Does the javascript window.reload() work?


@Bluevoss I do not have any functions other than dialog and checking for answers to questions. That all seems to get reset nicely. I did notice that I must copy the original section link and past where I need it. If I copy a pasted link, it doesn't work.

The technique described works nicely for me so the user does not have to scroll back to find the "factory restart."


@mrangel I cannot get window.reload() to work.

The display goes blank and then nothing is displayed.

dan


This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums