Jump to random pages in Storybook

Fasold
I am new at using Quest, and I was wondering if it is possible to make the player jump to a random text page in the Storybook mode of Quest.
The idea is that if the players click a link called "Explore the Forest" for example, they are taken to a random page, with an encounter or something else.
Thanks!

Pykrete
Sure thing, this is easy enough to accomplish.

On your page 'Explore the Forest' (I'd called it Forest Exploration Hub or something then slap a nicer Alias on it), make it a script, not plain text. Then, add an 'If' statement. In your If options, you can add Random Chance, which allows you to set a % based chance of that thing happening. So, as an example, let's say you have four outcomes; Outcome 1, you come across a goblin. Outcome 2, you find a ruined temple. Outcome 3, you fall down a hole. Outcome 4, you find nothing of interest.

You make the if check, and have it start with If Random Chance 25%, move player to page 'Forest Goblin Encounter'.
Next, you do an 'Else If'. Else if Random Chance 25%, move player to 'Forest Ruined Temple'.
Else If Random Chance 25%, move player to 'Forest Hole'.
Else (not Else if, Else is 'if nothing else triggers, this always happens'), move player to 'Forest Nothing'.

Pertex
without scripting you can do it with the text processor:

{random:{page:Page2:Explore the Forest}:{page:Page3:Explore the Forest}:{page:Page4:Explore the Forest}}

Fasold
Thanks for the help guys! Glad to know it is possible, be prepared for a grand adventure :)

This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums