getTokenPitVBL: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Added description; fleshed out the rest of the page)
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 2: Line 2:
{{MacroFunction
{{MacroFunction
|name=getTokenPitVBL
|name=getTokenPitVBL
|proposed=false
|trusted=true
|version=1.12
|version=1.12
|description=Retrieves Pit VBL stored on a token as a JSON object or JSON array.  (If true, where is the {{code|type}} parameter in the call?)
|description=Retrieves Pit VBL stored on a token as a JSON object or JSON array.  (If true, where is the {{code|type}} parameter in the call?)
Line 7: Line 9:
|usage=
|usage=
<syntaxhighlight lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>
getTokenPitVBL(id)
getTokenPitVBL(tokenRef)
</syntaxhighlight>
</syntaxhighlight>


'''Parameters'''
'''Parameters'''
{{param|id|Token ID to be accessed.}}
{{param|tokenRef|Either the token [[getSelected|{{code|id}}]] or [[getTokenName|Token Name]] of the token to be accessed.}}
{{Note|Token IDs are unique, but Token Names can be duplicated. Using Token Name when more than one token has the same name can produce unexpected results.}}


|also=
|also=
{{func|getPitVBL}},
{{func|getPitVBL}},
Original GitHub feature request: https://github.com/RPTools/maptool/issues/3052
Original GitHub [https://github.com/RPTools/maptool/issues/3052 feature request].
}}
}}
[[Category:VBL Function]]
[[Category:VBL Function]]

Latest revision as of 23:59, 14 May 2024

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

getTokenPitVBL() Function

 Note: This function can only be used in a Trusted Macro

Introduced in version 1.12
Retrieves Pit VBL stored on a token as a JSON object or JSON array. (If true, where is the type parameter in the call?)

Usage

getTokenPitVBL(tokenRef)

Parameters

  • tokenRef - Either the token id or Token Name of the token to be accessed.
Token IDs are unique, but Token Names can be duplicated. Using Token Name when more than one token has the same name can produce unexpected results.


See Also

getPitVBL(), Original GitHub feature request.