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

Custom Character Sheet damage input

December 20 (6 years ago)

Hey again, I seem to have gotten stuck at damage input this time, I wanted to make spells/skills deal a user-input damage, but I can't seem to comprehend how to do that.

Basically I want to try and do something similar to DnD E5's roll sheet where I could just write down on the damage part something like "1d20+5" or "@{charisma}+1d6" and it'd give me the resulting roll in the chat.

Code so far looks like this:

<fieldset class="repeating_spells">  
<input type="text" name="attr_spell_name"/>
<input class="hide-next" type="checkbox" name="attr_spell_damaging"/>
<span><input type="text" name="attr_spell_damage"/></span>
<!--<button type="roll" value="&{template:default} {{name=Item}} {{Name=@{item_name}}} {{Description=@{item_description}}}"> Show Item</button>-->
</fieldset><br><br>


I've been using the roll templates at wikia, although I can't quite comprehend how to do the custom damage for the sheet. Would appreciate it if someone could help me or point me in the right direction!

Thanks in advance.

December 20 (6 years ago)
Andreas J.
Forum Champion
Sheet Author
Translator

For your example, assuming the "charisma" attribute contains d20:

&{template:default} {{name=Charisma Check}} {{Roll=[[@{charisma} + 1d6]]}}

This outputs a default roll template with the title "Charisma Check", and the d20+1d6 value rolled.

December 20 (6 years ago)

Well, the idea is using the same system as https://github.com/Roll20/roll20-character-sheets/tree/master/5th%20Edition%20OGL%20by%20Roll20

Although I'm having a predicament finding what I need. The function that I wish to emulate/copy in question is:

https://i.imgur.com/rbeQZbD.gifv

Where I customize the roll from a user standpoint, instead of from the html/css portion. Sorry if I'm not being clear enough, I'm trying x.x

December 20 (6 years ago)

Edited December 20 (6 years ago)
Andreas J.
Forum Champion
Sheet Author
Translator

Did you read the corresponding section on the wiki? It might shine some light on what you're looking for.

EDIT:Are you trying to make a new character sheet and want the rolls to look like it does on the D&D5E sheet? Or are you doing a custom macro for users that relies on the D&D5E sheet?

Only the default roll template is available to all sheets, the rest of the roll template are part of the character sheets. Roll templates of the sheet you pointed to start on this row

December 20 (6 years ago)


Andreas J. said:

Did you read the corresponding section on the wiki? It might shine some light on what you're looking for.

EDIT:Are you trying to make a new character sheet and want the rolls to look like it does on the D&D5E sheet? Or are you doing a custom macro for users that relies on the D&D5E sheet?

Only the default roll template is available to all sheets, the rest of the roll template are part of the character sheets. Roll templates of the sheet you pointed to start on this row


Thanks! I got what I wanted, the end result I got is

<button type="roll" value="&{template:default} {{name=Skill attack}} {{Name=@{skill_name}}} {{Accuracy Roll= [[1d20 + @{dexterity}]]}} {{Damage=[[@{skill_damage}]]}} {{Crit=[[1d100>[[100 - @{crit}]] ]]}}"/>

which works according to what I wanted and my needs, thank you very much!