Difference between revisions of "Template:Skill targets"
Jump to navigation
Jump to search
SurtrFan8511 (talk | contribs) |
|||
Line 1: | Line 1: | ||
<includeonly><onlyinclude><!--Arguments: |self=[id]|team=[id]|enemy=[id] | <includeonly><onlyinclude><!--Arguments: |self=[id]|team=[id]|enemy=[id] | ||
-->{{#vardefine:self target|self}}{{#vardefine:enemy target|<!--the {{#var:hit form|hit}} unit--> | -->{{#vardefine:self target|self}}{{#vardefine:enemy target|<!--the {{#var:hit form|hit}} unit-->them}}{{#vardefine:target definition|{{#var:self target}}}}{{#arraydefine:target1|{{#switch:{{{self|}}} | ||
| 1 = self | | 1 = self | ||
}}}}{{#arraydefine:target2|{{#switch:{{{team|}}} {{{enemy|}}} | }}}}{{#arraydefine:target2|{{#switch:{{{team|}}} {{{enemy|}}} | ||
| 0 0 = | | 0 0 = | ||
| 1 0 | 2 0 = allies | | 1 0 | 2 0 = allies | ||
| 1 1 = | | 1 1 = {{#var:hit form|hit}} units and <abbr title="The following range only applies to this group of transients">allies</abbr> | ||
| 1 2 = <abbr title="The following range only applies to this group of transients">allies and enemies</abbr> | | 1 2 = <abbr title="The following range only applies to this group of transients">allies and enemies</abbr> | ||
| 0 1 = | | 0 1 = {{#var:hit form|hit}} units | ||
| 0 2 = enemies | | 0 2 = enemies | ||
| 0 4 = enemies near | | 0 4 = enemies near {{#var:hit form|hit}} units,{{#vardefine:target definition|{{#var:enemy target}}}} | ||
| 0 5 = | | 0 5 = {{#var:hit form|hit}} units and enemies{{#vardefine:target definition|{{#var:enemy target}}}} | ||
| #default = units | | #default = units | ||
}}}}{{#arrayunion:targets|target1|target2}}{{#arrayprint:targets}}{{#ifeq:{{#arrayprint:targets}}|self|{{#vardefine:disable ranges|true}}}}</includeonly></onlyinclude> | }}}}{{#arrayunion:targets|target1|target2}}{{#arrayprint:targets}}{{#ifeq:{{#arrayprint:targets}}|self|{{#vardefine:disable ranges|true}}}}</includeonly></onlyinclude> |
Revision as of 15:12, 11 August 2020
{{Skill targets|self=1|team=0|enemy=0}}
self
{{Skill targets|self=1|team=1|enemy=0}}
self, allies
{{Skill targets|self=1|team=1|enemy=1}}
self, hit units and allies
{{Skill targets|self=1|team=1|enemy=2}}
self, allies and enemies
{{Skill targets|self=1|team=0|enemy=4}}
self, enemies near hit units,
{{Skill targets|self=1|team=0|enemy=5}}
self, hit units and enemies
{{Skill targets|self=0|team=1|enemy=0}}
allies
{{Skill targets|self=0|team=0|enemy=0}}