Heroic Lands Heroic Lands
Home Thalorna Blog
Projects
Song of Heroic Lands HârnMaster 3 Modules API Documentation KnowledgeBase
License
  • Preparing search index...
  • The search index is not available
Song of Heroic Lands API - v0.8.2
  • Song of Heroic Lands API
  • sohl
  • core
  • fvttToFoundryRoll

Function fvttToFoundryRoll

  • fvttToFoundryRoll(
        simpleRoll: sohl.entity.roll.SimpleRoll,
    ): Promise<foundry.dice.Roll>
  • Convert a SimpleRoll to a Foundry VTT Roll instance, preserving the die results already recorded on the SimpleRoll so that Foundry can display them in chat without re-rolling.

    Parameters

    • simpleRoll: sohl.entity.roll.SimpleRoll

      The SimpleRoll to convert.

    Returns Promise<foundry.dice.Roll>

    A promise resolving to the equivalent Foundry foundry.dice.Roll.

    Throws

    Error if the SimpleRoll's recorded results do not match its dice terms (the count of rolled values differs from the number of dice to seed).

    • Defined in src/core/FoundryHelpers.ts:202

Settings

Member Visibility
Song of Heroic Lands API - v0.8.2
  • Loading...

Generated using TypeDoc with typedoc-github-theme

© 2020–2026 Tom Rodriguez. Content under The World of Thalorna and Song of Heroic Lands is licensed under CC BY-SA 4.0; all other content is © Tom Rodriguez, all rights reserved. See License.

CC BY-SA 4.0 Discord