Difference between revisions of "Template:Skill range"
Jump to navigation
Jump to search
Line 11: | Line 11: | ||
|#default = {{#var:range v|}} squares vertically, | |#default = {{#var:range v|}} squares vertically, | ||
}} {{#switch:{{#var:range d|}} | }} {{#switch:{{#var:range d|}} | ||
| 0 = | | 0 = . | ||
| 1 = diagonally | | 1 = diagonally. | ||
|#default = {{#var:range d|}} squares diagonally | |#default = {{#var:range d|}} squares diagonally. | ||
}}}}{{#replace:{{#var:range}}|, .|.}}.</onlyinclude></includeonly> | }}}}{{ | ||
#vardefine:range|{{#replace:{{#var:range}}|, .|.}}}}{{ | |||
#vardefine:range|{{#replace:{{#var:range}}|,.|.}}}}{{ | |||
#var:range}}</onlyinclude></includeonly> | |||
== Examples == | == Examples == |
Revision as of 21:53, 27 December 2018
Examples
{{Skill range|0 0 0 0}}
at target, .
{{Skill range|1 0 0 2}}
1 square(s) in front of target, 2 squares diagonally.
{{Skill range|-2 0 0 1}}
2 square(s) behind target, diagonally.
{{Skill range|1 0 1 0}}
1 square(s) in front of target, vertically adjacent.
{{Skill range|-2 1 0 0}}
2 square(s) behind target, horizontally adjacent, .
{{Skill range|0 1 1 1}}
at target, horizontally adjacent, vertically adjacent, diagonally.