setAlwaysVisible: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{MacroFunction |name=setAlwaysVisible |version=1.4.0.5 |description=turns the corresponding setting for the token on. |usage= <source lang="mtmacro" line> setAlwaysVisible([...") |
No edit summary |
||
(9 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{MacroFunction | {{MacroFunction | ||
|name=setAlwaysVisible | |name=setAlwaysVisible | ||
|version=1.4.0 | |version=1.4.2.0 | ||
|description= | |description= | ||
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= | |usage= | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
setAlwaysVisible([id]) | setAlwaysVisible(value, [id]) | ||
</ | </syntaxhighlight> | ||
'''Parameters''' | |||
{{param|value|The value of the setting to set, {{true}} or {{false}}.}} | |||
{{param|id|OPTIONAL: The token {{code|id}} of the token for which you want to set this setting, defaults to the [[Current Token]]. {{TrustedParameter}} }} | |||
|example= | |example= | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
[h: setAlwaysVisible()] | [h: setAlwaysVisible(1)] | ||
[h: setAlwaysVisible("Dragon")] | [h: setAlwaysVisible(0, "Dragon")] | ||
</ | </syntaxhighlight> | ||
}} | }} | ||
[[Category:VBL Function]] | [[Category:VBL Function]] |
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
) orfalse
(0
).id
- OPTIONAL: The tokenid
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")]