Non-threaded

Forums » Advanced Editor Forum » Read Thread

Get help from the experts on variables, scripts, items, and other scary things.

How to create a link "back to previous page" ?

10 years ago

I think in my storygame I'll need to use recurring devices such as terminal computer. The terminal computer will have a familiar user interface and choices each time the user access. The problem is the terminal computer can be accessed from different pages, and need to return to the previous pages when the user is done with the computer. If not, I need to create a different computer entry page for each individual pages that has access to computer terminal. How can I create a universal "back to previous page" link, but with all the modified data inside the terminal computer intact (e.g. not the "go back" link on the top of the story games, which rollback the changes made by the pages)?

 

Thanks,

How to create a link "back to previous page" ?

10 years ago

Advanced Scripting

^See Page Recall Section

How to create a link "back to previous page" ?

10 years ago
  1. Make a variable called "LASTPAGE"
  2. In the global page script put: %LASTPAGE := $PAGEID
  3. In the link script of the link "Go Back", put: $DEST := "@P" + %LASTPAGE

And we're done.