setTokenWidth

From RPTools Wiki
Revision as of 04:51, 7 March 2019 by Azhrei (talk | contribs)
Jump to navigation Jump to search

setTokenWidth() Function

Introduced in version 1.3b91
Sets the token's image width in pixels (boundary size).

Usage

setTokenWidth(size)
setTokenWidth(size, id)

Parameters

  • size - grid size of the token
  • id - The token id of the token to set its width. Defaults to the Current token.

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

Example

[r: setTokenWidth(300, "Dragon")]
[r: setTokenHeight(150, "Dragon")]

See Also