Difference between revisions of "Template:Skill targets"

From Tokyo Afterschool Summoners
Jump to navigation Jump to search
 
(6 intermediate revisions by 2 users not shown)
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-->it}}{{#vardefine:target definition|{{#var:self target}}}}{{#arraydefine:target1|{{#switch:{{{self|}}}
-->{{#vardefine:self target|self}}{{#vardefine:enemy target|<!--the {{#var:hit form|hit}} unit-->them}}{{#vardefine:target definition|{{#var:self target}}}}{{#vardefineecho:targets|{{#switch:{{{self|0}}} {{{team|0}}} {{{enemy|}}}
| 1 = self
| 0 0 0 =
}}}}{{#arraydefine:target2|{{#switch:{{{team|}}} {{{enemy|}}}
| 1 0 0 = self
| 0 0 =  
| 0 1 0 | 0 2 0 = allies
| 1 0 | 2 0 = allies
| 1 1 0 | 1 2 0 = self and allies
| 1 1 = the {{#var:hit form|hit}} unit and <abbr title="The following range only applies to this group of transients">allies</abbr>
| 0 1 1 = {{#var:hit form|hit}} units and {{Tooltip|allies|The following range only applies to this group of transients}}
| 1 2 = <abbr title="The following range only applies to this group of transients">allies and enemies</abbr>
| 1 1 1 = self, {{#var:hit form|hit}} units and {{Tooltip|allies|The following range only applies to this group of transients}}
| 0 1 = the {{#var:hit form|hit}} unit
| 0 1 2 = allies and enemies
| 0 2 = enemies
| 1 1 2 = self, allies and enemies
| 0 4 = enemies near the {{#var:hit form|hit}} unit,{{#vardefine:target definition|{{#var:enemy target}}}}
| 0 0 1 = {{#var:hit form|hit}} units
| 0 5 = the {{#var:hit form|hit}} unit and enemies{{#vardefine:target definition|{{#var:enemy target}}}}
| 1 0 1 = self and {{#var:hit form|hit}} units
| #default = units
| 0 0 2 = enemies<!--near self-->
}}}}{{#arrayunion:targets|target1|target2}}{{#arrayprint:targets}}{{#ifeq:targets|self|{{#vardefine:disable ranges|true}}}}</includeonly></onlyinclude>
| 1 0 2 = self and enemies
| 0 0 4 = enemies near {{#var:hit form|hit}} units,{{#vardefine:target definition|{{#var:enemy target}}}}
| 1 0 4 = self and enemies near {{#var:hit form|hit}} units,{{#vardefine:target definition|{{#var:enemy target}}}}
| 0 0 5 = {{#var:hit form|hit}} units and enemies{{#vardefine:target definition|{{#var:enemy target}}}}
| 1 0 5 = self, {{#var:hit form|hit}} units and enemies{{#vardefine:target definition|{{#var:enemy target}}}}
| #default = ???
}}}}{{#ifeq:{{#var:targets}}|self|{{#vardefine:disable ranges|true}}}}</includeonly></onlyinclude>
<noinclude>
<noinclude>
<pre>{{Skill targets|self=1|team=0|enemy=0}}</pre>
<pre>{{Skill targets|self=1|team=0|enemy=0}}</pre>

Latest revision as of 06:48, 12 September 2020


{{Skill targets|self=1|team=0|enemy=0}}

self

{{Skill targets|self=1|team=1|enemy=0}}

self and allies

{{Skill targets|self=1|team=1|enemy=1}}

self, hit units and alliesThe following range only applies to this group of transients

{{Skill targets|self=1|team=1|enemy=2}}

self, allies and enemies

{{Skill targets|self=1|team=0|enemy=4}}

self and 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}}