Gaslight v2.1.0#2276
Open
KenanMillet wants to merge 10 commits into
Open
Conversation
- Auto-add linked copies when a token is added to turn order - Auto-remove linked copies when a token is removed - Initiative value sync: changes propagate to all linked tokens - Direction-aware auto-skip: non-master children are skipped on forward/backward - Sort detection: reorders groups with master on top after sort - _pageid included on pushed entries for cross-page visibility
- gaslight_sync now reads from token gmnotes (same pattern as gaslight_link) - Auto-populate from character attribute on token placement/split - !gaslight sync [show|set|add|remove|clear] — manage sync props per token - !gaslight desync [add|remove] — manage exclusions per token - getGaslightSync accepts token object or charId (backward compat)
- !gaslight sync (no args) — show current config - !gaslight sync <props> — add to whitelist - !gaslight sync all — explicitly sync everything - !gaslight sync reset — remove token-level override - !gaslight desync <props> — exclude props from sync - !gaslight desync all — disable all syncing (preserves link)
…pies from character - getGaslightSync reads only from token gmnotes (no runtime fallback) - Character attribute is purely a template (auto-populated on token place/split) - !gaslight sync reset now re-copies character attribute value into token gmnotes - Consistent with gaslight_link pattern
- s.view = null → relay disabled (GM-only changes) - s.view = 'master' → relay to all players (default on split) - s.view = <playerId> → relay to specific player - !gaslight view off/none → disable relay - !gaslight view master/gm/all → enable relay to all - Split sets view to 'master' automatically
- SCRIPT_VERSION -> 2.1.0 - Migration: v2.0.0 state with view=null (meant relay-all) -> view='master' - New installs default view to 'master'
…lp text - Created 2.1.0 versioned copy - script.json: version 2.1.0, added 2.0.0 to previousversions, new commands in description - README: added sync/desync commands, view modes, initiative tracking sections - HELP_TEXT: full command reference with view modes + initiative note
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.
Added initiative handling across split pages.