Scenarios

Scenarios use Placeholders to offer customization opportunities to the end user. Think of them as Choose your own Adventure prompts.

image

Placeholders

You can add a placeholder anywhere within your story's prompt, memory, author's note and lorebook entries.

Placeholders have to be written in this format:

${1#placeholder[I'm a default value]Title goes here:Put the description here}

The placeholder is divided into five parts:

You cannot put these characters inside the text fields of the placeholder: $ {} [] # : @ ^ |

image

Placeholders in Lorebook entries

For the lorebook entries, you can add placeholders in the Title of an entry, its Description and its Keys. If you want to use regex for your keys, you have to prefix the expression with a $. For example to match with the name of a character, you have to write $/${name}/

Order of the Placeholders

Placeholders are requested to be completed by the user in the alphabetical order of their ID. This means that if you start their id with a number that increments with each placeholder, they will be requested in the order of that number.

Example: ${1Age} ${2Name} ${4Gender} ${3Job} Job will be requested before Gender, because its ID comes before it.

You can also define the order by preceding the id with a number, followed by a pound sign (#):

${1#Maincharacter[Jack]Main Character:Name the main character.}

If different entries have the same Order number, they will be processed alphabetically according to their id.

Placeholder Table of Contents

image

You can create a Table of Contents for placeholders where you can insert a large amount of them in advance, allowing you to easily keep track of all the placeholders you have defined.

The syntax is identical to normal placeholders, with these notable differences: