data.getData: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Added category to page.)
(Minimal Update)
 
(One intermediate revision by the same user not shown)
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]]

Latest revision as of 23:59, 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"}]}