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.
[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.