RPG Dice RollerRPG Dice Roller
Home
Guide
API
  • Contributing
  • Code of Conduct
GitHub
Home
Guide
API
  • Contributing
  • Code of Conduct
GitHub
  • API

    • Introduction
    • ComparePoint
    • Description
    • DiceRoll
    • DiceRoller
    • RollGroup
  • dice

    • FudgeDice
    • PercentileDice
    • StandardDice
  • exceptions

    • CompareOperatorError
    • DataFormatError
    • DieActionValueError
    • NotationError
    • RequiredArgumentError
  • modifiers

    • ComparisonModifier
    • CriticalFailureModifier
    • CriticalSuccessModifier
    • DropModifier
    • ExplodeModifier
    • KeepModifier
    • MaxModifier
    • MinModifier
    • Modifier
    • ReRollModifier
    • SortingModifier
    • TargetModifier
    • UniqueModifier
    • modifier-flags
  • parser

    • Parser
  • results

    • ResultGroup
    • RollResult
    • RollResults
  • traits

    • HasDescription
  • utilities

    • ExportFormats
    • NumberGenerator
    • math
    • utils

DropModifier

DropModifier ⇐ KeepModifier

A DropModifier will "drop" (Remove from total calculations) dice from a roll.

Kind: global class
Extends: KeepModifier
See: KeepModifier for the opposite of this modifier

  • DropModifier ⇐ KeepModifier
    • new DropModifier([end], [qty])
    • .order : number
    • .name ⇒ string
    • .notation ⇒ string
    • .rangeToDrop(_results) ⇒ Array.<number>

new DropModifier([end], [qty])

Create a DropModifier instance.

Throws:

  • RangeError End must be one of 'h' or 'l'
  • TypeError qty must be a positive integer
ParamTypeDefaultDescription
[end]string"l"Either `h
[qty]number1The amount of dice to drop

dropModifier.order : number

The default modifier execution order.

Kind: instance property of DropModifier

dropModifier.name ⇒ string

The name of the modifier.

Kind: instance property of DropModifier
Returns: string - 'drop-l' or 'drop-h'

dropModifier.notation ⇒ string

The modifier's notation.

Kind: instance property of DropModifier

dropModifier.rangeToDrop(_results) ⇒ Array.<number>

Determine the start and end (end exclusive) range of rolls to drop.

Kind: instance method of DropModifier
Returns: Array.<number> - The min / max range to drop

ParamTypeDescription
_resultsRollResultsThe results to drop from
Edit this page
Last Updated: 07/02/2026, 21:45
Prev
CriticalSuccessModifier
Next
ExplodeModifier