data.getData

From RPTools Wiki
Jump to navigation Jump to search

 This article is a stub, you can help the RPTools Wiki project by contributing content to expand this article.

data.getData(type, nameSpace, key)


Returns a JSON dictionary containing the value held within the datastore under the named key.

[r: data.getData("addon:", "ca.pf2e", "events")]

{"events":[{"name":"onInit","mts":"onInit"},{"name":"onFirstInit","mts":"onFirstInit"}],"legacyEvents":[{"name":"onInitiativeChange","mts":"onInitiativeChange"}]}