Repository navigation
LightMeter - #2383
Open
keithcurtis1 wants to merge 10 commits into
Open
LightMeter#2383keithcurtis1 wants to merge 10 commits into
keithcurtis1 wants to merge 10 commits into
Conversation
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.
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.