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

A few Questiosn

1621181365

Edited 1621181439
I am working on a macro to make Unarmed Attacks more Flavorful in my 5e game.  &{template:default} {{name=[[1t[Ko-Combat-Table]]]}} {{Attack Roll=[[ 1d20+@}  ]] [[ 1d20  ]] }} {{Unarmed Damage=[[ 1d6 ]] }}  {{Sneak Damage=[[ 2d6 ]] }} {{Elemental Damage on Crit =[[ 1d8 ]] }} Question 1: Title: I am rolling off a table how do I change the background colors so you can read the results? Question 2: How do I add in my DexBonus ? Question 3: IS there a way to add in global hit and damage modifies when they are active?
1621185068
Kraynic
Pro
Sheet Author
If this is game-wide, I am going to assume this macro needs to work for multiple characters.&nbsp; If you are writing it for only one, then drop the "selected|" bit from each attribute call. 1. I think it is hard coded into the default roll template to use the white text.&nbsp; You might consider using one of the 5E templates, or maybe use @{selected|character_name} or @{selected|token_name} for the name, and then put the rollable table output in the first set of following {{ }}, making the attack roll the second line in chat. 2. If you haven't checked out the wiki article on that sheet, you might want to do so.&nbsp; According to that, you would want @{selected|dexterity_mod}: <a href="https://wiki.roll20.net/D%26D_5E_by_Roll20#PC" rel="nofollow">https://wiki.roll20.net/D%26D_5E_by_Roll20#PC</a> 3.&nbsp; Those are probably in that wiki article also.&nbsp; If nothing else, you can always get an attribute by right clicking on an input, selecting inspect element, and seeing what the html says.&nbsp; You are looking for a part of that code that says name="attr_someattributenamehere".&nbsp; Whatever comes after the attr_ is the name you need to put in the attribute call: @{someattributenamehere} or @{selected|someattributenamehere}.
1621185509

Edited 1621186102
Andreas J.
Forum Champion
Sheet Author
Translator
&amp;{template:default} {{name=[[1t[Ko-Combat-Table]]]}} {{Attack Roll=[[ 1d20+@{Bob|dexterity_mod}&nbsp; ]] [[ 1d20+@{Bob|dexterity_mod} ]] }} {{Unarmed Damage=[[ 1d6 ]] }}&nbsp; {{Sneak Damage=[[ 2d6 ]] }} {{Elemental Damage on Crit =[[ 1d8 ]] }} 1. You could try using the built in 5e sheet roll templates , might work better for the title. With the 5e templates, you could change so the extra crit dmg is only shown on a crit. Or try this trick of HTML Styles in chat 2. Replace Bob with the name of your character, or selected if you want it to work with any character. If you save this roll as an ability macro on the sheet, change it to be just 1d20+@{dexterity_mod} , without the name. Your dmg should probably get it as a bonus as well. 3. Probably. @{Bob|repeating_tohitmod_$0_global_attack_roll} could work: <a href="https://wiki.roll20.net/D%26D_5E_by_Roll20#Directly_Referencing_Attributes" rel="nofollow">https://wiki.roll20.net/D%26D_5E_by_Roll20#Directly_Referencing_Attributes</a> Edit: updated the wiki page(linked above) so the global mods are now mentioned there