---
title: "How do I make a character appear at random or only sometimes?"
description: "Use a behavior with Chance to fire, a percentage, and a Tell the AI effect. For a random pick among several characters, use the Random pick effect or a random macro."
---

# How do I make a character appear at random or only sometimes?

Use a behavior with **Chance to fire**. It takes a percentage, so the engine rolls the chance and the AI does not have to. There are three ways, depending on what you want.

## A character who shows up now and then

1. Click **＋ Behavior** in the **Add** row at the bottom of the card.
2. Set **When it fires** to **Every turn** or **Every N turns**.
3. Click **Add an effect** and pick **Tell the AI**. Write the line, such as "The merchant Vex walks in this turn."
4. Under the other options, set **Chance to fire** to the percentage you want, such as 20. Add a **Cooldown** if the character should not come back two turns in a row.

## One of several characters

In the same behavior, add the **Random pick** effect and give it one **Tell the AI** line per character. It runs one of them each time and takes turns fairly, so no character is left out for long.

## A random detail inside lore

Write a macro in a lore entry or an opening:

- <code v-pre>{{random::Vex::Mira::nobody}}</code> picks one option each time the entry is read.
- <code v-pre>{{pick::Vex::Mira::nobody}}</code> stays the same within one turn.
- <code v-pre>{{roll::2d6}}</code> gives a dice roll the AI can react to.

To keep the AI from bringing a character in on its own, move that character's entry out of **Character and world** into **Standby lore**, and have the behavior open it with **Enable lore entry**. The AI cannot see standby lore until a behavior opens it.

## Related

- [Behaviors](../creator/automation.md)
- [Openings and lore](../creator/entries.md)
- [Directives and macros](../creator/advanced/directives-macros.md)
