Difference between revisions of "Template:Skill range"
Jump to navigation
Jump to search
SurtrFan8511 (talk | contribs) (Undo revision 37624 by SurtrFan8511 (talk)) |
SurtrFan8511 (talk | contribs) (Bugfix) |
||
Line 81: | Line 81: | ||
#vardefine:range|{{#replace:{{#var:range}}|.|}}}}-->{{ | #vardefine:range|{{#replace:{{#var:range}}|.|}}}}-->{{ | ||
#vardefine:range|{{#replace:{{#var:range}}|adjust|{{#var:adjust}}}}}}{{ | #vardefine:range|{{#replace:{{#var:range}}|adjust|{{#var:adjust}}}}}}{{ | ||
#vardefine:range|{{#replace:{{#var:range}}|target|{{#var:target definition|<!--<abbr title='Either the caster or the unit hit'>-->target<!--</abbr>-->}}}}}}{{#if:{{#var:range|}}|{{Tooltip|{{#var:range}}|{{Skill range graphic|size=100|{{#ifeq:{{#var:target definition}}|{{#var:enemy target|them}}|{{#expr:-{{#var:range o}}}}|{{#var:range o}}}} {{#var:range h}} {{#var:range v}} {{#var:range d}} {{#var:range s}}}}}} | #vardefine:range|{{#replace:{{#var:range}}|target|{{#var:target definition|<!--<abbr title='Either the caster or the unit hit'>-->target<!--</abbr>-->}}}}}}{{#if:{{#var:range|}}|{{Tooltip|{{#var:range}}|{{Skill range graphic|size=100|{{#ifeq:{{#var:target definition}}|{{#var:enemy target|them}}|{{#expr:-{{#var:range o}}}}|{{#var:range o}}}} {{#var:range h}} {{#var:range v}} {{#var:range d}} {{#var:range s}}}}}}}}}}</onlyinclude></includeonly><noinclude>{{Documentation}}</noinclude> |
Revision as of 09:52, 11 October 2020
Description
Parses a string in the format of [distance] [horizonal distance] [horizontal] [vertical] [diagonal] [is-square] into something human readable.
Examples
{{Skill range|0 0 0 0 0 0}}at target
{{Skill range|1 0 0 0 2 0}}in a 1x1 area around the front of target
{{Skill range|-2 0 0 0 1 0}}in a 1x1 area around the 2nd square behind target
{{Skill range|1 0 0 1 0 0}}1 square diagonally away from the front of target
{{Skill range|-2 0 1 0 0 0}}in a 3-square vertical line around the 2nd square behind target
{{Skill range|0 0 1 1 0 0}}1 square diagonally away from target
{{Skill range|0 0 2 2 0 0}}2 squares diagonally away from target
{{Skill range|0 0 1 1 1 0}}in a 1x3 area around target
{{Skill range|5 0 6 7 8 0}}in a 1x13 area around the 5th square in front of target
{{Skill range|0 1 1 1 1 0}}in a 3x3 area around target
The above documentation is transcluded from Template:Skill range/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |