[RPG] How to make a Roll20 macro that shows different text depending on the result of a die roll

dnd-5eroll20

I would like to roll for the random Chaos Bolt (first level spell) damage type, which is variable.

In play, I have to roll 1d8 and as a result I get the damage type of the spell:

I guess it should be something like:

&{template:default} {{name=Damage Type}} 
{{[[1d8]]|acid|cold|fire|force|lightning|poison|psychic|thunder}}

The result should be:

  • Damage Type: cold

Nice to Have:

  • if you hover over cold you see '2'

Best Answer

This is something you should use a Rollable Table for. Create a table with 8 entries, one for each damage type. You could call it "Chaos-Bolt". Then modify your macro above to:

&{template:default} {{name=Chaos bolt}}{{damage type = [[1t[Chaos-Bolt]]]}}

If you want the actual number to show, just write the entries as:

Acid (1)
Cold (2)
...

Rollable Table

The results will look like this:

enter image description here