Login
Remember
IF Answers
Ask a Question

# How does the {random} script work?

0 votes
75 views
asked Aug 29 in Authoring by Chase

How does the {random} script work?

- quest

## 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".

## Related questions

- How does the object counter in Quest work?
- How to make exits with aliases, work on the nav compass?
- Is there syntax to allow multiple expressions in the same script?
- Is there a limit to the length of a script in Quest?
- Is there an expression or script that addresses an attribute that is shared by all objects in a room (or the game)?

...