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] Ability Macros Auto-adjusting By Level

1481855679

Edited 1481856222
Layton
API Scripter
Hey guys. I had to rummage a lot to find out how to get certain macros doing what I want, so now I've finally managed it I figured I'd share. What do they do? I wanted macros that adjusted themselves automatically as my players level up, and that is precisely what these macros do. They all rank up as per the 5e player's handbook, and do not go higher than the handbook specifies. Sneak Attack: &{template:default} {{name=@{selected|token_name} strikes with a Sneak Attack}} {{Bonus Damage:=[[ [[ { ceil(@{selected|level} / 2), 10 }kl1 ]]d6 ]] }} Superiority Die: (for fighters only. this is not the same as the rules associated with the Martial Adept feat) &{template:default} {{name=@{selected|token_name} uses a Superiority Die}} {{Superiority Die=[[ 1d[[8 + [[ { 2* (floor((@{selected|level} - 2) /8) ), 4 }kl1 ]] ]] ]] }} {{Die Remaining=[[ @{selected|other_resource} -1 ]] }} {{Maneuver Save DC=[[ 8 + [[ @{selected|pb} + [[ { @{selected|strength_mod}, @{selected|dexterity_mod} }kh1 ]] ]] ]] }} Bardic Inspiration: &{template:default} {{name=@{selected|token_name} supplies some Bardic Inspiration}} {{@{target|token_name} Receives:=[[ 1d[[6 + [[ { (2* (floor(@{selected|level} /5 ))), 6}kl1 ]] ]] ]] Bardic Inspiration}} Song of Rest: &{template:default} {{name=@{selected|token_name} plays a Song of Rest}} {{@{target|token_name} recovers bonus health.=Bonus Health: [[1d[[6 + [[ { [[ { 2* floor((@{selected|level} /4 ) -1.25), 0}kh1 ]], 6}kl1 ]] ]] ]] }} If there are any questions or tips please post below. Even if its just a thanks its appreciated :)
1481856198

Edited 1481857207
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
You could add the sneak attack one into the damage die field on the sheet as a query to have it be included in the attack's damage automatically and auto calculate crit.
1481856567

Edited 1481856621
Layton
API Scripter
Scott C. said: You could add the sneak attack one into the damage die field on the sheet as a query to have it be there automatically We like to keep our chat as clear as possible and use every number that appears. Is there a way to have it pop into the chat as a button after the original attack is rolled? Currently it is an Ability. Using the  [Sneak Attack](~SneakAttack) function would be great, but only if the button posts when the attack is selected from the character sheet. Currently I do not know how to do this, and I do not want to use a Macro as we have a lot of players and I need to avoid cluttering things. 
1481857383
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Are you using the OGL sheet? Cause you could simply add ?{Sneak Attack|No, |Yes,+ [[ [[ { ceil(@{selected|level} / 2), 10 }kl1 ]]d6 ]]} to the damage section of the attack, it'll pop up a query asking if you want to use the sneak attack, and then auto populate it if you do.
1481909474
Layton
API Scripter
Ah now we tried that and all my players got so into the rhythm of just hitting "enter" or "down > enter" that they stopped even reading the options. Things flow far faster when there are no drop down options, though I know that's a very group-specific problem. After messing with it for a little I put it in the description, and it now comes out like this: I know I said I wanted to use every number in the chat but that sort of outcome is low-profile enough to be acceptable :) Cheers for the help. I wouldn't have thought this up if you hadn't posted.