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

chipper3
21 Jan 2020, 17:05

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?


chipper3
22 Jan 2020, 03:40

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."


chipper3
22 Jan 2020, 03:40

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."


Bluevoss
24 Jan 2020, 05:19

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?


mrangel
24 Jan 2020, 10:10

Does the javascript window.reload() work?


chipper3
24 Jan 2020, 18:18

@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."


chipper3
28 Jan 2020, 00:09

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

The display goes blank and then nothing is displayed.

dan