Register

Conditional Visibility (ARCHIVED)

An Add-on Module for Foundry Virtual Tabletop

Author: 4535992 Project Source: Project URL Versions 9+ (Verified 9) Last Updated 2 years, 5 months ago

Conditional Visibility (ARCHIVED)

If you want to buy me a coffee alt-text

Invisible Stalkers should only be seen by players that have cast See Invisibility. Stealthy Goblins should only be seen by players with high perception. And when that Drow casts Darkness, players should need Devil's Sight to see any tokens inside.

Conditional Visibility allows you to set conditions on tokens that will display them only to players whose senses meet the conditions necessary to see the token.

IMPORTANT: This module will work very good with the ligthing setting "Token vision" of scene configuration set to true, otherwise is still work, but is not advisable

NOTE: If you are a javascript developer and not a typescript developer, you can just use the javascript files under the dist folder

Before open any issue

  1. Enable the module setting "Enable debugging"
  2. Click F12 go to the console tab
  3. make the test you want and replicate the error
  4. Go to the tab console open on point 2) and just right click and click 'Save as' and 'Save'.
  5. attach the text file on the github issue
  6. Wait for a response

Installation

It's always easiest to install modules from the in game add-on browser.

To install this module manually:

  1. Inside the Foundry "Configuration and Setup" screen, click "Add-on Modules"
  2. Click "Install Module"
  3. In the "Manifest URL" field, paste the following url: https://raw.githubusercontent.com/p4535992/conditional-visibility/master/src/module.json
  4. Click 'Install' and wait for installation to complete
  5. Don't forget to enable the module in game using the "Manage Module" button

libWrapper

This module uses the libWrapper library for wrapping core methods. It is a hard dependency and it is recommended for the best experience and compatibility with other modules.

socketlib

This module uses the socketlib library for wrapping core methods. It is a hard dependency and it is recommended for the best experience and compatibility with other modules.

ATE (old ATL)

This module uses the ATE library for wrapping methods. It is a hard dependency and it is recommended for the best experience and compatibility with other modules.

Known Issue\Limitation

Usage

A usage documentation on how the active effect are managed is reachable

↓↓↓↓↓

Details on active effects

↑↑↑↑↑

before anything give it a look there and let me know howmuch bad is the documentation.

These modules are suggested for a better user experience with this one :

Conditions and sense combination by system default

System Dnd5e

System Pathfinder 2e (work in progress)

Did you want ot help with your system prepare some table like the one i do it for Dnd5e for help me to define some rule for your system

Features

Module compatibility

img

All the sense and condition are automatically imported, you can disavle this on the module settings if you want.

df

Example: Adding Unknown

If each condition is added to the CUB set, Conditional Visibility will again function, even if CUB has removed the default set. The pairs would be:

image effectId image path
Hidden modules/conditional-visibility/icons/newspaper.jpg
Invisible modules/conditional-visibility/icons/unknown.jpg
Obscured modules/conditional-visibility/icons/foggy.jpg
In Darkness modules/conditional-visibility/icons/moon.jpg

Apply sense and condition from Token Config

Every sense and condtion can be setted on the token config vision tab, remember the 0 value is the deactivate/default/nullable value, the value <=-1 (a negative number) is the infinite, for tell to the module to avoid any check because i won anyway. Depends on the value you set the module will automatically create, updated and remove the active effect on the current token, you can anyway go to edit the active effect manually and change the value and these settings are updated either way.

token_config

NOTE: Limitation do not use multiple active effects with the same key on the change values ATCV.<sense or condtion id>, checkout the Active effect paragraph on the tutorial

Auto-applied the 'hidden' condition from Stealth Rolls like the old "auto appplied hidden"

IMPORTANT: to manage the multisystem and the other three thousand modules from which you can roll the stealth I apply the value of the stealth that appears in the chat, so make sure that each player who launches the stealth roll can see their own chat.

NOTE: The 'auto stealth' is a token only feature, so if you roll from a 'actor' on the sidebar is not applied .

This is been tested with these modules:

autostealth

Apply sense and condition from Token HUD

Stop immediately! Thinking of doing a stealth roll right? Well you can't do it from here! this is a generic tool for applying active 'sense' and 'condition' effects on tokens. Stealth shooting can be done in many ways from the character sheet, with TAH, with LMRTFY, with MTB, with DAE + Item Macro, but not with this form. The form uses the stealth values as a basis for applying a value for the AE you select in the dropdown the end does nothing else ,stop thinking that what you shoot here is a stealth roll

