---
title: "Roll Modifiers"
description: "Roll modifiers are special codes appended to dice expressions (like `d6`, `4d10`, etc.) that change the standard behavior of the roll."
canonical: "https://www.questportal.com/documentation/5v7lS8-qn1/roll-modifiers"
section: "Documentation / Dice / Roll Formulas"
source: "Quest Portal documentation"
version: 237
---

# Roll Modifiers

Roll modifiers are special codes appended to dice expressions (like \`d6\`, \`4d10\`, etc.) that change the standard behavior of the roll. Instead of simply summing the results, modifiers can alter which dice are kept or dropped, cause dice to be rerolled or explode, count successes instead of totals, and more. They provide flexibility to represent various game mechanics.

- [Keeping and Dropping](https://www.questportal.com/documentation/5DkjPlkDuV/keeping-and-dropping)
- [Exploding](https://www.questportal.com/documentation/rlTJlYqCgj/exploding)
- [Rerolling](https://www.questportal.com/documentation/YWWvLSO0EU/rerolling)
- [Success Counting](https://www.questportal.com/documentation/YqwC29orKk/success-counting)
- [Sorting](https://www.questportal.com/documentation/AoQfJgvDm1/sorting)
- [Match Counting](https://www.questportal.com/documentation/BFBjB8L76X/match-counting)

> **IMPORTANT: Target Number Comparisons in Modifiers**
>
> For all dice modifiers that use a target number comparison—including success, failure, critical, reroll, explode, match, and any other modifier that takes a target—there are only three operators: \`\<\`, \`>\`, and \`=\`. These work differently than standard math:
>
> - \`>\` means "greater than or equal to" (>=)
> - \`\<\` means "less than or equal to" (\<=)
> - \`=\` means "exactly equal to" (==)
>
> For example, \`>3\` means 3 or higher (3, 4, 5, 6 on a d6), and \`\<5\` means 5 or lower (1, 2, 3, 4, 5 on a d6).
>
> **This applies to ALL target number comparisons in modifiers, not just success/failure, but also criticals, rerolls, explosions, match, etc.**
>
> **This is different from math comparisons, which use the standard meaning.**

---

Part of the [Quest Portal documentation](https://www.questportal.com/documentation.md) (Documentation / Dice / Roll Formulas). HTML version: <https://www.questportal.com/documentation/5v7lS8-qn1/roll-modifiers>.
