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 .
×

Custom Sheet New thing

Hello, I've been posting her a lot recently i know, not a css question this time specific to r20, how would I get damage to crit in an attack roll? specifically because we do not use a d20 to hit its xd10>7! and crits based on nat 10s, the current to hit button is as follows. Prowess is the melee to hit stat, temp prowes is just that, and atk roll mod + prowroll mod are exactly what they sound like. <button class ="buttontop" name="roll_ATK" type="roll" value="/em Attacks: [[[[floor((@{Prowess}+@{TempPRW}+10)/10)+@{RMODPRW}+@{ATKRMOD}]]d10>@{SuccessThreshold}!]] Location:[[1d10]] Severity:[[1d10]]"> <span data="ATK">Melee Attack</span> </button>
1596723652
GiGs
Pro
Sheet Author
API Scripter
When trying to get a dice roll to work, forget about the character sheet. Work on it in a macro, completely separate from the character sheet, and then once you have it working, you can put it in a character sheet button value. This lets you test things much quicker, without distractions. Can you describe exactly how your roll works, and what the output should include and look like?
at the moment it rolls lets say 5 for the purpose of this, so it would be 5d10>7! so any result over 7 is a success, a 10 explodes and rolls again, it also then rolls the location it hits on a d10, and the severity of the wound, I'm wanting it to also roll damage, which is easy enough, i just add a field for the player to put their damage in, but I want it to register the attack roll has 10s in it forcing the damage to double 
Roll templates can be set up to show an extra area if the roll was above/below/is a certain number.  You might be able to tweak it into auto rolling the extra damage and only show it if the roll is high enough to warrant the extra damage.
It doesn't roll the damage again, just multiplies the base damage.
Daniel H. said: It doesn't roll the damage again, just multiplies the base damage. I think that is something that requires API.  To the best of my knowledge, rolls and macros (by extension, roll templates) do not "hold" the result of a roll. Personally, I would just double it after the roll in my head, but you may want to do something else with the number.