herolab.getStatBlock: Difference between revisions
Jump to navigation
Jump to search
m (Conversion script moved page herolab.getStatBlock to Herolab.getStatBlock without leaving a redirect: Converting page title to first-letter uppercase) |
m (Conversion script moved page Herolab.getStatBlock to herolab.getStatBlock: Converting page titles to lowercase) |
(No difference)
|
Revision as of 23:34, 9 February 2023
herolab.getStatBlock() Function
Note: This function can only be used in a Trusted Macro
• Introduced in version 1.5
Returns associated statblock for the token as a string. Currently, Hero Lab stores three types of statblocks: Text, HTML, & XML.
Usage
herolab.getStatBlock(type)
herolab.getStatBlock(type,id)
Note: The different formats may or may not contain the same information but it does reflects what is stored in the portfolio. If you find missing information, in the XML statblock for instance, you will need to report that to [Wolf Lair].
Parameters
type
- A string containing either "text", "html", or "xml"id
- The ID of the token. Defaults to the Current Token.
Returns HeroLab data does not exist for this token if no data exists for the token and aborts the macro.
Example
Get the Hero Lab Master character name associated with the current token.
[herolab.getStatBlock("text")]
Returns:
See Also
Version Changes
- 1.5 - Added to main MapTool build.