Difference between revisions of "Template:AC"

From DDO Compendium
 
(36 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>This template is used for all bonuses to Armor Class.[[Category:Template]]
<noinclude>{{TemplateDocumentation
 
|name = AC
Used in this manner:
|description = This template is used on equipment for the Armor Class enchantment.  It shows the text of the ability as close as possible to the way it looks on an items examine window.
<br><nowiki>{{AC|Source|Modifier|ModType (opt)}}</nowiki><br>
|category=Item Enchantment Template
<br>Such that <nowiki>{{AC|Natural|+5|Insight}}</nowiki> results in<br>
|example1 = <nowiki>{{AC|Natural Armor|5|Insight}}</nowiki>
<br>{{AC|Natural|+5|Insight}}
|example1output = {{AC|Natural Armor|5|Insight}}
Options for Source
|parameter1name = Source
* Base
|parameter1description = This specifies the source of the Armor class change.
|parameter1values =
* Deflection
* Deflection
* Natural
* Natural Armor
* Shield
* Shield
* Armor
* Armor
* Riposte
* Rough Hide
* Heightened Awareness
* Hardened Exterior
* Protection From Evil
|parameter2name = Enhancement Amount
|parameter2description = This is the amount the Armor Class is increased or decreased.  A negative value here will produce "penalty" instead of "bonus".
|parameter2values =
|parameter3name = Bonus Type
|parameter3description = This is the type of bonus - Insight, Enhancement, Quality, etc.  If you don't specify a value here it will default to Enhancement.
|parameter3values =
}}
</noinclude>
</noinclude>
<onlyinclude>{{#switch: {{lc:{{{1}}}}}
| deflection = {{EnchTitle|Armor Class#Deflection|{{BonusTypeNameConversion|{{{3|}}}|True}} Protection +{{{2}}}}}{{EnchBody|This item protects its wearer by granting a {{#ifexpr: {{{2}}} < 0 |-|+}}{{{2}}} {{BonusTypeNameConversion|{{{3|}}}}} deflection {{#ifexpr: {{{2}}} < 0 |penalty|bonus}} to AC.}}{{EnchCat|AC|{{#ifexpr: {{{2}}} < 0 |-|+}}{{{2}}} {{BonusTypeNameConversion|{{{3|}}}}} Deflection {{#ifexpr: {{{2}}} < 0 |Penalty|Bonus}} to Armor Class}}
| natural armor = {{EnchTitle|Armor Class#Natural Armor|{{BonusTypeNameConversion|{{{3|}}}|True}} Natural Armor +{{{2}}}}}{{EnchBody|Passive: +{{{2}}} {{BonusTypeNameConversion|{{{3|}}}}} Natural Armor {{#ifexpr: {{{2}}} < 0|penalty|bonus}} to Armor Class.}}{{EnchCat|AC|+{{{2}}} {{BonusTypeNameConversion|{{{3|}}}}} Natural Armor {{#ifexpr: {{{2}}} < 0|Penalty|Bonus}} to Armor Class}}
| shield = {{EnchTitle|Armor Class#Shield|{{BonusTypeNameConversion|{{{3|}}}|True}} Shield Bonus +{{{2}}}}}{{EnchBody|While this item is equipped, you are partially protected by a field of magical force which can deflect enemy attacks.  This item provides a +{{{2}}} Shield bonus to Armor Class.  It does not shack with an equipped shield.}}{{EnchCat|AC|+{{{2}}} {{BonusTypeNameConversion|{{{3|}}}}} Shield {{#ifexpr: {{{2}}} < 0|Penalty|Bonus}} to Armor Class}}
| riposte = [[Category:Bad AC Template]] USE [[Template:Riposte]]
| armor = {{EnchTitle|Armor Class#Armor|Armor Bonus +{{{2}}}}}{{EnchBody|This item surrounds the wearer with an invisible but tangible field of force, granting +{{{2}}} {{BonusTypeNameConversion|{{{3|}}}}} Armor bonus to AC, just as though he were wearing armor.}}{{EnchCat|AC|+{{{2}}} {{BonusTypeNameConversion|{{{3|}}}}} Armor {{#ifexpr: {{{2}}} < 0|Penalty|Bonus}} to Armor Class}}
| rough hide = {{EnchTitle|Armor Class#Rough Hide|Rough Hide +{{{2}}}}}{{EnchBody|This item fuses with your body and toughens your skin, providing a +{{{2}}} {{BonusTypeNameConversion|{{{3|Primal}}}}} bonus to your natural armor.}}{{EnchCat|AC|+{{{2}}} {{BonusTypeNameConversion|{{{3|Primal}}}}} {{#ifexpr: {{{2}}} < 0|Penalty|Bonus}} to Armor Class}}
| hardened exterior = {{EnchTitle|Armor Class#Hardened Exterior|Hardened Exterior {{{2}}}}}{{EnchBody|You gain a +{{{2}}} {{BonusTypeNameConversion|{{{3|Primal}}}}} bonus to AC.}}{{EnchCat|AC|+{{{2}}} {{BonusTypeNameConversion|{{{3|Primal}}}}}  {{#ifexpr: {{{2}}} < 0|Penalty|Bonus}} to Armor Class}}
| heightened awareness = {{EnchTitle|Armor Class#Heightened Awareness|Heightened Awareness {{{2}}}}}{{EnchBody|This item grants you the ability to read situations with incredible perspicacity, allowing you to predict actions before they occur. You gain a +{{{2}}} insight bonus to AC.}}{{EnchCat|AC|+{{{2}}} {{BonusTypeNameConversion|{{{3|Insight}}}}} {{#ifexpr: {{{2}}} < 0|Penalty|Bonus}} to Armor Class}}
| protection from evil = {{EnchTitle|Armor Class#Protection From Evil|Protection from Evil +{{{2}}}}}{{EnchBody|You have a +{{{2}}} Deflection bonus to AC, and a +{{{2}}} Resistance bonus to Saves vs Evil Monsters.}}{{EnchCat|AC|+{{{2}}} {{BonusTypeNameConversion|{{{3|Deflection}}}}} {{#ifexpr: {{{2}}} < 0|Penalty|Bonus}} to Armor Class}}{{EnchCat|AC|+{{{2}}} Resistance {{#ifexpr: {{{2}}} < 0|Penalty|Bonus}} to Saves vs Evil Monsters}}
|armor class = {{EnchTitle|Armor Class|{{{1|}}} +{{{2|}}}}}{{EnchBody|This item grants a +{{{2|}}} bonus to Armor Class.}}{{EnchCat|AC|+{{{2}}} {{#ifexpr: {{{2}}} < 0|Penalty|Bonus}} to Armor Class}}


<onlyinclude>[[Category: Items with a Bonus to {{{1}}}]]{{#switch: {{{1}}}
|#default = {{EnchTitle|Armor Class|{{{1|}}} +{{{2|}}}}}{{EnchBody|This item grants a +{{{2|}}} {{{1|}}} bonus to Armor Class.}}{{EnchCat|AC|+{{{2}}} {{BonusTypeNameConversion|{{{1|Enhancement}}}}} {{#ifexpr: {{{2}}} < 0|Penalty|Bonus}} to Armor Class}}}}</onlyinclude>
| Deflection = [[Armor Class#Deflection | '''{{{3|}}} Protection {{{2}}}:''']] This item protects its wearer by granting a {{{2}}} {{{3|}}} deflection {{#ifexpr: {{{2}}} < 0 |penalty|bonus}} to AC.
| Natural = [[Armor Class#Natural Armor | '''{{{3|}}} Natural Armor {{{2}}}:''']] Passive: {{{2}}} {{{3|}}} Natural Armor {{#ifexpr: {{{2}}} < 0     |penalty|bonus}} to Armor Class.
| Shield = [[Armor Class#Shield | '''{{{3|}}} Shield {{{2}}}:''']] While this item is equipped, you are partially protected by a field of magical force which can deflect enemy attacks.  This item provides a {{{2}}} bonus to Armor Class.  It does not shack with an equipped shield.
| Armor = [[Armor Class#Armor | '''Armor Bonus {{{2}}}:''']] This item surrounds the wearer with an invisible but tangible field of force, granting {{{2}}} {{{3|}}} bonus to AC, just as though he were wearing armor.}}
</onlyinclude>

Latest revision as of 11:21, 7 September 2021

AC[edit]

This template is used on equipment for the Armor Class enchantment. It shows the text of the ability as close as possible to the way it looks on an items examine window.

Example Usage
{{AC|Natural Armor|5|Insight}}Insightful Natural Armor +5: Passive: +5 Insight Natural Armor bonus to Armor Class.

Usage[edit]

{{AC|(Source)|(Enhancement Amount)|(Bonus Type)}}

Parameter Documentation
SourceThis specifies the source of the Armor class change.
Possible Values:
  • Deflection
  • Natural Armor
  • Shield
  • Armor
  • Riposte
  • Rough Hide
  • Heightened Awareness
  • Hardened Exterior
  • Protection From Evil
Enhancement AmountThis is the amount the Armor Class is increased or decreased. A negative value here will produce "penalty" instead of "bonus".
Bonus TypeThis is the type of bonus - Insight, Enhancement, Quality, etc. If you don't specify a value here it will default to Enhancement.

Template

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


+: This item grants a + bonus to Armor Class.