How does the {random} script work?

0 votes
75 views
asked Aug 29 in Authoring by Chase

How does the {random} script work?

1 Answer

0 votes
answered Aug 29 by Alex (486 points)

It is documented here: http://docs.textadventures.co.uk/quest/text_processor.html

Separate pieces of text with colons, and the text processor will choose one at random.

For example:

{random:one:two:three}

will display randomly "one", "two" or "three".

This site is now closed.
As of 1st November 2015, this site is a read-only archive. For more information see the intfiction forum post

Welcome to IF Answers, a site for questions and answers about Interactive Fiction.

Technical questions about interactive fiction development tools such as Inform, Twine, Quest, QuestKit, Squiffy, Adrift, TADS etc. are all on-topic here.

Non-technical questions about interactive fiction are also on-topic. These questions could be about general IF design, specific games, entering the IF Comp etc.
...