PDA

View Full Version : NPC text parser needs to be updated for correct results: (DnD5e)



jkagie
August 26th, 2021, 05:02
The NPC parser doesn't correctly set up the effect for the following immunity.
"bludgeoning, piercing, and slashing from nonmagical attacks that aren't adamantine"

The parser sets the following effect from the text.
IMMUNE: bludgeoning, piercing, slashing, !magic, !adamantine
which allows magical OR adamantine attacks through.
The parser sees the text as an OR rather than an AND.

The parser should result in two effects:
IMMUNE: bludgeoning, piercing, slashing, !magic;
IMMUNE: bludgeoning, piercing, slashing, !adamantine
This covers the AND condition.


The same happens for "bludgeoning, piercing, and slashing from nonmagical attacks that aren't silvered"

FyreM
August 26th, 2021, 05:59
just curiuos: WHAT creature has that feature?

jkagie
August 26th, 2021, 08:21
A Cadaver Collector is my latest.
Iron Golem, Flesh Golem, Clay Golem (most golems I think) as well.


A Devilbound Gnomish Prince has the !magic and !silvered immunity.

Zacchaeus
August 26th, 2021, 08:59
The parser is correctly interpreting the effect. The creature is immune to those damage types unless the weapon is magical or it is created from adamantine. So it is correctly an or rather than an and.

MrDDT
August 26th, 2021, 16:49
The parser is correctly interpreting the effect. The creature is immune to those damage types unless the weapon is magical or it is created from adamantine. So it is correctly an or rather than an and.

This is the correct way as Zacc has said.

They are not an AND function. They are an OR function. So if they are magical or silvered it would take damage.