Conditional Visibility contains an setting to auto-apply the hidden condition based on a stealth roll. The reuslt can be differnete depends on the current game system ,contributions for other systems are welcomed.

When this setting is true, then rolling stealth form the HUD config of that token's character sheet will apply the hidden condition based on the value of that roll.

feature_hud

NOTE: if the system no have the property set on the module setting or the system no support a stealth enviroment it's just roll classic 1d20, you can still manually insert the desired value

Set up a distance checking for see hidden tokens like for lantern of revealing

Add new active effect change ATCV.conditionDistance for a distance check to add to the active effect. Just edit the active effect data and apply the ATCV.conditionDistance change with a numeric value that value is used like unit distance for the distance checking.

feature_distance

[On developing or maybe never...] Integration with Combat utility belt

CUB already manage the connection with active effect and a management with the DFreds Convenient Effects add a third module is just redundancy, but if anyone has some suggestion just open a issue or better a PR.

cub

Customize you own sense or condition

img6

Customize for each token specific image for specific token

NOTE: You must enable the module setting "[EXPERIMENTAL] Enable draw CV Handler" for activated this.

img6

Api

The API documentation is reachable here API

Categories

Available Versions

  1. Version 0.6.14

    2 years, 5 months ago
    Foundry Version 9+ (Verified 9) Manifest URL Read Notes
  2. Version 0.6.13

    Foundry Version 9+ (Verified 9) Manifest URL Read Notes
  3. Version 0.6.11

    Foundry Version 9+ (Verified 9) Manifest URL Read Notes
  4. Version 0.6.10

    Foundry Version 9+ (Verified 9) Manifest URL Read Notes
  5. Version 0.6.9

    Foundry Version 9+ (Verified 9) Manifest URL Read Notes
  6. Version 0.6.7

    Foundry Version 9+ (Verified 9) Manifest URL Read Notes
  7. Version 0.6.6

    Foundry Version 9+ (Verified 9) Manifest URL Read Notes
  8. Version 0.6.5

    Foundry Version 9+ (Verified 9) Manifest URL Read Notes
  9. Version 0.6.0

    Foundry Version 9+ (Verified 9) Manifest URL Read Notes
  10. Version 0.5.41

    Foundry Version 9+ (Verified 9) Manifest URL Read Notes
  11. Version 0.5.40

    Foundry Version 9+ (Verified 9) Manifest URL Read Notes
  12. Version 0.5.39

    Foundry Version 9+ (Verified 9) Manifest URL Read Notes
  13. Version 0.5.38

    Foundry Version 9+ (Verified 9) Manifest URL Read Notes
  14. Version 0.5.37

    Foundry Version 9+ (Verified 9) Manifest URL Read Notes
  15. Version 0.5.29

    Foundry Version 9+ (Verified 9) Manifest URL Read Notes
  16. Version 0.5.21

    Foundry Version 9+ (Verified 9) Manifest URL Read Notes
  17. Version 0.5.0

    Foundry Version 9+ (Verified 9) Manifest URL Read Notes
  18. Version 0.4.28

    Foundry Version 9+ (Verified 9) Manifest URL Read Notes
  19. Version 0.4.26

    Foundry Version 9+ (Verified 9) Manifest URL Read Notes
  20. Version 0.4.25

    Foundry Version 9+ (Verified 9) Manifest URL Read Notes
  21. Version 0.4.22

    Foundry Version 9+ (Verified 9) Manifest URL Read Notes
  22. Version 0.4.19

    Foundry Version 9+ (Verified 9) Manifest URL Read Notes
  23. Version 0.4.17

    Foundry Version 9+ (Verified 9) Manifest URL Read Notes
  24. Version 0.3.0

    Foundry Version 0.8.9+ (Verified 0.8.9) Manifest URL Read Notes
  25. Version 0.1.4

    Foundry Version 0.7.6+ (Verified 0.7.6) Manifest URL Read Notes
  26. Version 0.0.9

    Foundry Version 0.6.6+ (Verified 0.6.6) Manifest URL Read Notes
  27. Version 0.0.8

    Foundry Version 0.6.6+ (Verified 0.6.6) Manifest URL Read Notes
  28. Version 0.0.7

    Foundry Version 0.6.6+ (Verified 0.6.6) Manifest URL Read Notes
  29. Version 0.0.6

    Foundry Version 0.6.6+ (Verified 0.6.6) Manifest URL Read Notes