Skip to content

rollTable

Jason Godesky edited this page Jul 17, 2026 · 2 revisions

rollTable is a wrapper that draws one or more results from the table specified.

Parameters

uuid: string

The UUID of the roll table you want to roll on (should begin with RollTable.).

Returns

A Promise that resolves with an object from the draw.

roll: foundry.dice.Roll

The roll made on the table.

results: foundry.documents.TableResult[]

An array of the results returned.

Examples

import { rollTable } from '@revolutionarygamesco/common-foundryvtt'

await rollTable('RollTable.1111111111111111')

Clone this wiki locally