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 Shaped] custom macros not working?

Hello. I'm having some trouble with my macros and the 5e Shaped sheet. I'm using the general roll template as described in the sheet wiki to make custom macros (for class abilities and such). When I try to roll them, however, all I get is a blank line in the chat. This is true even for the example macro shown on the wiki: &{template:5eDefault} {{character_name=@{character_name}}} {{title=grey banner}} {{subheader=subheader}} {{subheaderright=right}} {{subheader2=subheader 2}} {{subheaderright2=right}} {{targetName=target}} {{emote=this is the emote}} {{freetextname=freetext name}} {{freetext=this is a the freetext output}} {{rollname=roll}} {{roll=[[d20]]}} {{rolladv=[[d20]]}} All I get from this is a blank line. I've made plenty of macros this way in the regular 5e character sheet. Does anyone know what I'm doing wrong?
1457884317

Edited 1457884328
Kryx
Pro
Sheet Author
API Scripter
Which version of Shaped? The new version (2.X.X) has a different roll template structure and the wiki has not been updated to match. See the file to see all the fields:&nbsp;<a href="https://github.com/mlenser/roll20-character-sheets/blob/master/D%26D_5e_Reshaped/precompiled/components/rollTemplate.html" rel="nofollow">https://github.com/mlenser/roll20-character-sheets/blob/master/D%26D_5e_Reshaped/precompiled/components/rollTemplate.html</a>
1457884867

Edited 1457885039
Thanks for responding. That makes sense. I'm using version 2.1.13. Um... I'm not quite sure how to translate that code. Can you help? Edit: Nevermind. I think I understand. Thanks!
1457885076
Kryx
Pro
Sheet Author
API Scripter
Modifying what you wrote above: &{template:5e-shaped} {{character_name=@{character_name}}} {{title=grey banner}} {{subheader=subheader}} {{targetName=target}} {{emote=this is the emote}} {{freetext=this is a the freetext output}} {{roll1=[[d20]]}} {{roll2=[[d20]]}} {{Dwarven Resistance=test}}
Sorry, I do have one question: how do I get critical damage to show up? I've got this, but I'm clearly missing something, because the damage isn't showing when I roll a critical hit. &{template:5e-shaped}{{action=1}}{{title=Shortsword}}{{show_character_name=1}}{{character_name=@{selected|Token_Name}}} {{subheader=Melee Attack}}{{roll_toggle=1}}?{Advantage?|No,|Yes,{{advantage=1}}}{{roll1=[[1d20+@{selected|dexterity_mod}+@{selected|pb}]]}}{{roll2=[[1d20+@{selected|dexterity_mod}+@{selected|pb}]]}}{{vs_ac=1}}{{damage=[[1d6+@{selected|dexterity_mod}]]}}{{crit_damage=[[1d6]]}}
1457901745

Edited 1457902919
Vanakoji
KS Backer
Crit damage only appears if both rolls are crits. To make it work with one roll you need the options of advantage, disadvantage or only_roll_1. EDIT: For the future No option: Both rolls black text, both rolls are crits for crit damage to shown Advantage: Higher roll in black, lower in grey. Crit if higher number is a crit and damage shown Disadvantage: Lower roll in black, crit if both rolls are a crit and damage shown Normal (only_roll_1): Crit if the one roll is a crit and damage is shown. To have a toggle with showing crit damage, it is advised to use this change &{template:5e-shaped}{{action=1}}{{title=Shortsword}}{{show_character_name=1}}{{character_name=@{selected|Token_Name}}} {{subheader=Melee Attack}}{{roll_toggle=1}}?{Advantage?|No,{{only_roll_1=1&amp;#125;&amp;#125;|Yes,{{advantage=1&amp;#125;&amp;#125;}{{roll1=[[1d20+@{selected|dexterity_mod}+@{selected|pb}]]}}{{roll2=[[1d20+@{selected|dexterity_mod}+@{selected|pb}]]}}{{vs_ac=1}}{{damage=[[1d6+@{selected|dexterity_mod}]]}}{{crit_damage=[[1d6]]}} Also, while not updated yet so a few issues may be on there, here is a look at the roll template for the new sheet&nbsp; <a href="https://docs.google.com/document/d/1sBdHp-7xDhYWt4" rel="nofollow">https://docs.google.com/document/d/1sBdHp-7xDhYWt4</a>... EDIT: I will say though that most of this can be done on the sheet itself rather than needed a from scratch macro