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 here.
×
×
Cookie Preferences
We use Cookies to help personalize and improve Roll20. For more information on our use of non-essential Cookies, visit our Privacy Policy here.
In the Official Roll20 CoC sheet how exactly do the bonus/penalty dice and pushed rolls work from the roll template results in chat . I cannot seem to find anything on placing links to roll template macros anywhere.
I have since posting figured most of it out. They are using Ability Command Buttons. I am now trying to get it . Ability Command Button in the roll template to roll a hidden button on the sheet.
How do reference a button on the sheet? This does not work. <button type="roll" id="test" name="test" value="&{template:default} {{msg=Hi there}}"></button> &{template:Roll} {{rollname=[Fumble](~@{character_name}|test)}} nor this &{template:Roll} {{rollname=[Fumble](~@{character_name}|sheet-test)}}
David said: How do reference a button on the sheet? This does not work. To reference the wiki documentation on Buttons: the optional name -attribute allows the roll to be referenced in external Macros and Abilities. The name must be prefixed with roll_
for this to work, and each roll button should have a unique name.
Buttons in repeating sections automatically gain a unique prefix/suffix
in their name. To call a named roll button in the chat, it works similarly like calling a defined Ability macro from the A & A tab , e.g. %{Bob|BluffCheck} . This will call the "BluffCheck" button of the character named "Bob". Off course I'm not sure about the exact implementation in getting that worked into a roll template.
Figured it out the roll button name has to be prefixed with "roll_". It would be nice if this was referenced here <a href="https://wiki.roll20.net/Macros#Ability_Command_Buttons" rel="nofollow">https://wiki.roll20.net/Macros#Ability_Command_Buttons</a>
David said: Figured it out the roll button name has to be prefixed with "roll_". It would be nice if this was referenced here <a href="https://wiki.roll20.net/Macros#Ability_Command_Buttons" rel="nofollow">https://wiki.roll20.net/Macros#Ability_Command_Buttons</a> I've never used Ability Command Buttons nor about having buttons on roll templates, so if you with this new info can provide us with an example, I can update that section to include it.
Just in case you are talking about in-game use, and not character sheet design code: If you are putting the button into an action (macro stored on a character sheet), you do not need to specify the character. This should work. [Fumble](~test) ...Assuming "test" is also a sheet ability. It should not matter if the called ability is custom or built-in. You can find out syntax options for different macro/ability combinations in the post on Chat Menus .
David said: Figured it out the roll button name has to be prefixed with "roll_". It would be nice if this was referenced here <a href="https://wiki.roll20.net/Macros#Ability_Command_Buttons" rel="nofollow">https://wiki.roll20.net/Macros#Ability_Command_Buttons</a> The information on sheet rolls is documented here
Scott C. said: David said: Figured it out the roll button name has to be prefixed with "roll_". It would be nice if this was referenced here <a href="https://wiki.roll20.net/Macros#Ability_Command_Buttons" rel="nofollow">https://wiki.roll20.net/Macros#Ability_Command_Buttons</a> The information on sheet rolls is documented here It would be a lot more useful if the link to Sheet Roll buttons here <a href="https://wiki.roll20.net/Macros#Ability_Command_Buttons" rel="nofollow">https://wiki.roll20.net/Macros#Ability_Command_Buttons</a> was changed to the link you posted above as it gives a lot more required information than the Sheet Roll buttons entry.
I'm not sure how that should be handled, because the link you are looking at was put there for players/DMs using an existing sheet. The link GiGs Scott gave you is for people creating a sheet. They are 2 very different use cases.
Just to clarify, since there's some potential for misunderstanding here: David, are you talking about coding buttons into a roll template as part of designing a character sheet, or are you talking about putting buttons into a roll template as a user of said sheet in a game? Those are two entirely different things.
keithcurtis said: Just to clarify, since there's some potential for misunderstanding here: David, are you talking about coding buttons into a roll template as part of designing a character sheet, or are you talking about putting buttons into a roll template as a user of said sheet in a game? Those are two entirely different things. I posted in the Character Sheet forum because I am working on a character sheet not macros or I would have posted it in Specific Use Questions & Macros
Kraynic said: I'm not sure how that should be handled, because the link you are looking at was put there for players/DMs using an existing sheet. The link GiGs Scott gave you is for people creating a sheet. They are 2 very different use cases. Is there reference for Ability Command Buttons specifically for sheet creators only? I have already got it working and posted the functioning code.
The link Scott posted goes directly to the section (of a very long page) that speaks about creating roll buttons. There is nothing different about creating a roll button with a roll template, really. Your value just has to include the call for the template. In another section on that page is a link to another page dedicated to roll templates. The main page Scott provided is one about building character sheets: <a href="https://wiki.roll20.net/Building_Character_Sheets" rel="nofollow">https://wiki.roll20.net/Building_Character_Sheets</a> It contains a link for the roll templates: <a href="https://wiki.roll20.net/Roll_Templates" rel="nofollow">https://wiki.roll20.net/Roll_Templates</a> The pages you referred to earlier weren't providing info for sheet authors, but users of existing sheets, so the info they provided is different. It might cause confusion for there to be a link from user info direct to creator info. That is my only concern about changing that link. Do you see where I am coming from that there is a divide between info related to using sheets and creating sheets? The wiki generally keeps them separated.
David, if you provide some context with the snippet you just posted, why how it works, I can add it to the documentation on how buttons work in character sheets, which I linked already in my first reply, and which is linked in the related section in the "Building Character Sheets" article. <a href="https://wiki.roll20.net/Button" rel="nofollow">https://wiki.roll20.net/Button</a>