{"id":38909158,"url":"https://github.com/foundryvtt/unfulfilled-rolls","last_synced_at":"2026-01-17T15:15:18.687Z","repository":{"id":157775568,"uuid":"615086802","full_name":"foundryvtt/unfulfilled-rolls","owner":"foundryvtt","description":"A module that allows individual rolls to be fulfilled by other sources","archived":false,"fork":false,"pushed_at":"2024-01-15T16:10:30.000Z","size":70,"stargazers_count":2,"open_issues_count":16,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-01-15T20:59:30.996Z","etag":null,"topics":["foundryvtt"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/foundryvtt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-03-16T23:32:01.000Z","updated_at":"2023-12-17T13:11:26.000Z","dependencies_parsed_at":"2024-01-15T18:15:37.097Z","dependency_job_id":null,"html_url":"https://github.com/foundryvtt/unfulfilled-rolls","commit_stats":null,"previous_names":[],"tags_count":8,"template":null,"template_full_name":null,"purl":"pkg:github/foundryvtt/unfulfilled-rolls","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foundryvtt%2Funfulfilled-rolls","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foundryvtt%2Funfulfilled-rolls/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foundryvtt%2Funfulfilled-rolls/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foundryvtt%2Funfulfilled-rolls/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/foundryvtt","download_url":"https://codeload.github.com/foundryvtt/unfulfilled-rolls/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foundryvtt%2Funfulfilled-rolls/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28511046,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T13:38:16.342Z","status":"ssl_error","status_checked_at":"2026-01-17T13:37:44.060Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["foundryvtt"],"created_at":"2026-01-17T15:15:17.827Z","updated_at":"2026-01-17T15:15:18.673Z","avatar_url":"https://github.com/foundryvtt.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](https://img.shields.io/badge/Foundry-v11-informational)\n\u003c!--- Downloads @ Latest Badge --\u003e\n\u003c!--- replace \u003cuser\u003e/\u003crepo\u003e with your username/repository --\u003e\n\u003c!--- ![Latest Release Download Count](https://img.shields.io/github/downloads/\u003cuser\u003e/\u003crepo\u003e/latest/module.zip) --\u003e\n\n\u003c!--- Forge Bazaar Install % Badge --\u003e\n\u003c!--- replace \u003cyour-module-name\u003e with the `name` in your manifest --\u003e\n\u003c!--- ![Forge Installs](https://img.shields.io/badge/dynamic/json?label=Forge%20Installs\u0026query=package.installs\u0026suffix=%25\u0026url=https%3A%2F%2Fforge-vtt.com%2Fapi%2Fbazaar%2Fpackage%2F\u003cyour-module-name\u003e\u0026colorB=4aa94a) --\u003e\n\n\n# Unfulfilled Rolls\n\nAllows individual rolls to be fulfilled by other sources\n\n## Configuring per-die resolution methods\n\nA new Sidebar app is added called \"Open Dice Configuration\"\n\n![image](https://github.com/foundryvtt/unfulfilled-rolls/assets/15639841/368c59c1-dba4-4002-8e74-d04091e0d318)\n\nIn this app, each User (client setting) may pick how each die is resolved - via Foundry VTT digital rolling, via manual input, or via a bluetooth provider - as well as what Bluetooth provider they are using (requires a separate module install for the bluetooth provider, such as the GoDice module).\n\n![image](https://github.com/foundryvtt/unfulfilled-rolls/assets/15639841/ab0f26c2-1cb5-4e64-b8ee-9f82ace5864e)\n\n## An example roll\n\nIn this example, d20's and d8's are configured for Bluetooth resolution, while d4 is Foundry VTT Digital Roll.\n\n`/roll 2d20 + d8 + d4 + 4`\n\nUnfulfilled rolls works with the Foundry VTT dice rolling workflow to determine that there are terms that need resolution (the 2d20 and the d8), and displays a window - note that it gives the full roll for context, but only prompts resolution of the ones marked\n\n![image](https://github.com/foundryvtt/unfulfilled-rolls/assets/15639841/d2bdde9f-130f-436b-bc39-5c372f1c9adb)\n\nInside of the resolution app, the following two parameters are given:\n\n`terms`\nThe array of terms that need to be fulfilled\n```json\n[\n  {\n    \"id\": \"d20-1\",\n    \"faces\": 20,\n    \"randomValue\": 12,\n    \"fulfillmentMethod\": \"bluetooth\",\n    \"icon\": \"fa-dice-d20\"\n  },\n  {\n    \"id\": \"d20-2\",\n    \"faces\": 20,\n    \"randomValue\": 17,\n    \"fulfillmentMethod\": \"bluetooth\",\n    \"icon\": \"fa-dice-d20\"\n  },\n  {\n    \"id\": \"d8-1\",\n    \"faces\": 8,\n    \"randomValue\": 7,\n    \"fulfillmentMethod\": \"bluetooth\",\n    \"icon\": \"fa-dice-d8\"\n  }\n]\n```\n\n`roll`\nThe originating Roll\n```json\n{\n  \"class\": \"FulfillableRoll\",\n  \"options\": {},\n  \"dice\": [],\n  \"formula\": \"2d20 + d8 + d4 + 4\",\n  \"terms\": [\n    {\n      \"class\": \"FulfillableRollTerm\",\n      \"options\": {},\n      \"evaluated\": false,\n      \"number\": 2,\n      \"faces\": 20,\n      \"modifiers\": [],\n      \"results\": []\n    },\n    {\n      \"class\": \"OperatorTerm\",\n      \"options\": {},\n      \"evaluated\": false,\n      \"operator\": \"+\"\n    },\n    {\n      \"class\": \"FulfillableRollTerm\",\n      \"options\": {},\n      \"evaluated\": false,\n      \"number\": 1,\n      \"faces\": 8,\n      \"modifiers\": [],\n      \"results\": []\n    },\n    {\n      \"class\": \"OperatorTerm\",\n      \"options\": {},\n      \"evaluated\": false,\n      \"operator\": \"+\"\n    },\n    {\n      \"class\": \"FulfillableRollTerm\",\n      \"options\": {},\n      \"evaluated\": false,\n      \"number\": 1,\n      \"faces\": 4,\n      \"modifiers\": [],\n      \"results\": []\n    },\n    {\n      \"class\": \"OperatorTerm\",\n      \"options\": {},\n      \"evaluated\": false,\n      \"operator\": \"+\"\n    },\n    {\n      \"class\": \"NumericTerm\",\n      \"options\": {},\n      \"evaluated\": false,\n      \"number\": 4\n    }\n  ],\n  \"evaluated\": true\n}\n```\n\n## Registering a new Provider\n\nCurrently only bluetooth providers are supported, but more types can be added fairly easily by following the pattern bluetooth providers uses.\n\n```js\nHooks.once('unfulfilled-rolls-bluetooth', function(providers) {\n    return foundry.utils.mergeObject(providers, {\n        \"godice\": {\n            label: \"GoDice\",\n            app: GodiceResolver\n        }\n    })\n});\n```\n\n### Implementing a Provider\n\nEach provider needs to register an application to handle the roll resolution. Here is a simplified example:\n\n```js\nexport default class ExampleResolver extends FormApplication {\n\n    constructor(terms, roll, callback) {\n        super({});\n        this.terms = terms;\n        this.roll = roll;\n        this.callback = callback;\n    }\n\n    /* -------------------------------------------- */\n\n    static get defaultOptions() {\n        return foundry.utils.mergeObject(super.defaultOptions, {\n            id: \"example-resolver\",\n            template: \"modules/example/templates/example-resolver.hbs\",\n            title: \"Example Resolver\",\n            popOut: true,\n            width: 720,\n            submitOnChange: false,\n            submitOnClose: true,\n            closeOnSubmit: true\n        });\n    }\n\n\n    /* -------------------------------------------- */\n\n    /** @override */\n    async getData(options={}) {\n        const context = await super.getData(options);\n\n        context.terms = this.terms;\n        context.roll = this.roll;\n\n        return context;\n    }\n\n\n    /* -------------------------------------------- */\n\n    /** @override */\n    async _updateObject(event, formData) {\n        // Turn the entries into a map\n        const fulfilled = new Map();\n        for ( const [id, result] of Object.entries(formData) ) {\n            // Parse the result as a number\n            fulfilled.set(id, Number(result));\n        }\n        this.callback(fulfilled);\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoundryvtt%2Funfulfilled-rolls","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffoundryvtt%2Funfulfilled-rolls","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoundryvtt%2Funfulfilled-rolls/lists"}