Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Spell are missing from DungeonMasterVault's JSON export #1

Open
jjak0b opened this issue Apr 24, 2022 · 2 comments
Open

Spell are missing from DungeonMasterVault's JSON export #1

jjak0b opened this issue Apr 24, 2022 · 2 comments
Labels
good first issue Good for newcomers

Comments

@jjak0b
Copy link
Owner

jjak0b commented Apr 24, 2022

Needs to found other ways to export spells from DMV

{
  "schema_version": 1,
  "player_name": "My name",
  "character": [
    {
      "passive_perception": 17,
      "immunities": [],
      "subrace": "No Subrace",
      "ac": 21,
      "saving_throw_advantages": null,
      "proficiency_bonus": "5",
      "race": "Half-Elf",
      "alignment": "Neutral Good",
      "experience": 166425,
      "background": "Acolyte",
     "equipment": [...]
      "spells": [
        {
          "spellcasting_fields": "TO-DO Spells. um yah... it's a nightmare to pull spells and details"
        }
      ],
...
@jjak0b jjak0b added the good first issue Good for newcomers label Apr 24, 2022
@jjak0b
Copy link
Owner Author

jjak0b commented Apr 24, 2022

Following this comment we can manually exports DMV's character info and it includes spells.
Need to go to: character -> view -> edit -> click the debug icon
This is an example ofper class spell format:

{
        "key": "class",
        "id": 17592192868272,
        "options": [
          {
            "id": 17592192868273,
            "key": "sorcerer-divine-soul-",
            "selections": [
              {
                "key": "sorcerer-divine-soul-cantrips-known",
                "id": 17592192868315,
                "options": [
                  {
                    "id": 17592192868316,
                    "key": "light"
                  }
                  ...
              },
              {
                "key": "sorcerer-divine-soul-spells-known",
                "id": 17592192868321,
                "options": [
                  {
                    "id": 17592192868322,
                    "key": "fireball"
                  },
                  ...
              },
             ...
            ]
          },
          {
            "id": 17592192868335,
            "key": "cleric",
            "selections": [ ... ]
          }
        ]
}

@jjak0b
Copy link
Owner Author

jjak0b commented Jan 18, 2023

If we want to use DMV api, we can get an application/edn content type from : https://www.dungeonmastersvault.com/dnd/5e/characters/<id>

Example https://www.dungeonmastersvault.com/dnd/5e/characters/17592192868230
for the character page

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant