Skip to content

herolab.getStatBlock

Jamz edited this page Mar 5, 2019 · 1 revision
• Introduced in version 1.5.0

Returns associated statblock as a string for the token. Currently, Hero Lab stores three types of statblocks: Text, HTML, & XML. _Note: They may or may not contain the same information but it does reflects what is stored in the portfolio. If you find missing information, for instance, in the XML statblock, you will need to report that to Wolf Lair.

Usage

  1. herolab.getStatBlock(type)
  2. herolab.getStatBlock(type, id)

Parameters

  1. type - A string of either "text", "html", or "xml"
  2. id - The token id of the token to name, defaults to the Current Token.

Example

  1. [heroStats = herolab.getStatBlock("html")]