trusted
5,929
edits
SurtrFan8511 (talk | contribs) |
SurtrFan8511 (talk | contribs) |
||
Line 3: | Line 3: | ||
| 1 = in front of target | | 1 = in front of target | ||
| -1 = behind target | | -1 = behind target | ||
|#default = {{#expr:abs({{#var:range o|}})}} square(s) {{#ifexpr: {{#var:range o|}} > 0 |in front of|behind}} target | |#default = {{#expr:abs({{#var:range o|}})}} square(s) {{#ifexpr: {{#var:range o|}} > 0 |in front of|behind}} target | ||
}} {{#ifexpr:{{#var:range d}} != 0 and {{#var:range d}} = {{#var:range h}} and {{#var:range h}} = {{#var:range v}} |, {{#var:range d}} squares away | }}{{#ifexpr:{{#var:range d}} != 0 and {{#var:range d}} = {{#var:range h}} and {{#var:range h}} = {{#var:range v}} |, {{#var:range d}} squares away | ||
|{{#ifexpr: {{#var:range h}} != 0 and {{#var:range h}} = {{#var:range v}} |{{#switch:{{#var:range h|}} | |{{#ifexpr: {{#var:range h}} != 0 and {{#var:range h}} = {{#var:range v}} |{{#switch:{{#var:range h|}} | ||
| 1 = , directly adjacent | | 1 = , directly adjacent | ||
| #default = , {{#var:range h}} squares away horizontally and vertically | | #default = , {{#var:range h}} squares away horizontally and vertically | ||
}}|{{#switch:{{#var:range h|}} | }}|{{#switch:{{#var:range h|}} | ||
| 0 = | | 0 = | ||
| 1 = horizontally adjacent | | 1 = , horizontally adjacent | ||
|#default = {{#var:range h|}} squares horizontally | |#default = , {{#var:range h|}} squares horizontally | ||
}} {{#switch:{{#var:range v|}} | }}{{#switch:{{#var:range v|}} | ||
| 0 = | | 0 = | ||
| 1 = vertically adjacent | | 1 = , vertically adjacent | ||
|#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}}|, .|}}}}{{ |