-
-
Notifications
You must be signed in to change notification settings - Fork 15
API
ccjmk edited this page Jan 23, 2023
·
4 revisions
Since version 1.6.0, the tool can be interacted with using a public API. The current available calls are:
const { api } = game.modules.get('hero-creation-tool')
api.openForNewActor() // Opens the tool for creating a new actor
api.selectSources() // Opens the source selector (the same can also be accessed from the Module Settings)
// since 1.9.0
api.resetSources() // Reverts the compendium sources back to defaults (SRD 5e only)