Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Add/Query Global Damage Modifier from a Macro

June 18 (5 years ago)

Edited June 19 (5 years ago)

I'm still working out how macros and such work but I was wondering if there was a way to add a damage/attack roll modifier from the character sheet onto a single attack instead of clicking through the character sheet, rolling the attack, then clicking it off.

Sorry if that sounds a bit muddled, I've been stressing a bit about this. I'm using 5th edition D&D and I'm playing a sorcerer.

At a certain level, this sorcerer gets a trait to add a modifier to a type of elemental damage. If I set up a macro to cast a spell that does that type of damage, is there a way to call the "global damage modifier" from my character sheet and apply it to that macro?

I don't know if that's the best way of doing it but I'm hoping to find something that's not a lot of hassle without just adding an extra damage type on the spellcard itself.


June 19 (5 years ago)

Edited June 19 (5 years ago)
Oosh
Sheet Author
API Scripter

You've got a couple of options. Probably best for the Sorcerer ability is to manually add it to your Fire spells (or whatever element you picked), either in the Damage 2 field of the spell, or as a query. Generally the only time you won't be using it is if you've quickened a spell, or a multi-ray spell like Scorching Ray, so I would set the default to Yes.

Using fireball as an example, I would either put this in the Damage field:

8d6 ?{Use Elemental Affinity?|Yes,+ @{bob|charisma_mod}[AFFINITY]|No,}

or this in the Damage 2 field:

@{bob|charisma_mod}[AFFINITY]

then repeat the process for each Fire spell. That way you don't have to deal with it for every spell, as you would with a global mod.

I'd probably go with the first option as it adds the damage together and leaves Damage 2 field free for other things you might like to add in, but it depends on how you feel about the query popping up each time.

That worked perfectly, thank you =]