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

Multiple Global Attack/Damage Modifier Fields

February 13 (7 years ago)
Hi,

I was wondering if it's possible to have multiple Global Attack or Damage Modifier fields? I'm currently using the GAMF for Sneak Attack, but would like to create another one for Booming Blade. I could add it to its Damage2 field, but it seemed more reasonable to create a field I can check off and on like Sneak Attack since I may switch weapons. I tried to go into Attributes & Abilities and create another global_damage_mod_field but that didn't seem to work. Thanks!
February 13 (7 years ago)
Andreas J.
Forum Champion
Sheet Author
Translator
Wow, TIL. Assuming by context it's DnD5e you are speaking of, which sheet are you using?
February 13 (7 years ago)
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
The attribute is a singular attribute. The sheet doesn't have handling for a dynamic number of them. Haven't used the OGL sheet in a while, but could you put something like:

?{Booming Blade|No, |Yes,Whatever effect}?{Sneak Attack|No, |Yes,+Xd6}

in the field and just always have it one?
February 14 (7 years ago)
Sorry! Yeah it's the OGL Sheet for D&D 5e.

Scott C. said:
?{Booming Blade|No, |Yes,Whatever effect}?{Sneak Attack|No, |Yes,+Xd6}

I didn't think of combining it into one field, that sorta worked! I tried it with: 
?{Booming Blade|No, |Yes,1d8}?{Sneak Attack|No, |Yes,1d6}

but if I select yes for both Booming Blade and Sneak Attack, it doesn't combined the result. I tried it with the +1d8 and +1d6, but it defaults to just 1 every time.
February 14 (7 years ago)

Edited February 14 (7 years ago)
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Ah, ok, it's because of the probable macro code for the rolls, try this:
0?{Booming Blade|No, |Yes,+1d8}?{Sneak Attack|No, |Yes,+1d6}
February 14 (7 years ago)
Awesome! I was thinking having 0 + their results would fix it, but wasn't sure where to toss it. Thanks!! :D
February 15 (7 years ago)

Edited February 15 (7 years ago)
Here is another option for 5e OGL sheet

Open the character in question sheet - Let's say his name is "Dan The Man"
go to "Attributes & Abilities"
Click +ADD on the "Abilities" side.

Type "SneakAttack" in the box

paste this code in the box:

&{template:simple}{{rname=Sneak Attack}}{{normal=1}}{{mod=[[ceil(@{base_level}/2)]]d6}}{{r1=[[[[ceil(@{base_level}/2)]]d6]]}}{{charname=@{character_name}}}

Now go back to the Character Sheet > Core Tab - now in the "Attack and spellcasting" box - open one of his weapon (the cogwheel).
In the Description type this:
[Sneak Attack](~Character's Full Name Here|SneakAttack)

example: [Sneak Attack](~Dan The Man|SneakAttack)

The character name must be spelled exactly the way it is written in the character sheet. It is cap sensitive. The "SneakAttack" is also cap sensitive. 

Now attack with that weapon - you should see a red box OR the word Sneak Attack on the chat. CLICK ON IT!

you can do this with booming blade and anything else really. 


NOTE: you need to repeat this code [Sneak Attack](~Character's Full Name Here|SneakAttack) for EACH WEAPON.
February 15 (7 years ago)
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Good suggestion nover. Ability and attribute calls are not case sensitive though.AFAIK, using an ability command button doesn't change this.
February 15 (7 years ago)
Ah, I learned some stuff were, so i got used to copying it word for word, size for size. 
February 19 (7 years ago)

Edited February 19 (7 years ago)
I have a question related to this on OGL sheets but I'm not sure if I should make a new topic....

So I have all of my Global Damage Modifiers set up, but one of my modifers is a flat damage boost and not a rolled value. The problem I'm having is on a crit that value is added twice and it shouldn't be. Is there anyway I could find a way to take that damage out on a crit? I would use the regular damage mod field but I have that occupied already and so far I haven't found a way to place queries in the regular damage mod field.

Specific Version, here's my Exact Problem:
0 ?{Sneak Attack|No, |Yes,+1d6} [SNEAK ATTACK] ?{Hunter's Mark|No, |Yes,+1d6} [HUNTER'S MARK] ?{Planar Warrior|No, |Yes,+1d8} [PLANAR WARRIOR] ?{Favored Enemy|No, |Yes,+2} [FAVORED ENEMY]

Favored Enemy is doubled on a crit when it shouldn't be and in my regular damage mod field I already have a 2 but I tried something like:
2 + ?{Favor Enemy Damage|No, 0|Yes, +2} so it wouldn't be doubled but it doesn't take. Somebody help me if you have an answer. Worst Case Scenario I just remember to take out the 2 damage lol.

UPDATE: I found a way that works but there could be a better way. I used the same answer from the first Favored Enemy query in the global_damage_mod_crit attribute field:
{{globaldamagecrit=[[@{global_damage_mod_field} - ?{Favored Enemy} [FE REMOVAL]]]}}
February 21 (7 years ago)
Oops, haven't checked my messages in a few days. That works well, Nover! Thanks for the suggestions