Ad placeholder

Template:Damage info: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 3: Line 3:
| #default = {{DamageInfo/Primitive
| #default = {{DamageInfo/Primitive
| count = {{{count |
| count = {{{count |
   {{#explode: {{lc: {{{1}}} }} | d | 0 }}
   {{#if: {{#pos: {{{1}}} | d }} |
    {{#explode: {{lc: {{{1}}} }} | d | 0 }}
  }}
}}}
}}}
| 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. -->
   {{#if: {{#pos: {{{1}}} | d }} |
  {{#explode: {{#replace: {{lc: {{{1}}} }} | d | + }} | + | 1 }}
    <!-- 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 }}
  }}
}}}
}}}
| plus = {{{plus |
| plus = {{{plus |

Navigation menu