Toggle Compendium Pack Visibility - Jagusti/fvtt-wfrp4e-gmtoolkit GitHub Wiki

What this does

Macro

Use this macro to hide or show compendium packs, such as premium content scenes, journal entries and actors that may include spoiler or sensitive information that you want to make sure players cannot see.

  • The macro can be modified to toggle effective visibility of packs from only specific sources (such as wfrp4e-core) and/or types (eg, Actors, Items).
  • If no specific criteria or source is set, all packs from modules declared for the wfrp4e system are included.
  • In FVTT v10, the macro toggles the private flag of packs.
  • From FVTT v11, the macro
    • toggles between Limited and Observer permissions on packs for both Players and Trusted Players.
    • sets Owner permission explicitly on packs GMs and Assistsnt GMs
  • Setting the forceLimited variable to true in the macro will force visibility to hidden, rather than toggle current state.

User Settings

There are no user configuration options for this macro.

Conflicts / Known Issues

None.

Source

History

  • Version 6.0.4. Add v11 compatibility, based on ownership permissions.
  • Version 0.9.3. Introduce Toggle Compendium Pack Visibility macro.