Skip to content

LightMeter - #2383

Open
keithcurtis1 wants to merge 10 commits into
Roll20:masterfrom
keithcurtis1:LightMeter
Open

keithcurtis1 wants to merge 10 commits into
Roll20:masterfrom
keithcurtis1:LightMeter

Conversation

@keithcurtis1

Copy link
Copy Markdown
Contributor

LightMeter adds a moon to the end of a token's name to show how well lit it is: dark, dim or bright. The name updates each time the token moves. Tokens opt in by adding " **" to the end of their name, or the GM can turn it on or off for selected tokens from the !lightmeter chat menu. The GM can also set the light levels for each moon from the menu. Settings are stored in state.

It reads light levels through checkLightLevel's isLitBy(), so it depends on checkLightLevel and Path Math. It only acts on tokens on the Objects layer, on pages with dynamic lighting enabled.

Initial implementation of LightMeter script to manage light levels for tokens.
Initial version of the LightMeter script that updates token names based on their light levels.
Updated changelog to reflect the initial version release.
Added a new JSON configuration for the LightMeter script, detailing its functionality, commands, and requirements.
Added documentation for LightMeter functionality and commands.
@keithcurtis1 keithcurtis1 changed the title Light meter LightMeter Nov 21, 2026
Updated regex to match light level markers correctly in names. this eliminates conflicts with track duration and other scripts that change names dynamically
Updated regular expression for marker matching and adjusted name replacement logic to elminate conflict with Duration Tracker
Initial version of LightMeter script to update token names based on light levels.
Got rid of a trailing period in the folder name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant