Non-threaded

Forums » Advanced Editor Forum » Read Thread

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

What Things to Look for if Something Isn't Working

9 years ago

I know this is a very general question, but if I have a problem in the Advanced Editor, e.g. I am being redirected to a page when I shouldn't be, what are the main things to look at? Variables, variable effects, item effects, scripting, is there anything else I have forgotten? Keep in mind this question is asked in the context of my completing the CYS Riddles and Puzzles contest which has a rapidly approaching deadline.

What Things to Look for if Something Isn't Working

9 years ago

I don't want to spam questions over several threads, so I'll ask a quickie here: If I set a link of 'previous page', does that undo any variable changes from that page, or not? I.e., if I just did an action that gives me +10 of a variable, and I click 'previous page', is that +10 undone or does it remain? Cheers.

What Things to Look for if Something Isn't Working

9 years ago
It should remain, but I sometimes find it easier to use a link script of the destination instead of the previous page link. But only because I found it not working properly for me a few times... Use a link script like:

$DEST := @P__

(put your intended destination on the line in my example.) You may want to wait for someone more advanced at scripting than me to help, though.

What Things to Look for if Something Isn't Working

9 years ago

Thanks breezy for the tip.

I have another question, how do you set an advanced storygame so a player has to select at least two of three items before they can move on and click the link for the next page?