PDA

View Full Version : What is the best way to code this for an NPC



adam31415926
April 22nd, 2021, 02:05
I am trying to code an NPC that has the following trait:

Prismatic Body. The golem’s body is made from light, and
sheds light as per the daylight spell, which cannot be
suppressed. A creature that touches the golem or is hit by
a Prismatic Tendril takes damage depending on the color of
light the golem is flashing.

1: Red. 17 (5d6) fire damage.
2: Orange. 17 (5d6) acid damage.
3: Yellow. 17 (5d6) lightning.
4: Green. 17 (5d6) poison damage.
5: Blue. 17 (5d6) cold damage.
6: Indigo. 17 (5d6) psychic damage.
7: Violet. 17 (5d6) thunder damage.
8: White. 17 (5d6) force damage.

What is the best way to do this? Thanks for any help!! (The DM would roll a d8 and the damage would be according to 1-8 above)

Adam

Zacchaeus
April 22nd, 2021, 08:54
Welcome to FG.

Create each damage type as a new heading with it's own damage line. Or you can change it using 'or' Hit: 5d6 fire damage or 5d6 acid damage etc

adam31415926
April 23rd, 2021, 09:46
Thanks!