getTerrainModifier

From RPTools Wiki
Revision as of 23:33, 28 April 2019 by Phergus (talk | contribs) (Created page with "{{MacroFunction |name=getTerrainModifier |trusted=false |version=1.5.2 |description= Gets the Terrain Modifier for the named Token or for the Current Token if no name is given...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

getTerrainModifier() Function

Introduced in version 1.5.2
Gets the Terrain Modifier for the named Token or for the Current Token if no name is given.

Usage

getTerrainModifier()
getTerrainModifier(token)

Parameters

  • token - Optional token name.

Example

Get the Terrain Modifier for the named token:
[r: tmod = getTerrainModifier("Sticky Floor Tile")]

Output:

2.0

See Also