Difference between revisions of "Template:Fortification"

From DDO Compendium
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
=== Fortification ===
<noinclude>{{TemplateDocumentation
<noinclude>This template is used for all bonuses to Fortification.[[Category:Template]]
|name = Fortification
 
|description = This template is used on equipment for the Fortification enchantment.  Fortification modifies the change that a defender will be hit critically.
Used in this manner:
|category=Item Enchantment Template
<br><nowiki>{{Fortification|Modifier|ModType (opt)}}</nowiki><br>
|example1 = <nowiki>{{Fortification|3|Exceptional}}</nowiki>
<br>Such that <nowiki>{{Fortification|+3|Exceptional}}</nowiki> results in<br>
|example1output = {{Fortification|3|Exceptional}}
<br>{{Fortification|+3|Exceptional}}<br>
|example2 = <nowiki>{{Fortification|-25}}</nowiki>
|example2output = {{Fortification|-25}}
|parameter1name = Enhancement Amount
|parameter1description = This is the amount that fortification is increased.
|parameter2name = Bonus Type
|parameter2description = This is the type of bonus - Insight, Enhancement, Quality, etc. If you don't specify a value here it will default to Enhancement.
|parameter3name = Title
|parameter3description = The title for the enchantment if it doesn't match the default
}}
</noinclude>
</noinclude>
 
<onlyinclude>{{EnchTitle|Fortification|{{BonusTypeNameConversion|{{{2|}}}|True}} Fortification {{#ifexpr: {{{1}}} < 0 |Penalty ({{{1}}}%)|+{{{1}}}%}}|{{{3|}}}}}{{EnchBody|Passive: {{#ifexpr: {{{1}}} < 0 ||+}}{{{1}}}% {{#ifexpr: {{{1}}} < 0 ||{{BonusTypeNameConversion|{{{2|Enhancement}}}}}}} {{#ifexpr: {{{1}}} < 0 |penalty|bonus}} to Fortification. (Fortification is a chance to negate additional damage incurred from Critical Hit or Sneak Attack. Some enemies can bypass a portion of your Fortification.)}}{{EnchCat|Fortification|Items with a Bonus to Fortification|Items with a {{BonusTypeNameConversion|{{{2|Enhancement}}}}} Bonus to Fortification}}</onlyinclude>
=== Template ===
<onlyinclude>[[Category: Items with a Bonus to Fortification]][[Fortification | '''{{{2|}}} Fortification {{{1}}}%:''']] This suit of armor or shield produces a magical force that greatly increases protection of vital areas. When critical hit or sneak attack is scored on the wearer, there is a {{{1}}}% chance that the critical hit or sneak attack is negated and damage is instead rolled normally. {{#if: {{{2|}}} | This ability is considered an {{#switch: {{{2}}}
| Exceptional = Insight
| #default = {{{2}}}}} bonus when determining stacking with other sources of fortification.}}</onlyinclude>

Latest revision as of 23:33, 26 May 2022

Fortification[edit]

This template is used on equipment for the Fortification enchantment. Fortification modifies the change that a defender will be hit critically.

Example Usage
{{Fortification|3|Exceptional}}Exceptional Fortification +3%: Passive: +3% Exceptional bonus to Fortification. (Fortification is a chance to negate additional damage incurred from Critical Hit or Sneak Attack. Some enemies can bypass a portion of your Fortification.)
{{Fortification|-25}}Fortification Penalty (-25%): Passive: -25% penalty to Fortification. (Fortification is a chance to negate additional damage incurred from Critical Hit or Sneak Attack. Some enemies can bypass a portion of your Fortification.)

Usage[edit]

{{Fortification|(Enhancement Amount)|(Bonus Type)|(Title)}}

Parameter Documentation
Enhancement AmountThis is the amount that fortification is increased.
Bonus TypeThis is the type of bonus - Insight, Enhancement, Quality, etc. If you don't specify a value here it will default to Enhancement.
TitleThe title for the enchantment if it doesn't match the default

Template

Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.


Fortification Expression error: Unrecognized punctuation character "{".: Passive: Expression error: Unrecognized punctuation character "{".{{{1}}}% Expression error: Unrecognized punctuation character "{". Expression error: Unrecognized punctuation character "{". to Fortification. (Fortification is a chance to negate additional damage incurred from Critical Hit or Sneak Attack. Some enemies can bypass a portion of your Fortification.)