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

[5e OGL] Macro's for modifier Short sword damage

hey guys i'm new to roll 20 very quickly i was wondering how i would make a macro that would use my dex modifier in the calculation so i dont have to change it everytime i was to level up and my dex would change" &{template:default} {{name=Sword Strike Damage}} {{Damage=[[1d6+3]]}} " is what i have right now the 3 being my dex modifier. I don't know what the syntax is for putting it in a macro
1489880452
The Aaron
Pro
API Scripter
Are you using a character sheet?  Most character sheets will have a stat for that, which you can reference, such as @{dexterity_mod}.  
The Aaron said: Are you using a character sheet? &nbsp;Most character sheets will have a stat for that, which you can reference, such as @{dexterity_mod}. &nbsp; ah where do i find the syntax for example proficiency or something like that&nbsp;<a href="https://i.imgur.com/wkospbG.png" rel="nofollow">https://i.imgur.com/wkospbG.png</a> this is my character sheet
1489882750
The Aaron
Pro
API Scripter
Ok, that's the 5e OGL sheet. &nbsp;Honestly, the easiest way to get the attribute names is by (in Chrome) right clicking a number or field and clicking inspect, then looking for something like: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type="text" name="attr_ passive_wisdom " title="@{passive_wisdom}" value="(10+@{perception_bonus}+@{passiveperceptionmod})" disabled="true" &gt;&lt;span&gt;&lt;/span&gt; the name="attr_something" tells you the name. &nbsp;Above, the reference would be @{passive_wisdom}. You can use that with @{selected|passive_wisdom} or @{target|passive_wisdom} or if it's in the ability of a character, just straight @{passive_wisdom}. See the wiki for more: &nbsp; <a href="https://wiki.roll20.net/Macros#Attributes_and_Char" rel="nofollow">https://wiki.roll20.net/Macros#Attributes_and_Char</a>...
1489895200
Silvyre
Forum Champion
The Wiki page for the&nbsp; 5th Edition OGL by Roll20 Character Sheet demonstrates how to reference Attributes (in fact, dexterity Attributes specifically) here .