Closed Sorry-Im-Stupid closed 6 months ago
I'd much rather see anyone generating statblocks follow the standard set by WotC than update this module to support every possible permutation of stats that people create, but I know that's unrealistic. Even a pro DM like Matt Colville can't help tweaking it to make it his own. :D
It's mostly because the more customizations are added, the harder it is to keep bugs from creeping in. I'd suggest reaching out to the owner of that site and see if they can modify how their stats are created. The more standardized they are, the more they can work with other tools like this one.
I'll ask, but what exactly are the WotC standards for these?
As far as I know, there isn't a spec that they've provided to the public, but if you look at any WotC statblock, in the SRD for example, you can see that they always follow a very specific layout. Certain things come before other things, Actions and such follow a specific format for their titles, certain wording is always used in a certain way, ("Melee Weapon Attack:", " innate spellcasting ability is Intelligence (spell save DC 11). It can innately cast the following spells, requiring no material components:"), etc.
Most third party publishers follow those same rules, and this modules really only works if folks are following them. It can handle some minor differences, or bigger ones for a popular book like Flee, Mortals!, but not much else beyond that because trying to make a computer understand random text is hard. Someone could probably get AI to do a better job these days though.
I've recently started migrating my campaign to foundry, and in doing so I found this module. It's a fantastic idea, but it is fairly dependent on formatting, which presents a small issue trying to copy over the NPCs I've been using, which I make on monstershuffler.com They almost work in your module if I export as plaintext, but there are a few details that your module doesn't recognize, and some that it doesn't know how to ignore. Here's what one of them looks like in plaintext:
Your module gets the core stats perfectly, but it will add the history blurb to the Alignment field, ignore the personality trait, and on a character with magic, it will add the entire spellcasting section to the Action tab as a single item, and won't add any spells. I'd be happy to make a version of the import that can use these stat blocks, but I can't figure out how the module actually works as it does.