setTerrainModifier

From RPTools Wiki
Revision as of 23:34, 28 April 2019 by Phergus (talk | contribs) (Created page with "{{MacroFunction |name=setTerrainModifier |trusted=false |version=1.5.2 |description= Set 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

setTerrainModifier() Function

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

Usage

setTerrainModifier(mod)
setTerrainModifier(mod, token)

Parameters

  • mod - A floating point number.
  • token - Optional token name.

Example

Set the Terrain Modifier to 2.0 for the current token.
[r: tmod = setTerrainModifier(2.0)]

Returns:

2.0

See Also