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

Requesting some help with crits showing only crit damage and not also success damage

1763326528

Edited 1763326567
Hi there. I'm working on a sheet for Vagabond.  My roll looks like this: < button type = " roll " title = " Attack " class = " attack " name = " roll_attack " value = " &{template:vagabond-attack} {{name = @ {character_name}}} {{weapon = @ {weapon_name}}} {{type = @ {attack_type}}} {{total = [[ 1 d20cs20 + ? { Favor or Hinder?| Normal, 0 |Favor , 1d6cs0cf0| Hinder, -1 d6cs0cf0} ]]}} {{difficulty = [[ @ {attack_difficulty}]]}} {{damage = [[ @ {damage}]]}} {{crit_damage = [[ @ {attack_stat_bonus} + @ {damage}]]}} " > </ button > And my template looks like this: < rolltemplate class = " sheet-rolltemplate-vagabond-attack " > < div class = " sheet-container " > < div class = " sheet-roll-header " > {{name}} ' s {{weapon}} ( {{type}} ) Attack < /div > < div class = " sheet-roll-body " > < div class = " sheet-roll-line " > < span class = " sheet-roll-label " > Result : < / span > < span class = " sheet-roll-value " > {{total}} </ span > < span >vs Difficulty {{difficulty}} </ span > </ div > < div class = " sheet-roll-result " > {{ # rollWasCrit () total}} < span class = " sheet-critical " > CRITICAL HIT !</ span > < div class = " sheet-damage-line " > < span class = " sheet-roll-label " > Damage : < / span > < span class = " sheet-damage " > {{crit_damage}} </ span > </ div > {{ /rollWasCrit () total}} {{ ^rollWasCrit () total}} {{ # rollLess () total difficulty}} < span class = " sheet-fail " > MISS </ span > {{ /rollLess () total difficulty}} {{ # rollGreater () total difficulty}} < span class = " sheet-pass " > HIT </ span > < div class = " sheet-damage-line " > < span class = " sheet-roll-label " > Damage : < / span > < span class = " sheet-damage " > {{damage}} </ span > </ div > {{ /rollGreater () total difficulty}} {{ # rollBetween () total difficulty difficulty}} < span class = " sheet-pass " > HIT </ span > < div class = " sheet-damage-line " > < span class = " sheet-roll-label " > Damage : < / span > < span class = " sheet-damage " > {{damage}} </ span > </ div > {{ /rollBetween () total difficulty difficulty}} {{ /rollWasCrit () total}} </ div > </ div > </ div > </ rolltemplate > My understanding is that The miss/hits being wrapped in ^rollWasCrit() would exclude them from ever displaying if a crit is rolled, but when I do roll a crit, I still see the success damage and the crit damage. I'm very new to this, and I've been looking at the docs as much as possible, but feel a bit stuck on this one. I'd appreciate any help someone can spare.  Thank you!
1763331006
vÍnce
Pro
Sheet Author
On my phone... I think you need to close  {{ ^rollWasCrit () total}} with  {{ /^rollWasCrit () total}}
That was it exactly, thanks you! vÍnce said: On my phone... I think you need to close  {{ ^rollWasCrit () total}} with  {{ /^rollWasCrit () total}}