Skip to content

Support creation of troop segment actors#21564

Open
CarlosFdez wants to merge 1 commit intofoundryvtt:v13-devfrom
CarlosFdez:troop-segments
Open

Support creation of troop segment actors#21564
CarlosFdez wants to merge 1 commit intofoundryvtt:v13-devfrom
CarlosFdez:troop-segments

Conversation

@CarlosFdez
Copy link
Collaborator

@CarlosFdez CarlosFdez commented Feb 19, 2026

There is no handling for HP syncing yet, nor death handling. I want to be sure this looks ok before continuing on.

@CarlosFdez CarlosFdez changed the title Support creation of troop segments and add support to the encounter tracker Support creation of troop segment actors Feb 19, 2026
@CarlosFdez CarlosFdez force-pushed the troop-segments branch 2 times, most recently from 6da7886 to 4da0958 Compare February 19, 2026 08:15
Comment on lines 217 to 221
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this not already constructed for NPCs?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, only in the base actor. It is standard practice to replace it though, familiars and characters both do that.

In this case we need an actor size that continues to report gargantuan but creates a 2x2 actor.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can adjust the wide/long values after it's constructed

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be reasonable to request height here? So that a segment is not a cube for measuring vertical distance.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

height of what?

Copy link
Contributor

@Cuingamehtar Cuingamehtar Feb 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Of an actor/segment. Troop is made of individual creatures, which are not necessary Gangantuan/Large size each.
Current distance calculation considers tokens to be cubes stretching from the ground up, which results in distance calculation that is suitable for individual creatures, but doesn't necessary make sense for large groups of smaller creatures (#20169).

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm poking into it and while I agree, that doesn't seem to be part of the actor size object.

The overwrites worked. Dunno why I though they'd be read only. Must have skimmed.

Copy link
Collaborator Author

@CarlosFdez CarlosFdez Feb 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like the height is the lesser of long/wide, and is part of the actor dimensions property. Its already handled.

@CarlosFdez CarlosFdez force-pushed the troop-segments branch 2 times, most recently from bc6e5c7 to 3e78a6d Compare February 19, 2026 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments