setTerrainModifier: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(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....")
 
No edit summary
Line 1: Line 1:
{{MacroFunction
{{MacroFunction
|name=setTerrainModifier
|name=setTerrainModifier
|trusted=false
|trusted=true
|version=1.5.2
|version=1.5.2
|description=
|description=

Revision as of 13:35, 29 April 2019

setTerrainModifier() Function

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

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