Difference between revisions of "Template:Skill range"
Jump to navigation
Jump to search
SurtrFan8511 (talk | contribs) |
SurtrFan8511 (talk | contribs) |
||
Line 25: | Line 25: | ||
| 2 2 1 0 = in a 2-square diamond radius center | | 2 2 1 0 = in a 2-square diamond radius center | ||
| 1 1 1 0 = in a 3x3 area center | | 1 1 1 0 = in a 3x3 area center | ||
| 0 0 0 0 = center | |||
<!--add new cases here--> | <!--add new cases here--> | ||
| #default = <!--math stuff--><!--filled areas-->{{#ifexpr:{{#var:range s}} > 0|in a {{#expr:1 + 2 * {{#var:range h}}}}x{{#expr:1 + 2 * {{#var:range v}}}} area center | | #default = <!--math stuff--><!--filled areas-->{{#ifexpr:{{#var:range s}} > 0|in a {{#expr:1 + 2 * {{#var:range h}}}}x{{#expr:1 + 2 * {{#var:range v}}}} area center |
Revision as of 09:09, 11 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 0}}
{{Skill range|1 0 0 2 0}}
2 squares diagonally away from target centered in front of target
{{Skill range|-2 0 0 1 0}}
1 squares diagonally away from target centered 2 squares behind target
{{Skill range|1 0 1 0 0}}
in a Thrust range
{{Skill range|-2 1 0 0 0}}
in a 3-square horizontal line centered 2 squares behind target
{{Skill range|0 1 1 0 0}}
directly adjacent to target
{{Skill range|0 2 2 0 0}}
in a 2-square cross radius
{{Skill range|0 1 1 1 0}}
1 square around target
{{Skill range|5 6 7 8 0}}
6 squares horizontally, 7 squares vertically, 8 squares diagonally away from target centered 5 squares in front of target