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

Macros

So I have been working on some macros, and they worked for awhile but as I've added stuff, something isn't closing but I can't find anything. Can someone check these for me? They are mostly the same, just slight variations. &{template:default}{{name=Sprag's rapier (18-20/x2)}} {{Attack =[[1d20cs>18 + 3 [Dex]+ 1 [size modifier]]] + ?{Damage Str Bonus?|No, 0|Yes, 1} [Primary Hand?] + ?{Flanking?|No, 0|Yes, 1} [Flanking] + ?{Hit Buff|0} [Buff] - ?{Dual Wielding?|No, 0|Yes, 2} [Dual Wielding] {{Confirm = [[1d20cs>18 + 3 [Dex] + 1 [Size Modifier]]] }} {{Rapier Dmg=[[1d4 + 1 + ?{Dmg Buff|0} [Dmg Buff] + ?{Sneak Attack?|No, 0 |Yes, 2d6} [Sneak Stab]]] + **Crit Dmg** [[1d4 +1 [strength modifier] ]] }}{{Type= Piercing}} &{template:default}{{name=Sprag's dagger (19-20/x2)}} {{Attack =[[1d20cs>18 + 3 [Dex]+ 1 [size modifier]]] + ?{Flanking?|No, 0|Yes, 1} [Flanking] + ?{Hit Buff|0} [Buff] - ?{Dual Wielding?|No, 0|Yes, 2} [Dual Wielding] }} {{Confirm = [[1d20cs>18 + 3 [Dex] + 1 [Size Modifier]]] }} {{Dagger Dmg=[[1d3 + ?{Primary hand (str bonus)?|Yes, 1|No, 0} [Primary Hand?] + ?{Dmg Buff|0} [Dmg Buff] + ?{Sneak Attack?|No, 0 |Yes, 2d6} [Sneak Stab]]] + **Crit Dmg** [[1d3 +1 [strength modifier] ]] }}{{Type= Piercing/Slashing}} &{template:default}{{name=Sprag's Light Mace (x2)}} {{Attack =[[1d20cs>20 + 3 [Dex]+ 1 [size modifier]]] + ?{Flanking?|No, 0|Yes, 1} [Flanking] + ?{Hit Buff|0} [Buff] - ?{Dual Wielding?|No, 0|Yes, 2} [Dual Wielding] }} {{Confirm = [[1d20cs>18 + 3 [Dex] + 1 [Size Modifier]]] }} {{Mace Dmg=[[1d4 + ?{Primary hand (str bonus)?|Yes, 1|No, 0} [Primary Hand?] + ?{Dmg Buff|0} [Dmg Buff] + ?{Sneak Attack?|No, 0 |Yes, 2d6} [Sneak Stab]]] + **Crit Dmg** [[1d4 +1 [strength modifier] ]] }}{{Type= Bludgeoning}} &{template:default}{{name=Sprag's Sap (x2)}} {{Attack =[[1d20cs>20 + 3 [Dex]+ 1 [size modifier]]] + ?{Flanking?|No, 0|Yes, 1} [Flanking] + ?{Hit Buff|0} [Buff] - ?{Dual Wielding?|No, 0|Yes, 2} [Dual Wielding] }} {{Confirm = [[1d20cs>18 + 3 [Dex] + 1 [Size Modifier]]] }} {{Sap Dmg=[[1d4 + ?{Dmg Buff|0} [Dmg Buff] + ?{Sneak Attack?|No, 0 |Yes, 2d6} [Sneak Stab]]] + **Crit Dmg** [[1d4 +1 [strength modifier] ]] }}{{Type= Bludgeoning and Non-Lethal}}
Nevermind, I figured it out, but I'm wondering, is there a way to do this that would come up with a better look to it?
1478447928

Edited 1478450561
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
What system and sheet are you using? There may be some sheet defined templates you could use. EDIT: &{template:default}{{name=Sprag's rapier (18-20/x2)}} {{Attack = [[1d20cs>18 + 3 [Dex]+ 1 [size modifier] + ?{Damage Str Bonus?|No, 0|Yes, 1} [Primary Hand?] + ?{Flanking?|No, 0|Yes, 1} [Flanking] + ?{Hit Buff|0} [Buff] - ?{Dual Wielding?|No, 0|Yes, 2} [Dual Wielding]]] }} {{Confirm = [[1d20cs>18 + 3 [Dex] + 1 [Size Modifier]]] }} {{Rapier Dmg=[[1d4 + 1 + ?{Dmg Buff|0} [Dmg Buff] + ?{Sneak Attack?|No, 0 |Yes, 2d6} [Sneak Stab]]] + **Crit Dmg** [[1d4 +1 [strength modifier] ]] }}{{Type= Piercing}} One thing you could do regardless of what template you wind up using (if you have more options than just the default) is you can wrap all your additions for  flanking, dualwielding and what not in a set of roll brackets so that the total roll that is displayed takes them into account. I've made this change to the rapier macro and bolded it in the quote above. It gives output like this:
oh that's nice, thank you, I'll do that!
I don't have a paid version btw, so yea I think I only get the default. This was modified from someone else giving me a macro/
1478453069

Edited 1478453099
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
The other templates aren't a feature of a paid subscription. It's something that can be baked into a character sheet (custom, which is a paid feature, or one of the community contributed sheets, which do not require a paid subscription). So if you are for instance using the  5e OGL sheet by Roll20 for a D&D 5e game, you have access to all  the roll templates that are part of that sheet . More details on the  roll template wiki page .
are there any for pathfinder or Call of cthulhu
1478473606
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
If you're using the pathfinder sheet, then yes. The details on them are here:&nbsp; <a href="https://wiki.roll20.net/Pathfinder_Character_Sheet" rel="nofollow">https://wiki.roll20.net/Pathfinder_Character_Sheet</a>... if you have any questions about using the pathfinder sheet, I'd encourage you to post to the sheet thread which the authors monitor:&nbsp;<a href="https://app.roll20.net/forum/post/2788628/pf-pathfinder-sheet-thread-5/?pagenum=1" rel="nofollow">https://app.roll20.net/forum/post/2788628/pf-pathfinder-sheet-thread-5/?pagenum=1</a>
If you're looking to do custom Pathfinder Macros, there's also the Example wiki: <a href="https://wiki.roll20.net/Macros_-_Pathfinder_Examples" rel="nofollow">https://wiki.roll20.net/Macros_-_Pathfinder_Examples</a>