Is is possible to create/change Foundry's document types?
For instance, removing "Actor" and "Item" and adding new ones.
10 Replies
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.
I see, ty
Did you have something specific in mind with which to replace above classes?
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
How would those differ from
Actor
s? If they are meant to contain Actor
s 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).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
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?PF2 has the "Party" Actor automatically appear as a separate folder in the sidebar. The players/GMs can't change that organisation.
Nearly anything is possible if you want to devote enough dev hours. 😉
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