Difference between revisions of "Template:Guard"

From DDO Compendium
Line 5: Line 5:
|example1 = <nowiki>{{Guard|Fire|3}}</nowiki>
|example1 = <nowiki>{{Guard|Fire|3}}</nowiki>
|example1output = {{Guard|Fire|3}}
|example1output = {{Guard|Fire|3}}
|example2 = <nowiki>{{Guard|Haste}}</nowiki>
|example2output = {{Guard|Haste}}
|example3 = <nowiki>{{Guard|Solar|3|4}}</nowiki>
|example3output = {{Guard|Solar|3|4}}
|parameter1name = Damage Type
|parameter1name = Damage Type
|parameter1description = The type of damage that is added, or effect that occurs
|parameter1description = The type of damage that is added, or effect that occurs
|parameter1values =
* haste - hasted when hit
* solar - Custom name
* anything else is damage type
|parameter2name = Additional Dice
|parameter2name = Additional Dice
|parameter2description = This is the number of dice of damage that is done
|parameter2description = This is the number of dice of damage that is done
Line 22: Line 14:
}}
}}
</noinclude>
</noinclude>
<onlyinclude>[[Category:Items with {{{1}}} Guard]]{{#switch: {{lc:{{{1}}}}}
<onlyinclude>[[Category:Items with {{{1}}} Guard]]'''[[Guard|{{{1}}} Guard:]]''' When hit or missed in Melee: Deals {{Dice||{{{2}}}|{{{3|6}}}}} {{{1}}} damage to your attacker.
|haste='''[[Guard|{{{1}}} Guard:]]''' When you are hit by enemies, there is a chance you will be Hasted, quickening your attack and movement speed.
|solar='''[[Guard|Solar Guard:]]''' When hit or missed in Melee: Deals {{Dice||{{{2}}}|{{{3|6}}}}} light damage to your attacker.
|#default='''[[Guard|{{{1}}} Guard:]]''' When hit or missed in Melee: Deals {{Dice||{{{2}}}|{{{3|6}}}}} {{{1}}} damage to your attacker.
}}</onlyinclude>
}}</onlyinclude>

Revision as of 17:05, 27 November 2018

Guard[edit]

This template is used on equipment for the Guard enchantment. Guard is an enchantment that adds damage when the defender is successfully hit.

Example Usage
{{Guard|Fire|3}}Fire Guard: When hit or missed in Melee: Deals 3d6 Fire damage to your attacker. }}

Usage[edit]

{{Guard|(Damage Type)|(Additional Dice)|(Die Side)}}

Parameter Documentation
Damage TypeThe type of damage that is added, or effect that occurs
Additional DiceThis is the number of dice of damage that is done
Die SideThis is the number of sides the dice that are rolled have. If you leave this off it defaults to a d6.

Template

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


[[Category:Items with {{{1}}} Guard]]{{{1}}} Guard: When hit or missed in Melee: Deals {{{2}}}d6 {{{1}}} damage to your attacker. }}