fantasy-statblocks icon indicating copy to clipboard operation
fantasy-statblocks copied to clipboard

Feature request: Import mobs from .md files

Open f3ss1 opened this issue 2 years ago • 1 comments

Hey there!

I really appreciate your work.

I did make a whole bunch of homebrew mobs via creating the pages of them (you know that ```statblock ..) and now I realise that I need to transfer all of them manually to the plugin using the "add creature" button in order for the plugin to work with the initiative tracker, for example.

This really upsets me and of course I am not doing that by hand so I am losing a big part of synergy here. Is it possible for you to make some workaround for this?

Huge thanks in advance!

f3ss1 avatar Jul 07 '22 17:07 f3ss1

This functionality is actually in the plugin already. Copy everything inside of the statblock (not the first or last line with the backticks). Create a YAML frontmatter at the very top of your note with two lines of "---" to open and close it. Then paste everything between those lines. Move the note with the frontmatter into a a folder and define it in settings as the bestiary folder. Then turn on frontmatter parsing and you should be able to use "monster: " to view it in any note.

kylomax avatar Aug 14 '22 17:08 kylomax