getVisible: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Text replacement - "source>" to "syntaxhighlight>")
No edit summary
Line 4: Line 4:
|version=1.3b40
|version=1.3b40
|description=
|description=
Returns {{true}} if the [[Token:visible to players|visible to players]] flag is set on a [[Token]] otherwise returns {{false}}. The [[Token:visible to players|visible to players]] flag has two meanings, on a normal [[Token]] players will only be able to see the [[Token]] if it is set (when all other things like [[Map:Fog of War|Fog of War]] etc are taken into account). If it is a [[Library Token]] then it determines if players can call Macros using {{roll|macro}}.
Returns {{true}} if the [[Token:visible to players|visible to players]] flag is set on a [[Token]] otherwise returns {{false}}. The [[Introduction_to_Tokens#Visible to Players|visible to players]] flag has two meanings, on a normal [[Token]] players will only be able to see the [[Token]] if it is set (when all other things like [[Map:Fog of War|Fog of War]] etc are taken into account). If it is a [[Library Token]] then it determines if players can call Macros using {{roll|macro}}.


|usage=
|usage=

Revision as of 18:42, 20 April 2023

 This article is a stub, you can help the RPTools Wiki project by contributing content to expand this article.
 This article needs: Examples of usage.

getVisible() Function

Introduced in version 1.3b40
Returns true(1) if the visible to players flag is set on a Token otherwise returns false(0). The visible to players flag has two meanings, on a normal Token players will only be able to see the Token if it is set (when all other things like Fog of War etc are taken into account). If it is a Library Token then it determines if players can call Macros using [macro():].

Usage

getVisible()
getVisible(id)

Parameter

  • id - The token id of token that has its player visibility checked, defaults to the Current Token.

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


See Also

Version Changes

  • 1.3b51 - No longer a trusted function, added id parameter option.