Is is possible to create/change Foundry's document types?

For instance, removing "Actor" and "Item" and adding new ones.
10 Replies
Ethaks
Ethaks•15mo ago
Not really, no. The base document types given by Foundry are not only part of the client code, but also exist on the server side which cannot be changed whatsoever. The server verifies their data, and only provides DBs for those specific document types. You can create pseudo-documents (e.g. classes that provide a similar(-ish) API, and try to hack them into some other storage, but that is altogether a terrible idea for which "hack" would likely be a massive understatement.
Magus
MagusOP•15mo ago
I see, ty
Ethaks
Ethaks•15mo ago
Did you have something specific in mind with which to replace above classes?
Magus
MagusOP•15mo ago
I was thinking about creating a new document collection called "Companies" or "Guilds" but I think the best approach then is mixing it up as an actor type
Ethaks
Ethaks•15mo ago
How would those differ from Actors? If they are meant to contain Actors themselves, you can store references to those included actors and thus mimic the document containing them (akin to a bag item referencing other items it contains).
Magus
MagusOP•15mo ago
I believe it just would look better if they werent mixed within the Actors directory since it could be ugly/confusing having their own directory and document type would be BETTER, but yeah this can be achieved with other approachs
Eranziel
Eranziel•15mo ago
That sounds like users should just make Actor folders for them for organization. You could automatically create those folders the first time a world us launched if you think it's critical. Have you decided yet whether Actor or Item fits better for your planned functionality?
Farling
Farling•15mo ago
PF2 has the "Party" Actor automatically appear as a separate folder in the sidebar. The players/GMs can't change that organisation.
Eranziel
Eranziel•15mo ago
Nearly anything is possible if you want to devote enough dev hours. 😉
Magus
MagusOP•15mo ago
I think I will put everything within the Actor Directory, but I will organize so it appears the actors are below/linked to the Guild So the Guild is both a sheet and a Folder at the same time
Want results from more Discord servers?
Add your server