Difference between revisions of "Template:Skill range"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
<includeonly><onlyinclude>{{#vardefine:range o|{{#explode:{{{1|0}}}| |0}}}}{{#vardefine:range h|{{#explode:{{{1}}}| |1}}}}{{#vardefine:range v|{{#explode:{{{1}}}| |2}}}}{{#vardefine:range d|{{#explode:{{{1}}}| |3}}}}{{#switch:{{#var:range | <includeonly><onlyinclude>{{#vardefine:range o|{{#explode:{{{1|0}}}| |0}}}}{{#vardefine:range h|{{#explode:{{{1}}}| |1}}}}{{#vardefine:range v|{{#explode:{{{1}}}| |2}}}}{{#vardefine:range d|{{#explode:{{{1}}}| |3}}}}{{#switch:{{#var:range h|}} | ||
| 0 = | | 0 = | ||
|#default = {{#var:range h|}} square(s) horizontally, | |||
}} {{#switch:{{#var:range h|}} | |||
| 0 = | |||
|#default = {{#var:range v|}} square(s) vertically, | |||
}} {{#switch:{{#var:range v|}} | |||
| 0 = | |||
|#default = {{#var:range d|}} square(s) diagonally, | |#default = {{#var:range d|}} square(s) diagonally, | ||
}} {{#switch:{{#var:range o|}} | }} {{#switch:{{#var:range o|}} | ||
Line 10: | Line 16: | ||
<pre>{{Skill range|0 0 0 0}}</pre> {{Skill range|0 0 0 0}} | <pre>{{Skill range|0 0 0 0}}</pre> {{Skill range|0 0 0 0}} | ||
<pre>{{Skill range|1 0 0 2}}</pre> {{Skill range|1 | <pre>{{Skill range|1 0 0 2}}</pre> {{Skill range|1 0 0 2}} | ||
<pre>{{Skill range|-2 0 0 1}}</pre> {{Skill range|-2 2 0 1}} | <pre>{{Skill range|-2 0 0 1}}</pre> {{Skill range|-2 0 0 1}} | ||
<pre>{{Skill range|1 0 1 0}}</pre> {{Skill range|1 0 1 0}} | |||
<pre>{{Skill range|-2 1 0 0}}</pre> {{Skill range|-2 1 0 0}} |
Revision as of 21:39, 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
{{Skill range|-2 0 0 1}}
2 square(s) behind target
{{Skill range|1 0 1 0}}
0 square(s) diagonally, 1 square(s) in front of target
{{Skill range|-2 1 0 0}}
1 square(s) horizontally, 0 square(s) vertically, 2 square(s) behind target