herolab.hasChanged

From RPTools Wiki
Revision as of 22:32, 9 February 2023 by Conversion script (talk | contribs) (Conversion script moved page herolab.hasChanged to Herolab.hasChanged without leaving a redirect: Converting page title to first-letter uppercase)
Jump to navigation Jump to search

herolab.hasChanged() Function

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

Introduced in version 1.5
Returns a boolean value of true if the portfolio file has been modified compared to the current stored data on the token, otherwise returns false.

Usage

herolab.hasChanged()
herolab.hasChanged(id)

See herolab.refresh() to update the token's portfolio information.

Parameters

  • id - The id of the token. Defaults to the Current Token.

Example

Determine if the associated Hero Lab portfolio has changed.
[r: isDirty = herolab.hasChanged()]

Returns:

0 or 1

See Also

Version Changes

  • 1.5 - Added to main MapTool build.