Difference between revisions of "Template:Skill range"

From Tokyo Afterschool Summoners
Jump to navigation Jump to search
(English who?)
 
(5 intermediate revisions by 2 users not shown)
Line 15: Line 15:
<!--add new cases here-->
<!--add new cases here-->
| #default = <!--matching ranges-->{{#switch:{{{1}}}
| #default = <!--matching ranges-->{{#switch:{{{1}}}
| 0 0 99 99 0 1 | 0 99 99 99 1 | 0 99 99 1 1 = on the entire board
| 0 0 99 99 0 1 | 0 0 99 99 99 1 | 0 0 99 99 1 1 = on the entire board
| 0 0 1 1 1 0 = 1 square around target
| 0 0 1 1 1 0 = 1 square around target
| 0 0 0 0 0 0 = <!--nothing-->,&#32;,
| 0 0 0 0 0 0 = <!--nothing-->,&#32;,
Line 23: Line 23:
| 1 0 0 0 0 0 = in front of target
| 1 0 0 0 0 0 = in front of target
| -1 0 0 0 0 0 = behind target
| -1 0 0 0 0 0 = behind target
| 6 0 99 5 0 1 | 6 0 99 5 99 1 | 6 0 99 5 1 1 | 3 0 5 2 0 1 | 3 0 99 2 0 1 = anywhere in front of target
| -6 0 99 5 0 1 | -6 0 99 5 99 1 | -6 0 99 5 1 1 | -3 0 5 2 0 1 | -3 0 99 2 0 1 = anywhere behind target
| 0 6 5 99 0 1 | 0 6 5 99 99 1 | 0 6 5 99 1 1 | 0 3 2 5 0 1 = anywhere to the right of target
| 0 -6 5 99 0 1 | 0 -6 5 99 99 1 | 0 -6 5 99 1 1 | 0 -3 2 5 0 1 = anywhere to the left of target
<!--add new cases here-->
<!--add new cases here-->
| #default = <!--matching all ranges except center position-->{{#switch:{{#var:range h}} {{#var:range v}} {{#var:range d}} {{#var:range s}}
| #default = <!--matching all ranges except center position-->{{#switch:{{#var:range h}} {{#var:range v}} {{#var:range d}} {{#var:range s}}

Latest revision as of 06:13, 19 April 2022

Template documentation[view] [edit] [history] [purge]

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}}
{{Skill range|1 0 0 0 2 0}}
2 squares diagonally away from the front of target
{{Skill range|-2 0 0 0 1 0}}
1 square diagonally away from the 2nd square behind target
{{Skill range|1 0 0 1 0 0}}
in Thrust range
{{Skill range|-2 0 1 0 0 0}}
in a 3-square horizontal line around the 2nd square behind target
{{Skill range|0 0 1 1 0 0}}
directly adjacent to target
{{Skill range|0 0 2 2 0 0}}
in a 2-square cross radius around target
{{Skill range|0 0 1 1 1 0}}
1 square around target
{{Skill range|5 0 6 7 8 0}}
6 squares horizontally, 7 squares vertically, 8 squares diagonally away from the 5th square in front of target
{{Skill range|0 1 1 1 1 0}}
in a 3x3 area around the square to the right of target