← Back to blog

Master SillyTavern Character Card Rules: How to Define Roleplay Rules in Your Cards for Better AI Behavior

When you're deep in a roleplay session with SillyTavern, nothing pulls you out of the story faster than an AI character that suddenly forgets its backstory…

Published
  • sillytavern
  • character-cards
  • roleplay-rules
  • ai-behavior
  • guide

Master SillyTavern Character Card Rules: How to Define Roleplay Rules in Your Cards for Better AI Behavior

When you’re deep in a roleplay session with SillyTavern, nothing pulls you out of the story faster than an AI character that suddenly forgets its backstory, speaks out of character, or ignores the setting you’ve carefully built. The secret to consistent, immersive AI behavior lies not in luck—but in how you craft your character card rules. In this guide, we’ll walk through the essential rules for defining roleplay rules inside your SillyTavern character cards, using Elena the Enchantress as our featured example. You’ll learn practical techniques to shape AI behavior, avoid common pitfalls, and get the most out of your roleplay sessions.

Why Roleplay Rules Matter in SillyTavern Character Cards

SillyTavern character cards are more than just fancy profile pictures and backstory snippets. They are the primary instruction set the AI uses to understand who it is, how it should behave, and what world it exists in. Without clear, structured rules, the AI will default to generic responses—often breaking character or ignoring your scenario. Roleplay rules act as guardrails, guiding the AI toward consistent behavior, appropriate tone, and logical responses. For example, Elena the Enchantress is a mysterious, powerful sorceress who speaks in riddles and values ancient knowledge. If her card lacks rules about her speech patterns or magical limitations, she might suddenly start talking like a modern teenager or cast spells without any cost. That’s why defining rules is a core skill for any SillyTavern user.

The Anatomy of a SillyTavern Character Card

Before diving into rules, let’s quickly review what a character card contains:

  • Name and Avatar – The visual identity.
  • Description – A short summary of who the character is.
  • Personality – Traits, quirks, and motivations.
  • Scenario – The initial setting or context.
  • First Message – The opening line that sets the tone.
  • Character Card Rules (often in the “description” or a dedicated “rules” field) – These are the explicit instructions for AI behavior.

Most SillyTavern users place their roleplay rules inside the description field, using structured formatting like bullet points, numbered lists, or even plain English paragraphs. The key is to be clear, specific, and consistent.

How to Define Roleplay Rules for Better AI Behavior

1. Start with the Character’s Core Identity

Every rule should tie back to who the character is. For Elena the Enchantress, her core identity is a reclusive mage who hoards arcane secrets. So your rules might include:

  • “Elena speaks in a formal, archaic tone, often using metaphors and riddles.”
  • “Elena never reveals the full truth; she always leaves room for mystery.”
  • “Elena’s magic is tied to her emotional state—anger makes her spells wild, calm makes them precise.”

These rules directly influence the AI’s output. If you write “Elena is a mysterious enchantress” without specifics, the AI might interpret “mysterious” in a hundred different ways. By defining the how, you get consistent behavior.

2. Use Explicit “Do” and “Do Not” Instructions

AI models respond well to clear prohibitions and affirmations. In your character card rules, include:

  • Do: “Always acknowledge when Elena is lying or hiding something.”
  • Do Not: “Never have Elena reveal her true name or the source of her power.”
  • Do: “Use sensory descriptions (sights, sounds, smells) in every response.”
  • Do Not: “Avoid modern slang, pop culture references, or casual speech.”

For Elena, you might add: “Do not let Elena break the fourth wall or acknowledge she is an AI.” This keeps the immersion intact.

3. Define Interaction Boundaries

Roleplay rules should also govern how the character interacts with the user (the player). For example:

  • “Elena does not trust strangers easily. She will test the player’s character before sharing information.”
  • “If the player is rude or aggressive, Elena becomes cold and dismissive.”
  • “Elena is willing to teach magic, but only after the player proves their worth.”

These rules prevent the AI from being too compliant or too hostile. They give the AI a framework for decision-making, which leads to more natural, engaging roleplay.

4. Incorporate Setting and Lore Rules

Your character doesn’t exist in a vacuum. Include rules about the world:

  • “The world is a high-fantasy medieval setting with low technology.”
  • “Magic has a cost—every spell drains Elena’s stamina.”
  • “Time passes realistically between responses (no jumping hours ahead without reason).”

For Elena, you could add: “Elena’s tower is a place of ancient knowledge. The player cannot enter without solving a riddle or offering a rare artifact.” This creates natural story hooks.

5. Use the “Scenario” Field for Initial Rules

The scenario field in SillyTavern is perfect for establishing the starting conditions. For example:

  • “The player arrives at Elena’s tower seeking a cure for a magical curse. Elena is initially reluctant to help.”
  • “The tower is filled with magical traps and illusions. Elena will guide the player, but not without tests.”

This sets immediate context and rules for the first few exchanges, which the AI will use as a template for the rest of the roleplay.

Common Mistakes When Writing Character Card Rules

Even experienced users slip up. Here are pitfalls to avoid:

  • Overloading the card with rules – Too many instructions can confuse the AI. Stick to 5-10 key rules.
  • Vague language – “Be mysterious” is weak. “Speak in riddles and never answer a question directly” is strong.
  • Contradictory rules – Don’t say “Elena is friendly” and “Elena hates everyone.” Consistency is king.
  • Ignoring the first message – The first message sets the tone. Make sure it aligns with your rules. If Elena’s first message is playful, but your rules say she’s stern, the AI will be conflicted.

Testing and Iterating Your Character Card Rules

After you’ve written your rules, test them in SillyTavern. Run 5-10 exchanges and see if the AI follows them. If Elena suddenly starts using modern slang, you need to rephrase or strengthen that rule. If she forgets the setting, add a rule like “Always reference the tower or the magical environment.” This iterative process is how you refine AI behavior over time.

Tools to Help You Manage Character Cards

The MiniTavern ecosystem offers several tools to make this easier:

  • MiniTavern iOS/Android apps – Create, edit, and test your character cards on the go. Perfect for tweaking rules during a commute.
  • Web Tavern – A full-featured web interface for deep editing and previewing character cards before importing them into SillyTavern.
  • Chrome Extension – Quickly grab character cards from supported sites and import them directly into your SillyTavern setup, with built-in rule validation tips.
  • Character Card Market – Browse and download community-created cards like Elena the Enchantress. Many come with pre-written, tested rules you can learn from or adapt.

These tools help you move from theory to practice, whether you’re a beginner or a power user.

Conclusion: Your Character Card Rules Shape Your Story

Roleplay rules are the invisible hand that guides your AI characters toward memorable, consistent behavior. By defining core identity, using explicit do/don’t instructions, setting interaction boundaries, and incorporating lore, you can transform a generic AI into a living, breathing character like Elena the Enchantress. Remember to test, iterate, and keep your rules clear but not overwhelming.

Ready to build your next character card? Start with the MiniTavern ecosystem—download the iOS/Android app to craft on the fly, use the Web Tavern for deep editing, grab inspiration from the Character Card Market, and use the Chrome Extension to import cards seamlessly. Your perfect roleplay partner is just a few rules away.

More guides you might like