Register

Light on !

An Add-on Module for Foundry Virtual Tabletop

Author: Ghorin Project: Source Foundry Versions 12+ (Verified 14.367) Last Updated 1 week, 2 days ago

Description


This module (GM only) displays a small floating tool that lets you quickly add, change or remove a light source on the selected token(s), without going through the token's own configuration sheet.

Themes

5 ready-made themes are included (Medieval, Medieval-fantastic, Contemporary, Steampunk, Science-fiction), each with 5 light sources of increasing power (from a simple candle/glow stick up to a powerful floodlight or magic light). Switch theme either from the window's header menu (quick switch, the active theme is checked) or from the module's settings.

Range

A vertical slider lets you scale the light's range up or down (from ×0.33 to ×10), so you can easily match the light to the scene's grid scale. The current multiplier is shown next to the slider while you adjust it.

Auto-adapt

A toggle that, when enabled, automatically enlarges the light to compensate for tokens bigger than one square (e.g. large creatures), for every source applied afterwards. Example : a giant creature will carry a torch far larger than a man, and that giant torch will cast its light further.

Drop on the ground

The selected token's light source is set down at its current position (a tile using the same icon/color as the source appears, plus the actual light) and removed from the token, so if the token then moves away, the light stays behind.

Pick up from the ground

The reverse action — a selected token without a light source, standing close enough to a light previously dropped by this module, can pick it back up ; both the tile and the light are removed from the scene and applied back to the token.

Turn off all tokens

Instantly extinguishes the light of every token on the current scene, regardless of selection.

Other features

- Multiple tokens can be selected at once : the window shows the shared source if they all carry the same one, or no highlighted source if they differ. Selecting a token that already carries a recognized light source automatically highlights the matching button.
- Buttons are automatically enabled or disabled depending on what's currently possible (no token selected, selection without a light, nothing to pick up nearby, etc.), so it's always clear which actions are available.
- Levels of the scene are taken in account : you cannot pick up a light source from another level of the scene
- The window remembers its position between sessions, and its header menu has an "About" entry with the module's info (author, repository, supported languages, version, compatible Foundry VTT versions).

Technical details

Compatibility

This module is compatible with Foundry v13 and v14.

Use of AI

AI was used only for helping on code development.

Support

If you want to support my work on The One Ring, you may Buy me a coffee .

Credits

The icons used in this module come from https://game-icons.net/ and are used under http://creativecommons.org/licenses/by/3.0/ licence.
List of icons and related author
 
candle-holder https://game-icons.net/1x1/lorc/candle-holder.html Lorc
magic-lamp https://game-icons.net/1x1/lorc/magic-lamp.html Lorc
torch https://game-icons.net/1x1/lorc/magic-lamp.html Delapouite
old-lantern https://game-icons.net/1x1/delapouite/old-lantern.html Delapouite
lantern https://game-icons.net/1x1/lorc/lantern.html Lorc
glowing-artifact https://game-icons.net/1x1/delapouite/glowing-artifact.html Delapouite
lantern-flame https://game-icons.net/1x1/lorc/lantern-flame.html Lorc
mining-helmet https://game-icons.net/1x1/delapouite/mining-helmet.html Delapouite
tesla-coil https://game-icons.net/1x1/caro-asercion/tesla-coil.html Caro Asercion
plasma-bolt https://game-icons.net/1x1/lorc/plasma-bolt.html Lorc
beam-satellite https://game-icons.net/1x1/delapouite/beam-satellite.html Delapouite
led https://game-icons.net/1x1/delapouite/led.html Delapouite
flashlight https://game-icons.net/1x1/delapouite/flashlight.html Delapouite
light https://game-icons.net/1x1/delapouite/light-projector.html Delapouite
vial https://game-icons.net/1x1/sbed/vial.html Sbed
cancel https://game-icons.net/1x1/sbed/cancel.html Sbed
 

Categories

Available Versions

  1. Version 3.1.0

    1 week, 2 days ago
    Foundry Version 13 - 14 (Verified 14.367) Manifest URL Read Notes
  2. Version 3.0.2

    1 week, 6 days ago
    Foundry Version 13 - 14 (Verified 14.366) Manifest URL Read Notes
  3. Version 3.0.1

    1 week, 6 days ago
    Foundry Version 13 - 14 (Verified 14.366) Manifest URL Read Notes
  4. Version 3.0.0

    1 week, 6 days ago
    Foundry Version 13 - 14 (Verified 14.366) Manifest URL Read Notes
  5. Version 2.0.1

    2 weeks, 2 days ago
    Foundry Version 13 - 14 (Verified 14.366) Manifest URL Read Notes
  6. Version 2.0.0

    3 months, 3 weeks ago
    Foundry Version 13 - 14 (Verified 14.361) Manifest URL Read Notes
  7. Version 1.0.4

    1 year, 1 month ago
    Foundry Version 12 - 13 (Verified 13.346) Manifest URL Read Notes