Difference between revisions of "Template:Skill range"
Jump to navigation
Jump to search
SurtrFan8511 (talk | contribs) |
SurtrFan8511 (talk | contribs) (Removed dot) |
||
Line 17: | Line 17: | ||
|#default = , {{#var:range v|}} squares vertically | |#default = , {{#var:range v|}} squares vertically | ||
}}}}{{#switch:{{#var:range d|}} | }}}}{{#switch:{{#var:range d|}} | ||
| 0 = | | 0 = | ||
| 1 = , 1 square diagonally | | 1 = , 1 square diagonally | ||
|#default = , {{#var:range d|}} squares diagonally | |#default = , {{#var:range d|}} squares diagonally | ||
}}}}}}{{ | }}}}}}{{ | ||
#vardefine:range|{{#replace:{{#var:range}}|, .|.}}}}{{ | #vardefine:range|{{#replace:{{#var:range}}|, .|.}}}}{{ |
Revision as of 04:33, 9 August 2020
Description
Parses a string in the format of [distance] [horizontal] [vertical] [diagonal] into something human readable.
Examples
{{Skill range|0 0 0 0}}
{{Skill range|1 0 0 2}}
in front of target, 2 squares diagonally
{{Skill range|-2 0 0 1}}
2 square(s) behind target, 1 square diagonally
{{Skill range|1 0 1 0}}
in front of target, vertically adjacent
{{Skill range|-2 1 0 0}}
2 square(s) behind target, horizontally adjacent
{{Skill range|0 1 1 0}}
, directly adjacent
{{Skill range|0 2 2 0}}
, 2 squares away horizontally and vertically
{{Skill range|0 1 1 1}}
, 1 squares away
{{Skill range|5 6 7 8}}
5 square(s) in front of target, 6 squares horizontally, 7 squares vertically, 8 squares diagonally