Skip to content

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:

  • {{random::Vex::Mira::nobody}} picks one option each time the entry is read.
  • {{pick::Vex::Mira::nobody}} stays the same within one turn.
  • {{roll::2d6}} 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.