Ad placeholder

Template:Damage info: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 1: Line 1:
<includeonly><div class="bg3wiki-damage-info">{{DieIcon|D{{{die}}}|{{{type}}}}} {{DamageColor | {{{type}}} | {{{count}}}d{{{die}}} {{#switch:{{{plus|0}}}|0=|+ {{{plus}}}}} ({{#expr: {{{count}}} + {{{plus|0}}} }}~{{#expr: {{{count}}}*{{{die}}} + {{{plus|0}}} }}) {{DamageModifier|{{{modifier|}}}}} {{#if:{{{per|}}}|per {{{per}}}|}} }} {{DamageType|{{{type}}}}}</div></includeonly><noinclude>
<includeonly>{{DamageInfoPrimitive
| count =
{{{count|
  {{#explode: {{lc: {{{1}}} }} |d| 0 }}
}}}
| die =
{{{die|
  {{#explode: {{#replace: {{lc: {{{1}}} }} |d| + }} |+| 1 }}
}}}
| plus =
{{#if: {{{plus|}}}
  | {{{plus}}}
  | {{#if: {{#pos: {{{1}}} |+}}
      | {{#explode: {{#replace: {{lc: {{{1}}} }} |d| + }} |+| 2}}
      | 0 }}
}}
| type = {{{type| {{{2}}} }}}
| modifier = {{{modifier|}}}
| per = {{{per|}}}
}}</includeonly><noinclude>
== New usage ==
 
Examples:
 
{{code|<nowiki>{{DamageInfo|1d8|Slashing}}</nowiki>}}
{{DamageInfo|1d8|Slashing}}
 
---
 
{{code|<nowiki>{{DamageInfo|4d6|Radiant}}</nowiki>}}
{{DamageInfo|4d6|Radiant}}
 
---
 
{{code|<nowiki>{{DamageInfo|1d4+1|Force}}</nowiki>}}
{{DamageInfo|1d4+1|Force}}
 
---
 
{{code|<nowiki>{{DamageInfo|2d10|Fire|per=ray}}</nowiki>}}
{{DamageInfo|2d10|Fire|per=ray}}
 
---
 
{{code|<nowiki>{{DamageInfo|1d12|Poison|per=turn}}</nowiki>}}
{{DamageInfo|1d12|Poison|per=turn}}
 
---
 
{{code|<nowiki>{{DamageInfo|1d8|Piercing|modifier=melee}}</nowiki>}}
{{DamageInfo|1d8|Piercing|modifier=melee}}
 
---
 
{{code|<nowiki>{{DamageInfo|1d8|Piercing|modifier=ranged}}</nowiki>}}
{{DamageInfo|1d8|Piercing|modifier=ranged}}
 
---
 
{{code|<nowiki>{{DamageInfo|1d8|Piercing|modifier=finesse}}</nowiki>}}
{{DamageInfo|1d8|Piercing|modifier=finesse}}
 
---
 
{{code|<nowiki>{{DamageInfo|1d8|Bludgeoning|modifier=Wisdom}}</nowiki>}}
{{DamageInfo|1d8|Bludgeoning|modifier=Wisdom}}
 
 
== Legacy usage ==
 
Examples:
Examples:


Navigation menu