Template:Item-To-Hit: Difference between revisions

From Epic Path
Jump to navigation Jump to search
(Created page with "<noinclude> Outputs the item's to-hit information string as a highlighted block of text. <pre> {{Item-To-Hit}} </pre> * If the CL of the item is <13, the output is: ''When...")
 
No edit summary
Line 3: Line 3:


<pre>
<pre>
{{Item-To-Hit}}
{{Item-To-Hit|##}}
</pre>
</pre>


where '##' is the CL of the item (you have to include it in the call, or it won't know).
Example:
<pre>
{{Item-To-Hit|14}}
</pre>


* If the CL of the item is <13, the output is:
* If the CL of the item is <13, the output is:
Line 16: Line 22:
''When attacking, roll {{Hi|1d20 + 8 vs. the target's Touch AC}}.  This to-hit number is not modified in anyway from your character's ability scores, class features, feats, other magic items, etc.''
''When attacking, roll {{Hi|1d20 + 8 vs. the target's Touch AC}}.  This to-hit number is not modified in anyway from your character's ability scores, class features, feats, other magic items, etc.''


</noinclude><includeonly>{{#switch:{{#var:CL}}
</noinclude><includeonly>{{#switch:{{{1}}}
| 1
| 1
| 2
| 2

Revision as of 12:45, 5 May 2019

Outputs the item's to-hit information string as a highlighted block of text.

{{Item-To-Hit|##}}

where '##' is the CL of the item (you have to include it in the call, or it won't know).

Example:

{{Item-To-Hit|14}}
  • If the CL of the item is <13, the output is:

When attacking, roll 1d20 + 2 vs. the target's Touch AC. This to-hit number is not modified in anyway from your character's ability scores, class features, feats, other magic items, etc.

  • If the CL of the item is 13 - 22, the output is:

When attacking, roll 1d20 + 5 vs. the target's Touch AC. This to-hit number is not modified in anyway from your character's ability scores, class features, feats, other magic items, etc.

  • If the CL of the item is >22, the output is:

When attacking, roll 1d20 + 8 vs. the target's Touch AC. This to-hit number is not modified in anyway from your character's ability scores, class features, feats, other magic items, etc.