Difference between revisions of "Template:AC"
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
Line 24: | Line 24: | ||
}} | }} | ||
</noinclude> | </noinclude> | ||
<onlyinclude>{{#ifeq: {{FULLPAGENAME}} |Template:AC||[[Category: Items with a Bonus to Armor Class]]}}{{#switch: {{lc:{{{1}}}}} | <onlyinclude>{{#ifeq: {{#dplvar:enhview}}|titleonly||{{#ifeq: {{FULLPAGENAME}} |Template:AC||[[Category: Items with a Bonus to Armor Class]]}}}}{{#switch: {{lc:{{{1}}}}} | ||
| deflection = [[Armor Class#Deflection | '''{{BonusTypeNameConversion|{{{3|}}}|True}} Protection +{{{2}}}:''']] This item protects its wearer by granting a {{#ifexpr: {{{2}}} < 0 |-|+}}{{{2}}} {{BonusTypeNameConversion|{{{3|}}}}} deflection {{#ifexpr: {{{2}}} < 0 |penalty|bonus}} to AC. | | deflection = {{#ifeq: {{#dplvar:enhview}}|titleonly|[[Armor Class#Deflection | {{BonusTypeNameConversion|{{{3|}}}|True}} Protection +{{{2}}}]]|[[Armor Class#Deflection | '''{{BonusTypeNameConversion|{{{3|}}}|True}} Protection +{{{2}}}:''']] This item protects its wearer by granting a {{#ifexpr: {{{2}}} < 0 |-|+}}{{{2}}} {{BonusTypeNameConversion|{{{3|}}}}} deflection {{#ifexpr: {{{2}}} < 0 |penalty|bonus}} to AC. | ||
| natural armor = [[Armor Class#Natural Armor | '''{{BonusTypeNameConversion|{{{3|}}}|True}} Natural Armor +{{{2}}}:''']] Passive: +{{{2}}} {{BonusTypeNameConversion|{{{3|}}}}} Natural Armor {{#ifexpr: {{{2}}} < 0|penalty|bonus}} to Armor Class. | | natural armor = {{#ifeq: {{#dplvar:enhview}}|titleonly|[[Armor Class#Natural Armor | {{BonusTypeNameConversion|{{{3|}}}|True}} Natural Armor +{{{2}}}]]|[[Armor Class#Natural Armor | '''{{BonusTypeNameConversion|{{{3|}}}|True}} Natural Armor +{{{2}}}:''']] Passive: +{{{2}}} {{BonusTypeNameConversion|{{{3|}}}}} Natural Armor {{#ifexpr: {{{2}}} < 0|penalty|bonus}} to Armor Class. | ||
| shield = [[Armor Class#Shield | '''{{BonusTypeNameConversion|{{{3|}}}|True}} Shield Bonus +{{{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}}} Shield bonus to Armor Class. It does not shack with an equipped shield. | | shield = {{#ifeq: {{#dplvar:enhview}}|titleonly|[[Armor Class#Shield | {{BonusTypeNameConversion|{{{3|}}}|True}} Shield Bonus +{{{2}}}]]|[[Armor Class#Shield | '''{{BonusTypeNameConversion|{{{3|}}}|True}} Shield Bonus +{{{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}}} Shield bonus to Armor Class. It does not shack with an equipped shield. | ||
| riposte = [[Category:Bad AC Template]] USE [[Template:Riposte]] | | riposte = [[Category:Bad AC Template]] USE [[Template:Riposte]] | ||
| armor = [[Armor Class#Armor | '''Armor Bonus +{{{2}}}:''']] 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. | | armor = {{#ifeq: {{#dplvar:enhview}}|titleonly|[[Armor Class#Armor | Armor Bonus +{{{2}}}]]|[[Armor Class#Armor | '''Armor Bonus +{{{2}}}:''']] 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. | ||
| rough hide = [[Armor Class#Rough Hide | '''Rough Hide +{{{2}}}:''']] This item fuses with your body and toughens your skin, providing a +{{{2}}} {{BonusTypeNameConversion|{{{3|Primal}}}}} bonus to your natural armor. | | rough hide = {{#ifeq: {{#dplvar:enhview}}|titleonly|[[Armor Class#Rough Hide | Rough Hide +{{{2}}}]]|[[Armor Class#Rough Hide | '''Rough Hide +{{{2}}}:''']] This item fuses with your body and toughens your skin, providing a +{{{2}}} {{BonusTypeNameConversion|{{{3|Primal}}}}} bonus to your natural armor. | ||
| hardened exterior = [[Armor Class#Hardened Exterior | '''Hardened Exterior {{{2}}}:''']] You gain a +{{{2}}} {{BonusTypeNameConversion|{{{3|Primal}}}}} bonus to AC. | | hardened exterior = {{#ifeq: {{#dplvar:enhview}}|titleonly||[[Armor Class#Hardened Exterior | '''Hardened Exterior {{{2}}}:''']] You gain a +{{{2}}} {{BonusTypeNameConversion|{{{3|Primal}}}}} bonus to AC. | ||
| heightened awareness = [[Armor Class#Heightened Awareness | '''Heightened Awareness {{{2}}}:''']] 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. | | heightened awareness = {{#ifeq: {{#dplvar:enhview}}|titleonly|[[Armor Class#Heightened Awareness | Heightened Awareness {{{2}}}]]|[[Armor Class#Heightened Awareness | '''Heightened Awareness {{{2}}}:''']] 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. | ||
| protection from evil = [[Armor Class#Protection From Evil | '''Protection from Evil +{{{2}}}:''']] You have a +{{{2}}} Deflection bonus to AC, and a +{{{2}}} Resistance bonus to Saves vs Evil Monsters. | | protection from evil = {{#ifeq: {{#dplvar:enhview}}|titleonly|[[Armor Class#Protection From Evil | Protection from Evil +{{{2}}}]]|[[Armor Class#Protection From Evil | '''Protection from Evil +{{{2}}}:''']] You have a +{{{2}}} Deflection bonus to AC, and a +{{{2}}} Resistance bonus to Saves vs Evil Monsters. | ||
|#default = [[Armor Class|'''{{{1|}}} +{{{2|}}}:''']] This item grants a +{{{2|}}} {{{1|}}} bonus to Armor Class.}}</onlyinclude> | |#default = {{#ifeq: {{#dplvar:enhview}}|titleonly|[[Armor Class|{{{1|}}} +{{{2|}}}]]|[[Armor Class|'''{{{1|}}} +{{{2|}}}:''']] This item grants a +{{{2|}}} {{{1|}}} bonus to Armor Class.}}</onlyinclude> |
Revision as of 16:30, 4 December 2019
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}} | {{#switch: natural armor
| deflection = {{#ifeq: |titleonly| Insightful Protection +5| Insightful Protection +5: This item protects its wearer by granting a +5 Insight deflection bonus to AC. | natural armor = {{#ifeq: |titleonly| Insightful Natural Armor +5| Insightful Natural Armor +5: Passive: +5 Insight Natural Armor bonus to Armor Class. | shield = {{#ifeq: |titleonly| Insightful Shield Bonus +5| Insightful Shield Bonus +5: While this item is equipped, you are partially protected by a field of magical force which can deflect enemy attacks. This item provides a +5 Shield bonus to Armor Class. It does not shack with an equipped shield. | riposte = USE Template:Riposte | armor = {{#ifeq: |titleonly| Armor Bonus +5| Armor Bonus +5: This item surrounds the wearer with an invisible but tangible field of force, granting +5 Insight Armor bonus to AC, just as though he were wearing armor. | rough hide = {{#ifeq: |titleonly| Rough Hide +5| Rough Hide +5: This item fuses with your body and toughens your skin, providing a +5 Insight bonus to your natural armor. | hardened exterior = {{#ifeq: |titleonly|| Hardened Exterior 5: You gain a +5 Insight bonus to AC. | heightened awareness = {{#ifeq: |titleonly| Heightened Awareness 5| Heightened Awareness 5: This item grants you the ability to read situations with incredible perspicacity, allowing you to predict actions before they occur. You gain a +5 insight bonus to AC. | protection from evil = {{#ifeq: |titleonly| Protection from Evil +5| Protection from Evil +5: You have a +5 Deflection bonus to AC, and a +5 Resistance bonus to Saves vs Evil Monsters. |#default = Natural Armor +5: This item grants a +5 Natural Armor bonus to Armor Class. |
Usage[edit]
{{AC|(Source)|(Enhancement Amount)|(Bonus Type)}}
Parameter Documentation | |
Source | This specifies the source of the Armor class change. Possible Values:
|
Enhancement Amount | This is the amount the Armor Class is increased or decreased. A negative value here will produce "penalty" instead of "bonus". |
Bonus Type | This 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.
{{#switch: {{{1}}} | deflection = {{#ifeq: |titleonly| Protection +{{{2}}}| Protection +{{{2}}}: This item protects its wearer by granting a Expression error: Unrecognized punctuation character "{".{{{2}}} deflection Expression error: Unrecognized punctuation character "{". to AC. | natural armor = {{#ifeq: |titleonly| Natural Armor +{{{2}}}| Natural Armor +{{{2}}}: Passive: +{{{2}}} Natural Armor Expression error: Unrecognized punctuation character "{". to Armor Class. | shield = {{#ifeq: |titleonly| Shield Bonus +{{{2}}}| Shield Bonus +{{{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}}} Shield bonus to Armor Class. It does not shack with an equipped shield. | riposte = USE Template:Riposte | armor = {{#ifeq: |titleonly| Armor Bonus +{{{2}}}| Armor Bonus +{{{2}}}: This item surrounds the wearer with an invisible but tangible field of force, granting +{{{2}}} Armor bonus to AC, just as though he were wearing armor. | rough hide = {{#ifeq: |titleonly| Rough Hide +{{{2}}}| Rough Hide +{{{2}}}: This item fuses with your body and toughens your skin, providing a +{{{2}}} Primal bonus to your natural armor. | hardened exterior = {{#ifeq: |titleonly|| Hardened Exterior {{{2}}}: You gain a +{{{2}}} Primal bonus to AC. | heightened awareness = {{#ifeq: |titleonly| Heightened Awareness {{{2}}}| Heightened Awareness {{{2}}}: 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. | protection from evil = {{#ifeq: |titleonly| Protection from Evil +{{{2}}}| Protection from Evil +{{{2}}}: You have a +{{{2}}} Deflection bonus to AC, and a +{{{2}}} Resistance bonus to Saves vs Evil Monsters. |#default = +: This item grants a + bonus to Armor Class.