Non-threaded

Forums » Advanced Editor Forum » Read Thread

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

Multiple $DEST routing

yesterday

It isn't clear from the Scripting Reference, but if I set a $DEST in a page script and the target page script also includes a $DEST redirect, will the chain of pages execute in sequence? Based on Intermediate Scripting I think it might.

Example: Page A uses a $DEST set to direct to Page B. Page B has a $DEST set for page C. When someone hits Page A, will they wind up on Page C with the page script of all three pages processed in A->B->C sequence, or will the $DEST only work to go to Page B and stop there?

A game I'm working on has a "Lose a turn" effect that can happen, in which multiple things get advanced automatically, and it would be great if I could have a "Lose your turn" page that I can bounce to from where ever that could then bounce them either back to Page A or too a small collection of pages for fail states or triggered secondary events. This would let me avoid having to replicate the "Lose a turn" code block on every page where that can happen.

Multiple $DEST routing

7 hours ago
You might have gotten around to testing this already, but I have a hunch it does not work that way. But then I've never seen $DEST used outside a link script at all so I'd be curious what happens there. My gut is that page scripts can only effect what's on the page and can't move the player to a different one though.

Multiple $DEST routing

3 hours ago
Yeah I'm going to have to run some tests on this.