Template:Damage info/Primitive: Difference between revisions

Jump to navigation Jump to search
no edit summary
(change healing text to "hit points")
No edit summary
Line 1: Line 1:
<includeonly><div class="bg3wiki-info-blob">{{#if: {{{die|}}} | {{DieIcon | D{{{die}}} | {{{type}}} }} }} {{DamageColor | {{{type}}} | {{#if: {{{flat value|}}} | {{{flat value}}} }}{{#if: {{{die|}}} | {{#if:{{{con|}}} | + |}}{{{count}}}d{{{die}}} }} {{#switch: {{{plus|0}}} | 0 = | + {{{plus}}} }} {{#if: {{{die|}}} | ({{#expr: {{{count}}} + {{{plus|0}}} }}~{{#expr: {{{count}}}*{{{die}}} + {{{plus|0}}} }}) }} {{DamageModifier | {{{modifier|}}} }} {{#ifeq: {{{type|}}} | Healing | {{DamageType | {{{type}}} | hit points }}  | {{DamageType | {{{type}}} }} damage}} {{#if: {{{per|}}} | per {{{per}}} }} {{#if:{{{con|}}} | (Conditional)|}}}} {{#if: {{{save|}}} | ({{#switch:{{{save}}} | no | none = No [[Saving Throw]] allowed | #default = [[Saving Throw|{{{save}}} Save]] to {{#switch: {{{save effect|}}} | half | halve = halve | #default = negate }} }})}}</div>{{#ifeq:{{{type|}}}|Healing|[[Category:Sources of healing]]|{{Main only|[[Category:Sources of {{{type}}} damage]]}}}}</includeonly><noinclude>
<includeonly><div class="bg3wiki-info-blob">{{#if: {{{die|}}} | {{DieIcon | D{{{die}}} | {{{type}}} }} }} {{DamageColor | {{{type}}} | {{#switch: {{{flat value|}}} | <!--empty--> = <!--nothing--> | proficiency = [[Proficiency Bonus]] | #default = {{{flat value}}} }}{{#if: {{{die|}}} | {{#if:{{{con|}}} | + |}}{{{count}}}d{{{die}}} }} {{#switch: {{{plus|0}}} | 0 = | + {{{plus}}} }} {{#if: {{{die|}}} | ({{#expr: {{{count}}} + {{{plus|0}}} }}~{{#expr: {{{count}}}*{{{die}}} + {{{plus|0}}} }}) }} {{DamageModifier | {{{modifier|}}} }} {{#ifeq: {{{type|}}} | Healing | {{DamageType | {{{type}}} | hit points }}  | {{DamageType | {{{type}}} }} damage}} {{#if: {{{per|}}} | per {{{per}}} }} {{#if:{{{con|}}} | (Conditional)|}}}} {{#if: {{{save|}}} | ({{#switch:{{{save}}} | no | none = No [[Saving Throw]] allowed | #default = [[Saving Throw|{{{save}}} Save]] to {{#switch: {{{save effect|}}} | half | halve = halve | #default = negate }} }})}}</div>{{#ifeq:{{{type|}}}|Healing|[[Category:Sources of healing]]|{{Main only|[[Category:Sources of {{{type}}} damage]]}}}}</includeonly><noinclude>
Examples:
Examples:


{{code|<nowiki>{{DamageInfo | 2 | Acid }}</nowiki>}}
{{code|<nowiki>{{DamageInfo | 2 | Acid }}</nowiki>}}
{{DamageInfo | 2 | Acid }}
{{DamageInfo | 2 | Acid }}
---
{{code|<nowiki>{{DamageInfo | prof | Acid }}</nowiki>}}
{{DamageInfo | prof | Acid }}
---
{{code|<nowiki>{{DamageInfo | proficiency | Acid }}</nowiki>}}
{{DamageInfo | proficiency | Acid }}


---
---

Navigation menu