Template:Item-To-Hit: Difference between revisions

From Epic Path
Jump to navigation Jump to search
No edit summary
No edit summary
Line 8: Line 8:
where '##' is the CL of the item (you have to include it in the call, or it won't know).
where '##' is the CL of the item (you have to include it in the call, or it won't know).


Example:
'''Example:'''
<pre>
<pre>
{{Item-To-Hit|14}}
{{Item-To-Hit|14}}
</pre>
</pre>


* If the CL of the item is <13, the output is:
'''Outputs:'''
''When attacking, roll {{Hi|1d20 + character level + 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:
{{Item-To-Hit|14}}
''When attacking, roll {{Hi|1d20 + character level + 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 {{Hi|1d20 + character level + 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:{{{1}}}
</noinclude><includeonly>To make an attack with this power, you do not use your own to-hit numbers. Instead, roll {{Hi|1d20 + {{#expr:{{MonsterAC|transcludesection={{{1}}}}} - 7}} vs. the target's AC}}.  This to-hit number is never modified by any of your own abilities, effects, or items (unless you have an ability or effect that specifically modifies a magic item's to-hit number).</includeonly>
| 1
| 2
| 3
| 4
| 5
| 6
| 7
| 8
| 9
| 10
| 11
| 12 = When attacking, roll {{Hi|1d20 + character level + 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.
| 13
| 14
| 15
| 16
| 17
| 18
| 19
| 20
| 21
| 22 = When attacking, roll {{Hi|1d20 + character level + 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.
| 23
| 24
| 25
| 26
| 27
| 28
| 29
| 30
| 31
| 32
| 33
| 34
| 35 = When attacking, roll {{Hi|1d20 + character level + 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.
| #default = When attacking, roll {{Hi|1d20 + character level + 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.
}}</includeonly>

Revision as of 16:34, 1 August 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}}

Outputs:

To make an attack with this power, you do not use your own to-hit numbers. Instead, roll 1d20 + 29 vs. the target's AC. This to-hit number is never modified by any of your own abilities, effects, or items (unless you have an ability or effect that specifically modifies a magic item's to-hit number).