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

PercentileDice

PercentileDice ⇐ StandardDice

Represents a percentile die.

Kind: global class
Extends: StandardDice

  • PercentileDice ⇐ StandardDice
    • new PercentileDice([qty], [modifiers], [sidesAsNumber], [description])
    • .name ⇒ string
    • .sides ⇒ number | string

new PercentileDice([qty], [modifiers], [sidesAsNumber], [description])

Create a PercentileDice instance.

Throws:

  • TypeError qty must be a positive integer, and modifiers must be valid
ParamTypeDefaultDescription
[qty]number1The number of dice to roll (e.g. 4)
[modifiers]Map.<string, Modifier> | Array.<Modifier> | Object | nullThe modifiers that affect the die
[sidesAsNumber]booleanfalseWhether to show the sides as % (default) or 100
[description]Description | string | nullThe roll description.

percentileDice.name ⇒ string

The name of the die.

Kind: instance property of PercentileDice
Returns: string - 'percentile'

percentileDice.sides ⇒ number | string

The number of sides the die has

Kind: instance property of PercentileDice
Returns: number | string - % if sidesAsNumber == false, or 100 otherwise

Edit this page
Last Updated: 07/02/2026, 21:45
Prev
FudgeDice
Next
StandardDice