setTokenPortrait: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (Conversion script moved page setTokenPortrait to SetTokenPortrait without leaving a redirect: Converting page title to first-letter uppercase) |
(No difference)
|
Revision as of 22:28, 9 February 2023
setTokenPortrait() Function
• Introduced in version 1.3b77
Sets the portrait image for the for the Current Token. The image can come from several sources. It can be an asset id (like from tblImage() or getTokenImage()), or a Image Token.
Usage
setTokenPortrait(assetId)
setTokenPortrait(assetId, id)
setTokenPortrait(assetId, id, mapname)
setTokenPortrait(tokenImageName)
setTokenPortrait(tokenImageName, id)
setTokenPortrait(tokenImageName, id, mapname)
Parameters
id
- OPTIONAL: The tokenid
of the token for which you want to set the portrait, defaults to the Current Token.mapname
- OPTIONAL: The name of the map to find the token. Defaults to the current map.
Version Changes
- 1.5.4 - Added
mapname
parameter option.