setAlwaysVisible: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Conversion script moved page setAlwaysVisible to SetAlwaysVisible without leaving a redirect: Converting page title to first-letter uppercase)
No edit summary
 
(One intermediate revision by one other user not shown)
Line 6: Line 6:


|usage=
|usage=
<source lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>
setAlwaysVisible(value, [id])
setAlwaysVisible(value, [id])
</source>
</syntaxhighlight>


'''Parameters'''
'''Parameters'''
Line 15: Line 15:


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

Latest revision as of 21:09, 14 March 2023

setAlwaysVisible() Function

Introduced in version 1.4.2.0
Turns the corresponding setting for the token on or off. This modifies the Visible over FoW VBL setting on the the VBL tab of the Edit Token dialog.

Usage

setAlwaysVisible(value, [id])

Parameters

  • value - The value of the setting to set, true(1) or false(0).
  • id - OPTIONAL: 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")]