Frstrm / TokenLightCondition

Determine the lighting conditions of a token based on placed lights and token lights
MIT License
1 stars 4 forks source link

License Latest Version Foundry Version

Latest Downloads Total Downloads

Token Light Condition

A module for FoundryVTT that modifies token effects based on lighting conditions.


Normal light placement
effect-transitions
Light placement with rotation and angle defined
effect-angle-transitions
Token light with rotation and angle.
effect-token-angle

Purpose

Determine the light condition of a token, and generate effects on the token to indicate light condtions.

This is to allow players, or modules to use these effects to help rules determination around those conditions.

Systems Suported

Features

Lighting Controls

Look for this Icon on the Lighting Controls

toggle-tlc-icon

When Enabled (default) the module will process the tokens and add/remove Dim/Dark effects as needed.

If you are switching TO enabled, give the module a moment to process all the viable tokens on the scene. enabled-processing

When Disabled, the module will process the tokens and Remove any Dim/Dark effects currently in use. disabled-removing disabled-done

Note

Tokens must be type Characters/NPC, and have an HP > 0 in order to be processed. Otherwise they will be skipped.

Support

Efforts are being made for tokens to respect tile overrides, and other methods. These may work with some degree of success/failure.

Options

Console logging level

Sets the level of console used for logging:

Show TokenHud

Enables or Disables the display of the light condition on the TokenHud.

Source for lighting effect

Choose which source or application the effects are generated from.

None means there no effects placed on tokens, but the token Hud will still work.

Convienent Effects entries are added on module load if they don't exist.

Global Illumination

Use Scene Global Illumination settings in determination of token light conditions.

Delay Calculations

Delays the light condition calculation by the configured miliseconds. Value of 0, disables the delay feature.

Negative Lights Support

Negative luminance will provide dim or dark conditions instead of removing them.

Suggested Modules