gludington / conditional-visibility

a FoundryVTT module to hide tokens from some players, but not from others
4 stars 16 forks source link

Feature Request: Expose Functions to Retrieve the Status of Each Condition #36

Open OmnesPotens opened 3 years ago

OmnesPotens commented 3 years ago

As the title states, it would be nice to be able to retrieve the Conditional Visibility Conditions that are set on each selected token for macro usage. Preferably there would be a function to retrieve the state of each Condition as well as a function that returns an array of all Conditions and their state.

For example: ConditionalVisibility.isInvisible(canvas.tokens.controlled) -> true | false ConditionalVisibility.getVisibility(canvas.tokens.controlled) -> ['invisible': true, ..., 'devilssight': true, ...]