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 .
×

5e Standard Sheet Multiple Dmg types added to Single weapon

I'm looking to make a macro that will query roll multiple damage types in addition to a weapon attack roll. Something like: Shortbow attack + yes|no Hunter's mark 1d6, + yes|no Planar Warrior 1d8, Sharpshooter yes|no +10. Any help is greatly appreciated.
1602497569
Oosh
Sheet Author
API Scripter
Do you want this to be part of the normal roll template? Or a custom macro? Do you want the damage totaled or separate or both? For example, you can do this: &{template:default}{{name=Damage Roll}} [[ [[1d6]][SBOW] + [[?{Hunter's Mark?|Yes,1|No,0}d6]][HM] + [[?{Planar Warrior?|Yes,1|No,0}d8]][PW] + [[?{Sharpshooter?|Yes,10|No,0}]][SS] ]] {{Shortbow Hunter's Mark Planar Warrior Sharpshooter=$[[0]] $[[1]] $[[2]] $[[3]]}} {{Total damage=$[[4]]}} Or you can just have the total roll. It can also be put into one of the sheet attacks with a little bit of shoving and kicking. Depends on personal preference.
Oosh said: Do you want this to be part of the normal roll template? Or a custom macro? Do you want the damage totaled or separate or both? For example, you can do this: &{template:default}{{name=Damage Roll}} [[ [[1d6]][SBOW] + [[?{Hunter's Mark?|Yes,1|No,0}d6]][HM] + [[?{Planar Warrior?|Yes,1|No,0}d8]][PW] + [[?{Sharpshooter?|Yes,10|No,0}]][SS] ]] {{Shortbow Hunter's Mark Planar Warrior Sharpshooter=$[[0]] $[[1]] $[[2]] $[[3]]}} {{Total damage=$[[4]]}} Or you can just have the total roll. It can also be put into one of the sheet attacks with a little bit of shoving and kicking. Depends on personal preference. Wow, I didn't expect such a prompt and well put together reply! Thank you! This is great. I am partial to the standard roll template and I'm not worried about a total so much, but this is fantastic as is! I'm also a big fan of the 3D dice (insanely picky but maybe a fun challenge for you) and it seems this one only rolls 1d8 on the screen. I miss my dice rolls with all this online business; if you can figure out how to make all the click clacks cover my screen I'd be even more blown away. Once again, thank you very very much! :D
1602541355
Oosh
Sheet Author
API Scripter
No problem! To get the dice back, you can either have the total without the separate damage displays (though you can still mouse over to get the breakdown in the tooltip). For both macros, replace "bob" with your character name. If you run this as an Ability macro (from the Attributes & Abilities tab on the character sheet) you can get rid of the name reference completely and just use @{dexterity_mod} syntax: @{Bob|wtype}&{template:dmg} {{rname=Shortbow}} {{range=60 feet}} {{mod=[[@{bob|pb} + @{bob|dexterity_mod}]]}} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[ 1d6[SBOW] + ?{Hunter's Mark?|Yes,1|No,0}d6[HM] + ?{Planar Warrior?|Yes,1|No,0}d8[PW] + ?{Sharpshooter?|Yes,10|No,0}[SS] ]]}} {{dmg1type=Piercing}} {{globaldamage=[[@{Bob|global_damage_mod_roll}]]}} {{globaldamagetype=@{Bob|global_damage_mod_type}}} or you can have the separate damage numbers without the total: @{Bob|wtype}&{template:dmg} {{rname=Shortbow}} {{range=60 feet}} {{mod=[[@{bob|pb} + @{bob|dexterity_mod}]]}} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[1d6[SBOW]]] + [[?{Hunter's Mark?|Yes,1|No,0}d6[HM]]] + [[?{Planar Warrior?|Yes,1|No,0}d8[PW]]] + [[?{Sharpshooter?|Yes,10|No,0}[SS]]]}} {{dmg1type=Piercing}} {{globaldamage=[[@{Bob|global_damage_mod_roll}]]}} {{globaldamagetype=@{Bob|global_damage_mod_type}}} both in the standard damage template. You could also link to your custom damage macro straight from the sheet's Attacks & Spellcasting section if you want to, so it rolls this macro from the sheet's attack output.
Oosh said: No problem! To get the dice back, you can either have the total without the separate damage displays (though you can still mouse over to get the breakdown in the tooltip). For both macros, replace "bob" with your character name. If you run this as an Ability macro (from the Attributes & Abilities tab on the character sheet) you can get rid of the name reference completely and just use @{dexterity_mod} syntax: @{Bob|wtype}&{template:dmg} {{rname=Shortbow}} {{range=60 feet}} {{mod=[[@{bob|pb} + @{bob|dexterity_mod}]]}} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[ 1d6[SBOW] + ?{Hunter's Mark?|Yes,1|No,0}d6[HM] + ?{Planar Warrior?|Yes,1|No,0}d8[PW] + ?{Sharpshooter?|Yes,10|No,0}[SS] ]]}} {{dmg1type=Piercing}} {{globaldamage=[[@{Bob|global_damage_mod_roll}]]}} {{globaldamagetype=@{Bob|global_damage_mod_type}}} or you can have the separate damage numbers without the total: @{Bob|wtype}&{template:dmg} {{rname=Shortbow}} {{range=60 feet}} {{mod=[[@{bob|pb} + @{bob|dexterity_mod}]]}} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[1d6[SBOW]]] + [[?{Hunter's Mark?|Yes,1|No,0}d6[HM]]] + [[?{Planar Warrior?|Yes,1|No,0}d8[PW]]] + [[?{Sharpshooter?|Yes,10|No,0}[SS]]]}} {{dmg1type=Piercing}} {{globaldamage=[[@{Bob|global_damage_mod_roll}]]}} {{globaldamagetype=@{Bob|global_damage_mod_type}}} both in the standard damage template. You could also link to your custom damage macro straight from the sheet's Attacks & Spellcasting section if you want to, so it rolls this macro from the sheet's attack output. Mother Mary sweet order of Merlin.. Thank you! I'll give them a shot when I get off work. Is there any way I can repay you? 
Brilliantly done, Oosh M
1602558187
Oosh
Sheet Author
API Scripter
Mother Mary sweet order of Merlin.. Thank you! I'll give them a shot when I get off work. Is there any way I can repay you?  Only use the bow for Neutral actions, and adopt a Kobold!
Oosh said: Mother Mary sweet order of Merlin.. Thank you! I'll give them a shot when I get off work. Is there any way I can repay you?  Only use the bow for Neutral actions, and adopt a Kobold! Haha, I've always wanted a pet!! I will say that I'm having trouble getting the dex mod to add to the readout, but I just manually put it in the macro after 1d6 for the bow damage. This is a beautiful macro man. Thank you! I will be neutral as possible in my slaughterings (: If you're still up for tweaking I started myself and could use a bit of guidance. I want to add an attack roll. It's not connected for the template:atkdmg because I couldn't get that to work. I also wanted the Sharpshooter to take 5 away from the attack roll if it is selected.. haha this is getting deep. &{template:atk} {{mod=Attck+7}} {{r1=[[1d20+7 ]]}} @{rtype}+7]]}} {{charname=Iralos Ghallanda}} @{Iralos Ghallanda|wtype}&{template:dmg} {{rname=Shortbow}} {{range=80 feet}} {{mod=[[@{Iralos Ghallanda|pb} + @{Iralos Ghallanda|dexterity_mod}]]}} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[ 1d6+5[SBOW] + ?{Hunter's Mark?|Yes,1|No,0}d6[HM] + ?{Planar Warrior?|Yes,1|No,0}d8[PW] + ?{Sharpshooter?|Yes,10|No,0}[SS] ]]}} {{dmg1type=Piercing}} {{globaldamage=[[@{Iralos Ghallanda|global_damage_mod_roll}]]}} {{globaldamagetype=@{Iralos Ghallanda|global_damage_mod_type}}} I copied it directly in case you saw an error that would negate the agi mod.
1602591069

Edited 1602591883
Oosh
Sheet Author
API Scripter
Right, so you mentioned the atkdmg template, does that mean it's your preferred output? I hope so, because here we go: :) @{Iralos Ghallanda|wtype}&{template:atkdmg} {{rname=Shortbow}} {{mod=[[@{Iralos Ghallanda|pb}[PROF] + @{Iralos Ghallanda|dexterity_mod}[DEX]]]}} @{Iralos Ghallanda|rtype}cs>20 + @{Iralos Ghallanda|pb}[PROF] + @{Iralos Ghallanda|dexterity_mod}[DEX] ?{Sharpshooter?|Yes,-5[SS]|No,0}]]}} {{r1=[[@{Iralos Ghallanda|d20}cs>20 + @{Iralos Ghallanda|pb}[PROF] + @{Iralos Ghallanda|dexterity_mod}[DEX] ?{Sharpshooter?|Yes,-5[SS]|No,0}]]}} {{attack=1}} {{range=80/320ft}} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[ 1d6+5[SBOW] + ?{Hunter's Mark?|Yes,1|No,0}d6[HM] + ?{Planar Warrior?|Yes,[[ceil(@{Iralos Ghallanda|level}/10)]]|No,0}d8[PW] + [[-2*?{Sharpshooter?}]][SS] ]]}} {{dmg1type=Piercing / Force if using PW}} {{crit1=[[1d6[SBOW] + ?{Hunter's Mark?}d6[HM] + ?{Planar Warrior?}d8[PW]]]}} {{globalattack=@{Iralos Ghallanda|global_attack_mod}}}{{globaldamage=[[@{Iralos Ghallanda|global_damage_mod_roll}]]}} {{globaldamagecrit=[[@{Iralos Ghallanda|global_damage_mod_crit}]]}}{{globaldamagetype=@{Iralos Ghallanda|global_damage_mod_type}}} A few things here.... we were missing the {{crit1}} section before, it's in there now. Rerolls all the dice (no Sharpshooter crit damage, since it isn't a die roll). I'm not really sure what might have gone wrong when you tried to use atkdmg, since you didn't post what you attempted - you do need the {{attack=1}} and {{damage=1}} flags in there though. It may have been the attack flag you were missing? Anyways - this has the one SS Query to give you -5 to attack and +10 to damage. It also has all three global mod fields in there - attack, damage and crit. I think that's everything. Unless you wanted the hard-coded character name on there, since you have it in your atk template above: {{charname=Iralos Ghallanda}}. Slap that on the end if you want - generally speaking, the order of the template fields doesn't matter, though on that note, I do have the {{r2}} field (the start of which is contained in the @{rtype} Attribute.... it's a long story.....) before the {{r1}} field, which is unusual. That was just to make sure the Advantage Query (if you use it) comes before all the Queries for your damage abilities. Also note I've used Attribute calls for all the math, even the 1d20. This means you should never have to edit it as you level up. Let me know if it doesn't work, or if you'd prefer the separate atk and dmg templates instead - the only drawback with the split templates is you'd get two Queries for Sharpshooter, as theyr'e two separate commands. Probably the only reason you'd need to edit it is the crit range, if that ever changes. Just change the two cs>20 instances to cs>19 or whatever your increased crit range is. Worth noting that you don't need the cs>20 on a d20 roll, as the default behaviour will treat 20 as a crit anyway. I just chucked it in there so you know what to edit if you ever need to! Also the sheet always puts it in there. edit - I put the Planar Warrior scaling math in there because why not? Also changed {{dmg1type}} to remind you that using PW converts all damage to Force. Because Force is an excellent damage type.
Oosh said: Right, so you mentioned the atkdmg template, does that mean it's your preferred output? I hope so, because here we go: :) @{Iralos Ghallanda|wtype}&{template:atkdmg} {{rname=Shortbow}} {{mod=[[@{Iralos Ghallanda|pb}[PROF] + @{Iralos Ghallanda|dexterity_mod}[DEX]]]}} @{Iralos Ghallanda|rtype}cs>20 + @{Iralos Ghallanda|pb}[PROF] + @{Iralos Ghallanda|dexterity_mod}[DEX] ?{Sharpshooter?|Yes,-5[SS]|No,0}]]}} {{r1=[[@{Iralos Ghallanda|d20}cs>20 + @{Iralos Ghallanda|pb}[PROF] + @{Iralos Ghallanda|dexterity_mod}[DEX] ?{Sharpshooter?|Yes,-5[SS]|No,0}]]}} {{attack=1}} {{range=80/320ft}} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[ 1d6+5[SBOW] + ?{Hunter's Mark?|Yes,1|No,0}d6[HM] + ?{Planar Warrior?|Yes,[[ceil(@{Iralos Ghallanda|level}/10)]]|No,0}d8[PW] + [[-2*?{Sharpshooter?}]][SS] ]]}} {{dmg1type=Piercing / Force if using PW}} {{crit1=[[1d6[SBOW] + ?{Hunter's Mark?}d6[HM] + ?{Planar Warrior?}d8[PW]]]}} {{globalattack=@{Iralos Ghallanda|global_attack_mod}}}{{globaldamage=[[@{Iralos Ghallanda|global_damage_mod_roll}]]}} {{globaldamagecrit=[[@{Iralos Ghallanda|global_damage_mod_crit}]]}}{{globaldamagetype=@{Iralos Ghallanda|global_damage_mod_type}}} A few things here.... we were missing the {{crit1}} section before, it's in there now. Rerolls all the dice (no Sharpshooter crit damage, since it isn't a die roll). I'm not really sure what might have gone wrong when you tried to use atkdmg, since you didn't post what you attempted - you do need the {{attack=1}} and {{damage=1}} flags in there though. It may have been the attack flag you were missing? Anyways - this has the one SS Query to give you -5 to attack and +10 to damage. It also has all three global mod fields in there - attack, damage and crit. I think that's everything. Unless you wanted the hard-coded character name on there, since you have it in your atk template above: {{charname=Iralos Ghallanda}}. Slap that on the end if you want - generally speaking, the order of the template fields doesn't matter, though on that note, I do have the {{r2}} field (the start of which is contained in the @{rtype} Attribute.... it's a long story.....) before the {{r1}} field, which is unusual. That was just to make sure the Advantage Query (if you use it) comes before all the Queries for your damage abilities. Also note I've used Attribute calls for all the math, even the 1d20. This means you should never have to edit it as you level up. Let me know if it doesn't work, or if you'd prefer the separate atk and dmg templates instead - the only drawback with the split templates is you'd get two Queries for Sharpshooter, as theyr'e two separate commands. Probably the only reason you'd need to edit it is the crit range, if that ever changes. Just change the two cs>20 instances to cs>19 or whatever your increased crit range is. Worth noting that you don't need the cs>20 on a d20 roll, as the default behaviour will treat 20 as a crit anyway. I just chucked it in there so you know what to edit if you ever need to! Also the sheet always puts it in there. edit - I put the Planar Warrior scaling math in there because why not? Also changed {{dmg1type}} to remind you that using PW converts all damage to Force. Because Force is an excellent damage type. Bahaha, again, amazing, I'll check when I get off work. I do prefer the atkdmg template, thanks! I've learned a great deal from you in this. I've been fiddling through the wiki but seeing it in action really helps. You're the best! 
1602635757

Edited 1602648543
I've been following along, and I'm still pretty new to the templates, basically modifying what I've been able to find and cobble together.  I can swap out the @{Iralos Ghallanda|wtype} with  /w gm to get the display to whisper to the gm, but if I replace the character name in the remaining attribute references (am I even using the right words?) like this randomly selected chunk for example only: {{mod=[[@{Iralos Ghallanda|pb}[PROF] + @{Iralos Ghallanda|dexterity_mod}[DEX]]]}} with {{mod=[[@{ selected|token_name |pb}[PROF] + @{ selected|token_name |dexterity_mod}[DEX]]]}} I get nothing output to the chat window. I feel I'm missing something, but I don't know what. (Cue giant cartoon hammer above my head). Thanks for any insights, M Edited Ignore my comment, I realized when I re-read this after arriving home that I had the whole 'selected|token_name' when I didn't need it. M