setAlwaysVisible: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 6: Line 6:
|usage=
|usage=
<source lang="mtmacro" line>
<source lang="mtmacro" line>
setAlwaysVisible([id])
setAlwaysVisible(value, [id])
</source>
</source>
'''Parameters'''
{{param|value|The value of the setting to set, {{code|true}}({{code|1}}) or {{code|false}}({{code|0}}).}}
{{param|id|The token {{code|id}} of the token for which you want to set this setting, defaults to the [[Current Token]]. {{TrustedParameter}} }}


|example=
|example=
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[h: setAlwaysVisible()]
[h: setAlwaysVisible(1)]
[h: setAlwaysVisible("Dragon")]
[h: setAlwaysVisible(0, "Dragon")]
</source>
</source>
}}
}}
[[Category:VBL Function]]
[[Category:VBL Function]]

Revision as of 20:40, 10 August 2017

setAlwaysVisible() Function

Introduced in version 1.4.2.0
turns the corresponding setting for the token on.

Usage

setAlwaysVisible(value, [id])

Parameters

  • value - The value of the setting to set, true(1) or false(0).
  • id - The token id of the token for which you want to set this setting, defaults to the Current Token.

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

Example

[h: setAlwaysVisible(1)]
[h: setAlwaysVisible(0, "Dragon")]