trusted
5,929
edits
SurtrFan8511 (talk | contribs) |
SurtrFan8511 (talk | contribs) |
||
Line 25: | Line 25: | ||
| 2 2 1 0 = in a 2-square diamond radius center | | 2 2 1 0 = in a 2-square diamond radius center | ||
| 1 1 1 0 = in a 3x3 area center | | 1 1 1 0 = in a 3x3 area center | ||
| 0 0 0 0 = | | 0 0 0 0 = adjust | ||
<!--add new cases here--> | <!--add new cases here--> | ||
| #default = <!--math stuff--><!--filled areas-->{{#ifexpr:{{#var:range s}} > 0|in a {{#expr:1 + 2 * {{#var:range h}}}}x{{#expr:1 + 2 * {{#var:range v}}}} area center | | #default = <!--math stuff--><!--filled areas-->{{#ifexpr:{{#var:range s}} > 0|in a {{#expr:1 + 2 * {{#var:range h}}}}x{{#expr:1 + 2 * {{#var:range v}}}} area center | ||
Line 64: | Line 64: | ||
}}}}}} | }}}}}} | ||
-->{{#vardefine:center| | -->{{#vardefine:center| | ||
{{#ifeq:{{#var:range o}}|0|| | {{#ifeq:{{#var:range o}}|0|| centered {{#vardefineecho:adjust|{{#ifexpr:{{#var:range o}} > 0 | ||
{{#ifexpr:{{#var:range o}} > 0 | |<!--front-->{{#ifeq:{{#var:range o}}|1|in front of target|{{#var:range o}} squares in front of target}} | ||
|<!--front-->{{#ifeq:{{#var:range o}}|1| | |<!--back-->{{#ifeq:{{#var:range o}}|-1|behind target|{{#expr: -{{#var:range o}}}} squares behind target}}}} | ||
|<!--back-->{{#ifeq:{{#var:range o}}|-1| | }}}}}}{{ | ||
}}}}{{ | |||
#vardefine:range|{{#replace:{{#var:range}}|, ,|}}}}{{ | #vardefine:range|{{#replace:{{#var:range}}|, ,|}}}}{{ | ||
#vardefine:range|{{#replace:{{#var:range}}|, ,|}}}}<!--{{ | #vardefine:range|{{#replace:{{#var:range}}|, ,|}}}}<!--{{ | ||
#vardefine:range|{{#replace:{{#var:range}}|,.|}}}}{{ | #vardefine:range|{{#replace:{{#var:range}}|,.|}}}}{{ | ||
#vardefine:range|{{#replace:{{#var:range}}|.|}}}}-->{{ | #vardefine:range|{{#replace:{{#var:range}}|.|}}}}-->{{ | ||
#vardefine:range|{{#replace:{{#var:range}}|adjust|{{#var:adjust}}}}}}{{ | |||
#vardefine:range|{{#replace:{{#var:range}}|center|{{#var:center}}}}}}{{ | #vardefine:range|{{#replace:{{#var:range}}|center|{{#var:center}}}}}}{{ | ||
#vardefine:range|{{#replace:{{#var:range}}|target|{{#var:target definition|<abbr title='Either the caster or the unit hit'>target</abbr>}}}}}}{{ | #vardefine:range|{{#replace:{{#var:range}}|target|{{#var:target definition|<abbr title='Either the caster or the unit hit'>target</abbr>}}}}}}{{ |