Skip to content

Steps For Creating a New Actor

phildominguez edited this page Apr 8, 2023 · 2 revisions

Example PR: https://github.com/WookieeMatt/Essence20/pull/294

  • template.json
    • Add the actor name to the Actor.types section
    • Add the actor data to Actor.<name>
  • lang/en.json - In the ACTOR section, add TypeMyactor. Note the capitalization. This allows the actor to show up in the "Create Actor" dropdown menu.
  • If they have special defense calculations, or any other unique data that needs to be prepared, create _prepare<Name>Data() in module/documents/actor.mjs
  • Create templates/actor/actor-<name>-sheet.hbs (the main sheet)
  • Create templates/actor/parts/headers/actor-<name>-header.hbs (the sheet header section)
    • module/helpers/templates.mjs - Add the header file to the Actor partials - Headers section
  • This is dumb, but if your actor can have specializations, add them to the #inArray found in templates/actor/parts/actor-essence-skills.hbs