Difference between revisions of "Template:Skill description"

From Tokyo Afterschool Summoners
Jump to navigation Jump to search
Line 2: Line 2:
}}<!--specifying targets-->{{#vardefine:target|{{Skill targets|self={{{target_self|0}}}|team={{{target_my_team|0}}}|enemy={{{target_enemy|0}}}}}{{#ifeq:{{{distance|0}}} {{{range_h|0}}} {{{range_v|0}}} {{{range_d|0}}}|0 0 0 0||{{spaces|1}}}}{{#if:{{{override range|}}}|{{{override range}}}|{{Skill range|{{{distance|0}}} {{{range_h|0}}} {{{range_v|0}}} {{{range_d|0}}} {{{is_square|0}}}}}}}
}}<!--specifying targets-->{{#vardefine:target|{{Skill targets|self={{{target_self|0}}}|team={{{target_my_team|0}}}|enemy={{{target_enemy|0}}}}}{{#ifeq:{{{distance|0}}} {{{range_h|0}}} {{{range_v|0}}} {{{range_d|0}}}|0 0 0 0||{{spaces|1}}}}{{#if:{{{override range|}}}|{{{override range}}}|{{Skill range|{{{distance|0}}} {{{range_h|0}}} {{{range_v|0}}} {{{range_d|0}}} {{{is_square|0}}}}}}}
}}{{#vardefine:desc|<!--apply status-->{{#ifeq:{{{target_self|0}}} {{{target_my_team|0}}} {{{target_enemy|0}}}|0 0 0||{{#ifeq:{{{add_status_id|0}}}|0||{{#if:{{#var:skill page|}}|{{#vardefine:effect tags|Apply {{Status name|id={{{add_status_id}}}}};{{#var:effect tags}}}}
}}{{#vardefine:desc|<!--apply status-->{{#ifeq:{{{target_self|0}}} {{{target_my_team|0}}} {{{target_enemy|0}}}|0 0 0||{{#ifeq:{{{add_status_id|0}}}|0||{{#if:{{#var:skill page|}}|{{#vardefine:effect tags|Apply {{Status name|id={{{add_status_id}}}}};{{#var:effect tags}}}}
}}Apply {{Status|id={{{add_status_id|}}}}} to {{#var:target}}{{#ifeq:{{#var:skill page|false}}|true|[[Category:Skill that uses {{Status name|id={{{add_status_id|}}}}}]]}}}}
}}(START)Apply {{Status|id={{{add_status_id|}}}}} to {{#var:target}}{{#ifeq:{{#var:skill page|false}}|true|[[Category:Skill that uses {{Status name|id={{{add_status_id|}}}}}]]}}(END)}}
}}<!--remove status-->{{#ifeq:{{{remove_status_id|0}}}|0||{{#if:{{#var:skill page|}}|{{#vardefine:effect tags|Remove {{Status name|id={{{remove_status_id}}}}};{{#var:effect tags}}}}
}}<!--remove status-->{{#ifeq:{{{remove_status_id|0}}}|0||{{#if:{{#var:skill page|}}|{{#vardefine:effect tags|Remove {{Status name|id={{{remove_status_id}}}}};{{#var:effect tags}}}}
}}(START){{#if:{{#var:short description|}}|{{Status|id={{{remove_status_id|}}}}}|Remove {{Status|id={{{remove_status_id|}}}}}}}{{#vardefine:short description|true}}(END)
}}(START){{#if:{{#var:short description|}}|{{Status|id={{{remove_status_id|}}}}}|Remove {{Status|id={{{remove_status_id|}}}}}}}{{#vardefine:short description|true}}(END)
Line 64: Line 64:
| Has effect max potency = {{#var:potency max|0}}
| Has effect max potency = {{#var:potency max|0}}
| Has effect targets = {{#ifeq:{{{target_self|0}}}|0||self;}}{{#ifeq:{{{target_my_team|0}}}|0||allies;}}{{#ifeq:{{{target_enemy|0}}}|0||enemies}}|+sep=;
| Has effect targets = {{#ifeq:{{{target_self|0}}}|0||self;}}{{#ifeq:{{{target_my_team|0}}}|0||allies;}}{{#ifeq:{{{target_enemy|0}}}|0||enemies}}|+sep=;
}}|}}<!--Stitching together parts of an effect with a " + "-->{{#vardefine:desc|{{#replace:{{#var:desc}}|(END)(START)|&#32;+$#32;}}
}}|}}<!--Stitching together parts of an effect with a " + "
-->{{#vardefine:desc|{{#replace:{{#var:desc}}|(END)(START)|&#32;+&#32;}}
}}{{#vardefine:desc|{{#replace:{{#var:desc}}|(END)|}}
}}{{#vardefine:desc|{{#replace:{{#var:desc}}|(END)|}}
}}{{#vardefine:desc|{{#replace:{{#var:desc}}|(START)|}}
}}{{#vardefine:desc|{{#replace:{{#var:desc}}|(START)|}}

Revision as of 07:27, 5 November 2020

Template documentation[view] [edit] [history] [purge]

Description

This template generates a skill description based on the ingame variables. Variables with a lacking parameter get replaced with 0. Additionally, it also creates a categorization subobject if called on skill infobox pages. This subobject is later used in Template:Skill list and Template:Skill list table.

Usage

It is not recommended to directly invoke this template. Instead, use
{{#masterdata:SkillDesctiption|<id>|effect=<effect>}}

Where <id> is ID of the skill, <effect> is ID of the skill effect. Refer to Template:Skill bundle to see full skill desriptions.

Beside arguments that match ingame variables, there are following arguments:

Variables

  • short description - undeclare this variable before directly calling this template to force long skill descriptions for every skill effect.

Usage examples

{{Skill description
|timing=19
|target_my_team=1
|range_h=99
|range_v=99
|range_d=99
|is_square=1
|mult=100
|mult_max=100
|add_status_id=49
|turn_interval=1
|turn_interval_is_total_turn=1
}}

Apply ArdorATK Up by 1.2x ~ 2.4x, +5CP/turn for 2 turns (Buff) to allies Expression error: Unexpected > operator.

{{Skill description
|timing=18
|target_self=1
|rate_2_use=50
|mult=100
|mult_max=100
|add_status_id=49
|turn_interval=1
|turn_interval_surplus=1
|turn_interval_is_total_turn=1
}}

(Total turns 2, 3, 4...) Apply ArdorATK Up by 1.2x ~ 2.4x, +5CP/turn for 2 turns (Buff) to self

{{Skill description
|timing=1
|target_self=1
|rate_2_use=100
|mult=100
|mult_max=100
|regist_knockback=99
|turn_interval=1
|turn_interval_is_total_turn=1
}}

Resists forced backward movement

{{Skill description
|timing=17
|target_self=1
|rate_2_use=100
|mult=100
|mult_max=100
|add_money=5
|max_add_money=5
|turn_interval=1
|turn_interval_is_total_turn=1
|support_ok=1
}}

Additional Coin (+5%)

{{Skill description
|timing=7
|target_enemy=1
|rate_2_use=50
|mult=100
|mult_max=100
|knockback=-1
|turn_interval=1
|turn_interval_is_total_turn=1
}}

Attract hit unitsExpression error: Unexpected > operator. by 1 square

{{Skill description
|skill_id=691
|effect_serial_id=1
|timing=8
|target_enemy=1
|rate_2_use=100
|mult=150
|mult_max=150
|add_status_id=19
|anti_status_id=19
|turn_interval=1
|turn_interval_is_total_turn=1}}

Apply Countdown-10000~-20000HP/turn for 2 turns (Debuff) to hit unitsExpression error: Unexpected > operator. + Deal 1.5x damage to Countdown-10000~-20000HP/turn for 2 turns (Debuff)-affected enemies


(Server Error 😔) Apply Skill LockCannot activate skills for 5 turns. (Debuff) to self, hit units and alliesThe following range only applies to this group of transientsExpression error: Unexpected > operator.