data.getData: Difference between revisions
Jump to navigation
Jump to search
m (Added category to page.) |
Cold Ankles (talk | contribs) (Minimal Update) |
||
Line 1: | Line 1: | ||
{{stub}} | {{stub}} | ||
<pre>data.getData(type, nameSpace, key)</pre> | |||
Returns a JSON dictionary containing the value held within the datastore under the named key. | |||
<pre>[r: data.getData("addon:", "ca.pf2e", "events")] | |||
{"events":[{"name":"onInit","mts":"onInit"},{"name":"onFirstInit","mts":"onFirstInit"}],"legacyEvents":[{"name":"onInitiativeChange","mts":"onInitiativeChange"}]}</pre> | |||
[[Category:Macro Function]] | [[Category:Macro Function]] | ||
[[Category:Data Function]] |
Revision as of 02:43, 4 May 2024
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"}]}