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 o|}} | <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 o|}} | ||
| 0 = at target | | 0 = at target | ||
|#default = {{#var:range o|}} squares {{#ifexpr: {{#var:range o|}} > 0 |in front of|behind}} target | |#default = {{#expr:abs({{#var:range o|}})}} squares {{#ifexpr: {{#var:range o|}} > 0 |in front of|behind}} target | ||
}}</onlyinclude></includeonly> | }}</onlyinclude></includeonly> | ||
== Examples == | == Examples == | ||
{{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 0}}</pre> {{Skill range|1 0 0 0}} | |||
<pre>{{Skill range|-2 0 0 0}}</pre> {{Skill range|-2 0 0 0}} |
Revision as of 21:35, 27 December 2018
Examples
{{Skill range|0 0 0 0}}
at target
{{Skill range|1 0 0 0}}
1 squares in front of target
{{Skill range|-2 0 0 0}}
2 squares behind target