Template:Touch-Attack

From Epic Path
Revision as of 22:01, 13 December 2017 by Reese (talk | contribs) (Created page with "<noinclude> Outputs the to-hit string for an attack against the target's Touch AC (e.g. "+5 vs. Touch AC"), based on the CR of the monster. Primarily used inside the Monster t...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Outputs the to-hit string for an attack against the target's Touch AC (e.g. "+5 vs. Touch AC"), based on the CR of the monster. Primarily used inside the Monster template. Call as follows:

{{To-Hit}}

Parameters (all are optional):

  • (unnamed) = modify CR with a positive or negative number. -2 lowers CR by two before outputting value.
  • n = modify numeric value with a positive or negative number. "n=-2" lowers skill DC by 2 before outputting the value.
  • op = modify the operand. Values are "op=mult" and "op=div", allowing you to multiply or divide by parameter n's value. Default is addition (with negative numbers subtracting).

Examples:

  • {{Touch-Attack|-2}} - outputs touch-attack to-hit value as though CR was two lower than actual.
  • {{To-Hit|n = 2|op = mult}} - outputs double the normal touch-attack to-hit value for a monster of that CR.