Template:DamageBlob: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Add support for conditional flag)
(Cleanup errant p tag)
 
Line 12: Line 12:
          
          
     {{#lvar: dmg1}}
     {{#lvar: dmg1}}
    {{#if: {{#lvar: amttxt}}|<p>|}}
  }}
  }}
</includeonly><noinclude>
</includeonly><noinclude>

Latest revision as of 21:11, 12 December 2023

This template abstracts out the parsing of damage and damage2 fields from Template:ActionPage

{{DamageBlob|amount: 1d6, type: Fire, mod: Strength}}:

{{DamageBlob|amount: 1d6, type: Fire, mod: Strength, cond:yes}}:

D6 Fire.png 1d6 (1~6) + Strength modifier Damage TypesFire (conditional)

{{DamageBlob|amounttext: 4d6+3, type: Cold}}:

4d6 + 3 Damage TypesCold