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

Help with formatting a custom roll from a custom character sheet

1590581928

Edited 1590582152
Hi all, So I've been trying to create a weapon system for a homebrew system my DM has been making. In the character sheet, a player can enter all the relevant info about their weapon: They click the roll button at the bottom, then this appears: The problem is, even though this uses the standard template, it doesn't display properly. When I've used macros (in game) with the same template, it shows up in it's own little card. Mine doesn't. If the player rolls again, it looks badly formatted in the game chat window: Could anyone please tell me what I'm missing/doing wrong? Here's the code for the button: <button name="roll_meleehit"  type="roll"  value= "&{template:default} {{name=@{meleeweaponname}}} Attack [[1d100]] < Target [[@{sFIR} + @{sFIRBon} + @{attbonus}]] Damage: [[@{dmgdicecount}d@{dmgdicefaces}]] @{damagetype} Penetration: [[@{attpen}]] Location: [[1d100]] "> </button> Thanks
Only things inside {{ }} will be part of the box. You add those to each line and then they will all show up as separate lines inside the template box.
1590583625

Edited 1590583640
Finderski
Plus
Sheet Author
Compendium Curator
Dakota H. said: Only things inside {{ }} will be part of the box. You add those to each line and then they will all show up as separate lines inside the template box. And put them all on the same line. like this: <button name="roll_meleehit"  type="roll"  value= "&{template:default} {{name=@{meleeweaponname}}} {{ Attack [[1d100]] < Target [[@{sFIR} + @{sFIRBon} + @{attbonus}]]}} {{ Damage: [[@{dmgdicecount}d@{dmgdicefaces}]] @{damagetype} }} {{ Penetration: [[@{attpen}]]}} {{ Location: [[1d100]]}} "> </button>
1590584910

Edited 1590584931
GiGs
Pro
Sheet Author
API Scripter
changing the in-line separators to = will format them as proper columns, too. Here's the value part: &{template:default} {{name=@{meleeweaponname}}} {{Attack=[[1d100]] < Target [[@{sFIR} + @{sFIRBon} + @{attbonus}]]}} {{Damage=[[@{dmgdicecount}d@{dmgdicefaces}]] @{damagetype} }} {{Penetration=[[@{attpen}]]}} {{Location=[[1d100]]}}
1590585103
Finderski
Plus
Sheet Author
Compendium Curator
GiGs said: changing the in-line separators to = will format them as proper columns, too. Here's the value part: &{template:default} {{name=@{meleeweaponname}}} {{Attack=[[1d100]] < Target [[@{sFIR} + @{sFIRBon} + @{attbonus}]]}} {{Damage=[[@{dmgdicecount}d@{dmgdicefaces}]] @{damagetype} }} {{Penetration=[[@{attpen}]]}} {{Location=[[1d100]]}} Nice catch GiGs...totally missed that.
1590585143
Finderski
Plus
Sheet Author
Compendium Curator
I almost feel like this is the beginning of a joke...How many sheet authors does it take to change a roll formula...? LOL
1590585312
GiGs
Pro
Sheet Author
API Scripter
I did think it was funny that there were 3 people contributing, each one genuinely adding something extra. hehe.
1590622157

Edited 1590622262
It worked perfectly. Thanks Gigs, Dakota H and Finderski for the help :)
1590622282
GiGs
Pro
Sheet Author
API Scripter
Great! Dont forget Dakota!