Skip to content

Gaslight v2.1.0#2276

Open
KenanMillet wants to merge 10 commits into
Roll20:masterfrom
KenanMillet:Gaslight-v2.1.0
Open

Gaslight v2.1.0#2276
KenanMillet wants to merge 10 commits into
Roll20:masterfrom
KenanMillet:Gaslight-v2.1.0

Conversation

@KenanMillet

Copy link
Copy Markdown
Contributor

Added initiative handling across split pages.

- 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'
@KenanMillet KenanMillet marked this pull request as draft July 1, 2026 20:21
…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
@KenanMillet KenanMillet marked this pull request as ready for review July 1, 2026 23:44
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