Drinking & Dragons

Template:T20defense: Difference between revisions

From Drinking and Dragons
mNo edit summary
mNo edit summary
Line 1: Line 1:
{{#vardefine:dodgemisc|{{{dodgemisc}}}}}
{{#vardefine:defensemisc|{{{defensemisc}}}}}{{#vardefine:dodgemisc|{{{dodgemisc}}}}}{{#vardefine:parrymisc|{{{parrymisc}}}}}
{{#vardefine:parrymisc|{{{parrymisc}}}}}
'''Defense'''{{#expr:{{#var:defensemisc}}+{{#var:combat2}}+{{#var:combat}}+10}}<br/>
'''Defense'''<br/>
'''Dodge''' {{#expr:{{#var:defensemisc}}+{{#var:dex}}+{{#var:combat2}}+{{#var:combat}}+10}}<br/>
'''Dodge''' {{#expr:{{#var:dex}}+
'''Parry''' {{#expr:{{#var:defensemisc}}+{{#var:str}}+{{#var:combat2}}+{{#var:combat}}+10}}<noinclude>
{{#if:{{#var:combat2}} | {{#var:combat2}} | {{#var:combat}} }}+10}}<br/>
'''Parry''' {{#expr:{{#var:str}}+{{#var:combat}}+10}}
 
{{#if:{{#var:combat2}} | Combat2 has content | Combat2 is empty }}
 
{{#ifexpr:{{#expr:{{#var:combat2}} > 0}} | Combat2 is greater than zero }}
 
<noinclude>
<pre>
<pre>
{{T20defense
{{T20defense
|defensemisc=0 (This is a catchall for bonuses from feats, etc.)
|dodgemisc=0
|dodgemisc=0
|parrymisc=0
|parrymisc=0

Revision as of 18:29, 4 January 2011

DefenseExpression error: Unrecognized punctuation character "{".
Dodge Expression error: Unrecognized punctuation character "{".
Parry Expression error: Unrecognized punctuation character "{".

{{T20defense
|defensemisc=0 (This is a catchall for bonuses from feats, etc.)
|dodgemisc=0
|parrymisc=0
}}