PDA

View Full Version : Issue on Import Text:



baconslayer
March 30th, 2025, 15:21
Hello! I have been using a template for importing NPC's and it's been working great. I got my first error, and I don't know where to look to see what's causing it. Here is the error message:

[ERROR] Script execution error: [string "5E:scripts/manager_import_npc.lua"]:566:attempt to perform arithmetic on a nil value

Here is the text I inputted. I normally use 2024-D&D Beyond for the import mode:

Miramental

Tiny Elemental, Neutral

AC 11 (Shimmering Form)

HP 7 (2d4+2)

Speed 30 ft., Swim 30 ft.



MOD SAVE

STR 8 -1

DEX 12 +1

CON 12 +1

MOD SAVE

INT 8 -1

WIS 12 +1

CHA 14 +2



Resistances Non-magical physical damage (except from mirrored attacks), Psychic

Immunities Poison, Exhaustion, Charmed

Senses Passive Perception 11

Languages

CR 1/8 (XP 25; PB +2)



Traits:

Mirror Veil. If a creature watches a Miramental directly, it begins to copy their movements exactly instead of attacking. If no one is watching it, it moves toward the closest creature and attempts to take them into its reflection.



Actions:

Reflective Grapple. The Miramental moves into a creature's space and forces a DC 12 Dexterity or Charisma saving throw. On a failure, the target is grappled (escape DC 12) as their reflection pulls them into the mirage. If grappled for two rounds, the victim is pulled into a distorted reflection of themselves, taking 1d4 force damage per round until freed.



Reactions:

Echo Latch. If struck, the Miramental forces the attacker to make a DC 12 Wisdom save. On a failure, the attacker gains disadvantage on all attacks against Miramentals until the start of their next turn.

Zacchaeus
March 30th, 2025, 15:53
I'm going to assume this is for 2024. If so then remove the (Shimmering Form) after AC and add in Initiative +2 (12). Reconfigure the stat section as follows:


MOD SAVE MOD SAVE MOD SAVE
Str 8 -1 -1 Dex 12 +1 +1 Con 12 +1 +1
Int 8 -1 -1 Wis 12 +1 +1 Cha 14 +2 +2

Remove the colon after Traits (the Traits heading isn't actually needed); and remove the colon after Actions and after Reactions.

The following parses correctly:


Miramental
Tiny Elemental, Neutral
AC 11 Initiative +1 (11)
HP 7 (2d4+2)
Speed 30 ft., Swim 30 ft.
MOD SAVE MOD SAVE MOD SAVE
Str 8 -1 -1 Dex 12 +1 +1 Con 12 +1 +1
Int 8 -1 -1 Wis 12 +1 +1 Cha 14 +2 +2
Resistances Non-magical physical damage (except from mirrored attacks), Psychic
Immunities Poison, Exhaustion, Charmed
Senses Passive Perception 11
Languages
CR 1/8 (XP 25; PB +2)
Traits
Mirror Veil. If a creature watches a Miramental directly, it begins to copy their movements exactly instead of attacking. If no one is watching it, it moves toward the closest creature and attempts to take them into its reflection.
Actions
Reflective Grapple. The Miramental moves into a creature's space and forces a DC 12 Dexterity or Charisma saving throw. On a failure, the target is grappled (escape DC 12) as their reflection pulls them into the mirage. If grappled for two rounds, the victim is pulled into a distorted reflection of themselves, taking 1d4 force damage per round until freed.
Reactions
Echo Latch. If struck, the Miramental forces the attacker to make a DC 12 Wisdom save. On a failure, the attacker gains disadvantage on all attacks against Miramentals until the start of their next turn.


Also make sure that you select 2024 - Core rules from the import Mode dropdown at the bottom of the import window.

If it for a Legacy NPC then the stats block should look like this


STR DEX CON INT WIS CHA
10 (+0) 14 (+2) 10 (+0) 11 (+0) 12 (+1) 11 (+0)

And again remove all of the colons.

baconslayer
April 3rd, 2025, 03:30
Thank you so much. I tried to get 2024-Core to work forever but couldn't find the right format for stats. In my post is what has gotten the 2024-dnd beyond method to work. Super helpful.

Zacchaeus
April 3rd, 2025, 16:16
Thank you so much. I tried to get 2024-Core to work forever but couldn't find the right format for stats. In my post is what has gotten the 2024-dnd beyond method to work. Super helpful.

As it so happens I just recorded a video yesterday on how to import NPCs using the import tool https://youtu.be/2610Bpp5XMg?si=liiF6VPdC7A25eBi