I have a page with links that are displayed depending on variable restrictions. However, the links that are displayed are inconsistent with values of variables.
HOW TO REPRODUCE
Play https://chooseyourstory.com/story/solhaven then select the following choices
You are now on a page that shows two links "Accept" and "Decline" however according to the link restrictions two different links should be displayed. Both and Accept and Decline have the link restrictions "%I=0 NOT" set. However, %I=0 and hence the accept/decline links should not be displayed. Pagescript that is executed on this page is
$PAGETEXT:=$PAGETEXT+"DEBUG: %I = "+%I
The output in the page body "DEBUG: %I = 0" confirms that the variable has been set to 0.
If the steps "Talk with a riverman" and "Farewell" are skipped the page works as expected.
Pretty much impossible to give you direct help on this without seeing the code, but here's my troubleshooting advice:
-Set the variable "I" (and other relevant variables) to visible on all pages, and click through to story to make sure it's doing what it's supposed to on all pages.
-If that doesn't help, check all the individual link/page scripts in reverse order to make sure they have the right info on them.
-I know that pagescript doesn't work on the page itself, but it should work for the links, so I doubt that's your issue. Still, to check this issue you can temporarily make the code happen on the previous page's link script.
-I'm not familiar with the script format you're using, I have no spaces in mine and the quotes seem out of place. Could this be your issue? Could just be a different format than I'm used to.