jbhaywood / 5e-statblock-importer

A module for FoundryVTT that creates a new actor from any 5e monster or NPC statblock.
MIT License
18 stars 12 forks source link

Error when importing Adventure in Middle Earth #70

Closed Padhiver closed 9 months ago

Padhiver commented 9 months ago

Hello ! I saw that there was already a ticket concerning AiMe in the fixed problems, but I still have an error when trying to import. The monster is imported but sometimes a skill or two is missing. I've tried with several monsters without success, so I'm posting here. :) (First statblock)

Also, I don't know if it's possible because the format is a bit strange, but there's a PDF containing a huge monster bestiary for AiMe, but the syntax doesn't really work with your module.

If it's ever possible to do something about it, that would be really great, but I'd understand if it wasn't possible. :) (The second statblock)

Thanks a lot!

Thieving Dwarf
Medium Dwarf
STR
14 (+2)
DEX
13 (+1)
CON
16 (+3)
INT
11 (+0)
WIS
12 (+1)
CHA
8 (-1)
Armour Class 14 (Corslet of Mail)
Hit Points 45(6d8+18)
Speed 25ft
Skills Sleight of Hand +3, Stealth +3
Senses passive Perception 11
Languages Westron
Challenge 1 (200 XP)
No Quarter. When the Dwarf reduces an enemy to 0 hit 
points that enemy is considered to already have failed one 
death save. 
Sneak Attack. Once per turn, the Thieving Dwarf deals 
an extra 3 (1d6) damage when it hits a target with a 
weapon attack and has Advantage on the attack roll, or 
when the target is within 5 feet of an ally of the Dwarf 
that isn’t Incapacitated and the Dwarf doesn’t have 
Disadvantage on the attack roll.
Actions
Short Bow. Ranged Weapon Attack: +3 to hit, range 
80/320 ft, one target. Hit: 4 (1d6+1) piercing damage.
Great Axe. Melee Weapon Attack: +4 to hit, reach 5 ft, 
one target. Hit: 8(1d12+2) slashing damage.
Orc, Regular
Small humanoid (orc)
Armour Class 16 (mail corselet and shield)
Hit Points 9 (2d6 + 2)
Speed 30 ft.
STR DEX CON INT WIS CHA
12 (+1) 12 (+1) 12 (+1) 8 (-1) 8 (-1) 8 (-1)
Senses darkvision 60 ft., passive Perception 9
Languages Common (Orcish dialect) and/or
Black Speech
Challenge 1/2 (100 XP)
Night-Sighted: Gains +1 to attacks underground 
or at night, but has Disadvantage on Wisdom 
(Perception) checks that rely on sight in full 
daylight.
Special Ability (Choose One)
Aggressive: As a bonus action, the uruk can 
move up to its speed toward a hostile creature 
that it can see.
Nimble Escape: The orc can take the Disengage 
or Hide action as a bonus action on each of its 
turns.
Actions
Heavy Scimitar: Melee Weapon Attack: +3 to hit, 
reach 5 ft., one target. Hit: 5 (1d8 + 1) slashing 
damage.
Shortbow: Ranged Weapon Attack: +3 to hit, 
range 80/320 ft., one target. Hit: 4 
(1d6 + 1) piercing damage.
jbhaywood commented 9 months ago

I fixed a couple issues that I could find. The first block works now, but the second one doesn't. The problem is the ":" they're using in the titles instead of ".". I tried adding support for that, but it caused other problems, since colons are used elsewhere too. But if you manually edit the text to use periods, it works. Like this...

Orc, Regular
Small humanoid (orc)
Armour Class 16 (mail corselet and shield)
Hit Points 9 (2d6 + 2)
Speed 30 ft.
STR DEX CON INT WIS CHA
12 (+1) 12 (+1) 12 (+1) 8 (-1) 8 (-1) 8 (-1)
Senses darkvision 60 ft., passive Perception 9
Languages Common (Orcish dialect) and/or
Black Speech
Challenge 1/2 (100 XP)
Night-Sighted. Gains +1 to attacks underground 
or at night, but has Disadvantage on Wisdom 
(Perception) checks that rely on sight in full 
daylight.
Special Ability (Choose One)
Aggressive. As a bonus action, the uruk can 
move up to its speed toward a hostile creature 
that it can see.
Nimble Escape. The orc can take the Disengage 
or Hide action as a bonus action on each of its 
turns.
Actions
Heavy Scimitar. Melee Weapon Attack: +3 to hit, 
reach 5 ft., one target. Hit: 5 (1d8 + 1) slashing 
damage.
Shortbow. Ranged Weapon Attack: +3 to hit, 
range 80/320 ft., one target. Hit: 4 
(1d6 + 1) piercing damage.