ci/woodpecker/push/checks Pipeline was successful Details
Darkness Dependent Vision
A module for Foundry Virtual Tabletop that provides functionality to make the dim and bright vision of tokens depend on the scene's darkness level.
To install and use the Darkness Dependent Vision module for Foundry Virtual Tabletop, simply paste the following URL into the Install Module dialog on the Setup menu of the application.
This module uses the libWrapper library for wrapping core methods. It is only a soft dependency (a shim is provided) but it is highly recommended to install libWrapper as a module for the best experience and compatibility with other modules.
In order to configure the darkness range in which a token has dim and bright vision, a dialog is provided that can be accessed from a header button in the Token Configuration:
In the next image, you can see an example of the module in action: The token is configured to only have bright vision at a darkness level between 0 and 0.5, but the scene's darkness level is set to 0.6, so the token has no bright vision. On the other hand, the token is also configured to have dim vision at a darkness level between 0 and 0.7, so it does have dim vision.
In order to build this module, recent versions of
required. Most likely using
npm also works but only
yarn is officially
supported. We recommend using the latest lts version of
node. If you use
to manage your
node versions, you can simply run
in the project's root directory.
You also need to install the project's dependencies. To do so, run
You can build the project by running
Alternatively, you can run
to watch for changes and automatically build as necessary.
Linking the built project to Foundry VTT
In order to provide a fluent development experience, it is recommended to link
the built module to your local Foundry VTT installation's data folder. In
order to do so, first add a file called
foundryconfig.json to the project root
with the following content:
(if you are using Windows, make sure to use
\ as a path separator instead of
On Windows, creating symlinks requires administrator privileges, so unfortunately you need to run the above command in an administrator terminal for it to work.
This project is being developed under the terms of the LIMITED LICENSE AGREEMENT FOR MODULE DEVELOPMENT for Foundry Virtual Tabletop.
The project itself is licensed under multiple licenses. REUSE is used to
specify the licenses for the individual files. Most of the licenses are
specified either inside the source file or by an accompanying
but for some files, the licenses are specified in .reuse/dep5.