Template:Damage info: Difference between revisions

Jump to navigation Jump to search
No edit summary
No edit summary
Line 6: Line 6:
}}}
}}}
| die = {{{die |
| die = {{{die |
  <!-- To get the die out of e.g. "2d6 + 3", we turn it into "2+6 + 3", use '+' as the #explode separator. -->
   {{#explode: {{#replace: {{lc: {{{1}}} }} | d | + }} | + | 1 }}
   {{#explode: {{#replace: {{lc: {{{1}}} }} | d | + }} | + | 1 }}
}}}
}}}
| plus = {{{plus |
| plus = {{{plus |
   {{#if: {{#pos: {{{1}}} | + }}
   {{#if: {{#pos: {{{1}}} | + }}
     | {{#explode: {{#replace: {{lc: {{{1}}} }} | d | + }} | + | 2}}
     | {{#explode: {{lc: {{{1}}} }} | + | -1 }}
     | 0 }}
     | 0 }}
}}}
}}}