Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#3667] Add grouping to initiative tracker #4897

Open
wants to merge 2 commits into
base: 4.2.x
Choose a base branch
from
Open

Conversation

arbron
Copy link
Collaborator

@arbron arbron commented Dec 17, 2024

Adds automatic grouping to the initiative tracker. This will group any combatants with the same initiative and the same base actor into a group.

Combat Groups - Collapsed Combat Groups - Expanded

Groups are displayed as collapsible sections in the combat tracker that use the name from the base actor's prototype token. It lists the number of combatants in the group, and when one of the group members is active it displays how far through the group that actor is.

Currently only offers the one grouping mode, but could be expanded in the future to support different grouping such as splitting it into "friendly" and "hostile" groups.

Also works in V13:

Screenshot 2024-12-20 at 12 26 37

Closes #3667

Adds automatic grouping to the initiative tracker. This will group
any combatants with the same initiative and the same base actor
into a group.

Groups are displayed as collapsible sections in the combat tracker
that use the name from the base actor's prototype token. It lists
the number of combatants in the group, and when one of the group
members is active it displays how far through the group that actor
is.

Currently only offers the one grouping mode, but could be expanded
in the future to support different grouping such as splitting it
into "friendly" and "hostile" groups.

Closes #3667
@arbron arbron added ui User interface related features or bugs feature request labels Dec 17, 2024
@arbron arbron added this to the D&D5E 4.2.0 milestone Dec 17, 2024
@arbron arbron requested a review from Fyorl December 17, 2024 19:37
@arbron arbron self-assigned this Dec 17, 2024
@krbz999
Copy link
Contributor

krbz999 commented Dec 17, 2024

This will group any combatants with the same initiative and the same base actor into a group.

What about:

  • TokenDocument#disposition
  • PrototypeToken#actorLink
  • TokenDocument#name

It's quite common to use a generic monster for a one-off NPC. Steve the Quest Giver Goblin the party rescues from a cage surely shouldn't be grouped with the rest of them.

@arbron
Copy link
Collaborator Author

arbron commented Dec 17, 2024

This will group any combatants with the same initiative and the same base actor into a group.

What about:

  • TokenDocument#disposition
  • PrototypeToken#actorLink
  • TokenDocument#name

It's quite common to use a generic monster for a one-off NPC. Steve the Quest Giver Goblin the party rescues from a cage surely shouldn't be grouped with the rest of them.

We could take disposition & actor link into account (probably never group if actor link is true), but we wouldn't want to use the token name otherwise adding numbers or adjectives like the goblins in the screenshots above would prevent them from ever being grouped.

@MaxPat931
Copy link
Contributor

Is this intended to work best with flat initiative per #4812 or are there plans for streamlining the process of setting init values for a group, re:

The DM makes one roll for an entire group of identical creatures

Tweak the generated HTML to work with the AppV2 combat tracker in
V13. Also moved the `collapsible` styles so they are usable
without the `dnd5e2` class so long as the `dnd5e2-collapsible`
class is also used.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request system: combat ui User interface related features or bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add native system support for group initiative
3 participants