5etools / tracker

Suggestions tracker for 5etools.
11 stars 0 forks source link

5ET-952 Allow inserting existing statblocks into text from a source (as seen in PF2eTools) #1126

Closed crawltracker closed 2 years ago

crawltracker commented 2 years ago

Information Right now, to insert a statblock into adventure text, you must create it from scratch or duplicate existing statblock data and format it into a dataCreature object. This proposal suggests either adding a new object type, "statblock", or extending the existing "dataCreature" object to enable it to pull from existing sources somewhat (or exactly?) like _copy functions.

Who would use it? Homebrewers, converters

How would it work? { "type": "statblock", "name": "goblin", "source": "MM" }

or.....

{ "type": "dataCreature", "dataCreature": { "name": "Unicorn", "source": "MM", "_copy": { "name": "Unicorn", "source": "MM" } }

Why should this be added? Most adventures display statblocks of NPCs or monster variants inline in the adventure text. It would be great if we could do the same, without having to manually duplicate existing defined statblocks (currently inside a dataCareature object). Duplicating data like this is error prone, and makes support difficult. Better to have one source of truth updates all references to it when/if it is changed.

Indifferent - spap#9812

Indifferent - Reaversfall#5391

Note - MrVauxs#8622

For G: See PF2eTools for examples of such data structure. And make sure Lyra doesn't weep if this gets implemented <:wokejoy:419132568693374976>

Upvote - Danbog#2054

Upvote - ILikePurpl3#7198

Upvote - callista#8008

Upvote - Zach Drac#4297

Upvote - Giddy#0001

Note - Giddy#0001

See: https://github.com/Pf2eToolsOrg/Pf2eTools/blob/5949704315bbdc60474d97974493f3b86413f226/node/prepare-data-prod.js#L10

Upvote - DM Keith#2042

Upvote - GusBabiski#0369

Upvote - Raven Knight#6754

Indifferent - FungusAmongUs#7561

Upvote - JCT#2339

Upvote - orcnog#1874

Upvote - Georgi#1491

Votes: +11 / -0 / ±3

crawltracker commented 2 years ago

Note - Giddy#0001

See: https://github.com/Pf2eToolsOrg/Pf2eTools/blob/5949704315bbdc60474d97974493f3b86413f226/node/prepare-data-prod.js#L10

crawltracker commented 2 years ago

Note - Giddy#0001

Resolved - Implemented for next release