EthanJWright / foundryvtt-importer

Import entities from external sources like Reddit, CSV, etc.
MIT License
37 stars 7 forks source link

Possible to import spells? #103

Open nyxalteria opened 1 year ago

nyxalteria commented 1 year ago

Is your feature request related to a problem? Please describe. No

Describe the solution you'd like Sort of like the monster importer I was wondering if it would be possible for the parser to be able to parse spells separately.

Describe alternatives you've considered The only alternative is manually inputting them.

Additional context

For example from the following spell

2nd-level evocation Casting Time: 1 action Range: Self (30-foot line) Components: V, S, M (a sliver of metal from a gong) Duration: Instantaneous A tremendous bell note explodes from your outstretched hand and rolls forward in a line 30 feet long and 5 feet wide. Each creature in the line must make a successful Constitution saving throw or be deafened for 1 minute. A creature made of material such as stone, crystal, or metal has disadvantage on its saving throw against this spell. While a creature is deafened in this way, it is wreathed in thundering energy; it takes 2d8 thunder damage at the start of its turn, and its speed is halved. A deafened creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. At Higher Levels. When you cast this spell using a spell slot of 3rd level or higher, the damage increases by 1d8 for each slot level above 2nd.

If it could detect the range, duration, casting time, components (the stuff in parentheses would be put in spellcasting materials, in foundry that part is just flavor but it would be helpful to full in), spell level and spell school it would be helpful for importing spells. Also pasting in the description for the stuff under the duration for the description of the item, it doesn't have to be able to detect anything from that description because that's normally kind of complicated but detection for the other stuff would be very helpful.

EthanJWright commented 1 year ago

Should be doable! Is that a standard format you can find in any specific source book or resource?

nyxalteria commented 1 year ago

I've looked through 6 different books by 6 different publishers and it seems to be the standard. Kobold press books: image Tasha's Cauldron of Everything (WOTC) image for example, I believe it's standard.

Anthogonyst commented 1 year ago

Hi there, I also want to import spells so I was considering building off this dictionary and then adding custom spells that conform to its schema. If it needed some json wrangling, I could make it in a more convenient format. What do you think?

https://github.com/jcquinlan/dnd-spells