Skip to content

kiryna-cpg/custom-lightsources

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Custom Lightsources

Custom Lightsources is a system-agnostic module for Foundry VTT v13 that adds configurable token light source presets without depending on actor inventory items.

It is designed for narrative and rules-light games where light sources such as flashlights, phone lights, torches, or lanterns should be quick to use from the Token HUD instead of being managed as equipment.

Features

  • Token HUD button for quick light control
  • Left-click toggle for the active light source
  • Right-click palette to choose the active profile
  • World-configurable light source profiles
  • Default profile selection
  • Built-in icons and custom icon path support
  • Beam-style light sources with independent rotation
  • Configurable beam rotation keybinding in Configure Controls
  • Per-token selected profile persistence
  • Original token light restoration when the module light is turned off
  • English and Spanish localization

Included demo profiles

  • Flashlight
  • Phone Light
  • Torch
  • Lantern

Requirements

  • Foundry Virtual Tabletop v13
  • Verified on 13.351

Configuration

Module Settings

The module provides:

  • Show HUD button to players
  • Beam rotation step
  • Profile Manager submenu

Profile Manager

The Profile Manager allows the GM to:

  • create profiles
  • duplicate profiles
  • delete non-demo profiles
  • choose a default profile
  • configure light values
  • assign built-in icons
  • browse for a custom image path
  • mark a profile as a beam

Beam rotation

Beam profiles rotate independently from the token artwork.

To rotate a beam light:

  1. Select a token with an active beam light source
  2. Hold the configured beam rotation control
  3. Use the mouse wheel over the canvas

The default keybinding can be changed in Configure Controls.

Notes

  • This release prioritizes Foundry v13 stability.
  • The Profile Manager currently uses the legacy FormApplication framework for reliability in v13. A future update may migrate that submenu to ApplicationV2.

Installation

Install the module as usual in Foundry, then enable it in your world.

If you plan to distribute the module publicly, fill in the url, manifest, and download fields in module.json with your real repository and package URLs.

License

Add your preferred license here before public release.

About

**Custom Lightsources** is a system-agnostic module for **Foundry VTT v13** that adds configurable token light source presets without depending on actor inventory items.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors