Difference between revisions of "Template:Skill description"
SurtrFan8511 (talk | contribs) (Rip range pages lmao) |
SurtrFan8511 (talk | contribs) (yesterday I woke up sucking a lemon) |
||
Line 13: | Line 13: | ||
}}<!--status resistance (unused?)-->{{#ifeq:{{{reduce_status_id|0}}}|0|| | }}<!--status resistance (unused?)-->{{#ifeq:{{{reduce_status_id|0}}}|0|| | ||
{{#if:{{#var:effect present|}}| + }}Take {{Skill effect potency|base={{#expr:{{{mult|0}}} / 100}}|max={{#expr:{{{mult_max|0}}} / 100}}}}x damage from enemies with {{Status|id={{{reduce_status_id}}}}}{{#vardefine:effect present|true}} | {{#if:{{#var:effect present|}}| + }}Take {{Skill effect potency|base={{#expr:{{{mult|0}}} / 100}}|max={{#expr:{{{mult_max|0}}} / 100}}}}x damage from enemies with {{Status|id={{{reduce_status_id}}}}}{{#vardefine:effect present|true}} | ||
}}<!--change hp-->{{#ifeq:{{{add_hp|0}}}|0||{{#if:{{#var:skill page|}}|{{#vardefine:effect tags|{{#ifexpr:{{{add_hp}}} > 0|Increase|Decrease}} HP;{{#var:effect tags}}{{#vardefine:potency min|{{{add_hp}}}}}{{#vardefine:potency max|{{{max_add_hp|0}}}}}}} | }}<!--change hp-->{{#ifeq:{{{add_hp|0}}}|0||{{#if:{{#var:skill page|}}|{{#vardefine:effect tags|{{#ifexpr:{{{add_hp}}} > 0|Increase|Decrease}} HP;{{#ifeq:{{{hp_drain_mult|0}}}|0||Lifesteal;}}{{#var:effect tags}}{{#vardefine:potency min|{{{add_hp}}}}}{{#vardefine:potency max|{{{max_add_hp|0}}}}}}} | ||
}}{{#if:{{#var:effect present|}}| + }}[[{{#ifexpr:{{{add_hp}}} > 0|Increase|Decrease}} HP|{{#ifexpr:{{{add_hp}}} > 0|+}}{{Skill effect potency|base={{{add_hp}}}|max={{{max_add_hp|0}}}}} HP]] to {{#var:target}}{{#vardefine:effect present|true}} | }}{{#if:{{#var:effect present|}}| + }}[[{{#ifexpr:{{{add_hp}}} > 0|Increase|Decrease}} HP|{{#ifexpr:{{{add_hp}}} > 0|+}}{{Skill effect potency|base={{{add_hp}}}|max={{{max_add_hp|0}}}}} HP]] to {{#var:target}}{{#ifeq:{{{hp_drain_mult|0}}}|0||, [[Lifesteal|steal]] {{Skill effect potency|base={{{hp_drain_mult}}}|max={{{hp_drain_mult_max|0}}}}}% of decreased HP}}{{#vardefine:effect present|true}} | ||
}}<!--change cp-->{{#ifeq:{{{add_cp|0}}}|0||{{#if:{{#var:skill page|}}|{{#vardefine:effect tags|{{#ifexpr:{{{add_cp}}} > 0|Increase|Decrease}} CP;{{#var:effect tags}}{{#vardefine:potency min|{{{add_cp}}}}}{{#vardefine:potency max|{{{max_add_cp|0}}}}}}} | }}<!--change cp-->{{#ifeq:{{{add_cp|0}}}|0||{{#if:{{#var:skill page|}}|{{#vardefine:effect tags|{{#ifexpr:{{{add_cp}}} > 0|Increase|Decrease}} CP;{{#ifeq:{{{cp_drain_mult|0}}}|0||CP steal;}}{{#var:effect tags}}{{#vardefine:potency min|{{{add_cp}}}}}{{#vardefine:potency max|{{{max_add_cp|0}}}}}}} | ||
}}{{#if:{{#var:effect present|}}| + }}[[{{#ifexpr:{{{add_cp}}} > 0|Increase|Decrease}} CP|{{#ifexpr:{{{add_cp}}} > 0|+}}{{Skill effect potency|base={{{add_cp}}}|max={{{max_add_cp|0}}}}} CP]] to {{#var:target}}{{#vardefine:effect present|true}} | }}{{#if:{{#var:effect present|}}| + }}[[{{#ifexpr:{{{add_cp}}} > 0|Increase|Decrease}} CP|{{#ifexpr:{{{add_cp}}} > 0|+}}{{Skill effect potency|base={{{add_cp}}}|max={{{max_add_cp|0}}}}} CP]] to {{#var:target}}{{#ifeq:{{{cp_drain_mult|0}}}|0||, [[CP steal|steal]] {{Skill effect potency|base={{{cp_drain_mult}}}|max={{{cp_drain_mult_max|0}}}}}% of decreased CP}}{{#vardefine:effect present|true}} | ||
}}<!--change hate-->{{#ifeq:{{{add_hate|0}}}|0|| | }}<!--change hate-->{{#ifeq:{{{add_hate|0}}}|0|| | ||
{{#if:{{#var:effect present|}}| + }}{{#ifexpr:{{{add_hate}}} > 0|+}}{{Skill effect potency|base={{{add_hate}}}|max={{{max_add_hate|0}}}}} Hate to {{#var:target}}{{#vardefine:effect present|true}} | {{#if:{{#var:effect present|}}| + }}{{#ifexpr:{{{add_hate}}} > 0|+}}{{Skill effect potency|base={{{add_hate}}}|max={{{max_add_hate|0}}}}} Hate to {{#var:target}}{{#vardefine:effect present|true}} | ||
Line 47: | Line 47: | ||
Resists forward movement of {{{regist_forcepull}}} square(s)}}}}}}{{#vardefine:effect present|true}} | Resists forward movement of {{{regist_forcepull}}} square(s)}}}}}}{{#vardefine:effect present|true}} | ||
}}<!--change unit XP-->{{#ifeq:{{{add_exp|0}}}|0||{{#if:{{#var:skill page|}}|{{#vardefine:effect tags|Add unit XP;{{#var:effect tags}}{{#vardefine:potency min|{{{add_exp}}}}}{{#vardefine:potency max|{{{max_add_exp|0}}}}}}} | }}<!--change unit XP-->{{#ifeq:{{{add_exp|0}}}|0||{{#if:{{#var:skill page|}}|{{#vardefine:effect tags|Add unit XP;{{#var:effect tags}}{{#vardefine:potency min|{{{add_exp}}}}}{{#vardefine:potency max|{{{max_add_exp|0}}}}}}} | ||
}}{{#if:{{#var:effect present|}}| + }}Additional [[LV|XP]] (+{{Skill effect potency|base={{{add_exp}}}|max={{{max_add_exp|0}}}}}%){{#vardefine:effect present|true}} | }}{{#if:{{#var:effect present|}}| + }}<!--{{#ifeq:{{{support_ok|0}}}|0|(Disabled on supports) }}-->Additional [[LV|XP]] (+{{Skill effect potency|base={{{add_exp}}}|max={{{max_add_exp|0}}}}}%){{#vardefine:effect present|true}} | ||
}}<!--collect unit XP-->{{#ifeq:{{{collect_exp|0}}}|0||{{#if:{{#var:skill page|}}|{{#vardefine:effect tags|Collect unit XP;{{#var:effect tags}}{{#vardefine:potency min|{{{collect_exp}}}}}{{#vardefine:potency max|{{{collect_exp}}}}}}} | }}<!--collect unit XP-->{{#ifeq:{{{collect_exp|0}}}|0||{{#if:{{#var:skill page|}}|{{#vardefine:effect tags|Collect unit XP;{{#var:effect tags}}{{#vardefine:potency min|{{{collect_exp}}}}}{{#vardefine:potency max|{{{collect_exp}}}}}}} | ||
}}{{#if:{{#var:effect present|}}| + }}Collect {{{collect_exp}}}% of earned [[LV|unit XP]] to {{#var:target}}{{#vardefine:effect present|true}} | }}{{#if:{{#var:effect present|}}| + }}<!--{{#ifeq:{{{support_ok|0}}}|0|(Disabled on supports) }}-->Collect {{{collect_exp}}}% of earned [[LV|unit XP]] to {{#var:target}}{{#vardefine:effect present|true}} | ||
}}<!--change rank XP-->{{#ifeq:{{{add_rank_exp|0}}}|0||{{#if:{{#var:skill page|}}|{{#vardefine:effect tags|Add rank XP;{{#var:effect tags}}{{#vardefine:potency min|{{{add_rank_exp}}}}}{{#vardefine:potency max|{{{max_add_rank_exp|0}}}}}}} | }}<!--change rank XP-->{{#ifeq:{{{add_rank_exp|0}}}|0||{{#if:{{#var:skill page|}}|{{#vardefine:effect tags|Add rank XP;{{#var:effect tags}}{{#vardefine:potency min|{{{add_rank_exp}}}}}{{#vardefine:potency max|{{{max_add_rank_exp|0}}}}}}} | ||
}}{{#if:{{#var:effect present|}}| + }}Additional [[Rank|Rank XP]] (+{{Skill effect potency|base={{{add_rank_exp}}}|max={{{max_add_rank_exp|0}}}}}%){{#vardefine:effect present|true}} | }}{{#if:{{#var:effect present|}}| + }}<!--{{#ifeq:{{{support_ok|0}}}|0|(Disabled on supports) }}-->Additional [[Rank|Rank XP]] (+{{Skill effect potency|base={{{add_rank_exp}}}|max={{{max_add_rank_exp|0}}}}}%){{#vardefine:effect present|true}} | ||
}}<!--change coin payout-->{{#ifeq:{{{add_money|0}}}|0||{{#if:{{#var:skill page|}}|{{#vardefine:effect tags|Add Coin;{{#var:effect tags}}{{#vardefine:potency min|{{{add_money}}}}}{{#vardefine:potency max|{{{max_add_money|0}}}}}}} | }}<!--change coin payout-->{{#ifeq:{{{add_money|0}}}|0||{{#if:{{#var:skill page|}}|{{#vardefine:effect tags|Add Coin;{{#var:effect tags}}{{#vardefine:potency min|{{{add_money}}}}}{{#vardefine:potency max|{{{max_add_money|0}}}}}}} | ||
}}{{#if:{{#var:effect present|}}| + }}[[Items|Additional]] {{Item|コイン}} (+{{Skill effect potency|base={{{add_money}}}|max={{{max_add_money|0}}}}}%){{#vardefine:effect present|true}} | }}{{#if:{{#var:effect present|}}| + }}<!--{{#ifeq:{{{support_ok|0}}}|0|(Disabled on supports) }}-->[[Items|Additional]] {{Item|コイン}} (+{{Skill effect potency|base={{{add_money}}}|max={{{max_add_money|0}}}}}%){{#vardefine:effect present|true}} | ||
}}<!--change FP payout-->{{#ifeq:{{{add_support_point|0}}}|0||{{#if:{{#var:skill page|}}|{{#vardefine:effect tags|Add FP;{{#var:effect tags}}{{#vardefine:potency min|{{{add_support_point}}}}}{{#vardefine:potency max|{{{max_add_support_point|0}}}}}}} | }}<!--change FP payout-->{{#ifeq:{{{add_support_point|0}}}|0||{{#if:{{#var:skill page|}}|{{#vardefine:effect tags|Add FP;{{#var:effect tags}}{{#vardefine:potency min|{{{add_support_point}}}}}{{#vardefine:potency max|{{{max_add_support_point|0}}}}}}} | ||
}}{{#if:{{#var:effect present|}}| + }}[[Items|Additional]] {{Item|Ally Points}} (+{{Skill effect potency|base={{{add_support_point}}}|max={{{max_add_support_point|0}}}}}%){{#vardefine:effect present|true}} | }}{{#if:{{#var:effect present|}}| + }}<!--{{#ifeq:{{{support_ok|0}}}|0|(Disabled on supports) }}-->[[Items|Additional]] {{Item|Ally Points}} (+{{Skill effect potency|base={{{add_support_point}}}|max={{{max_add_support_point|0}}}}}%){{#vardefine:effect present|true}} | ||
}}<!--new entries here--> | }}<!--new entries here--> | ||
}}<!--nothing-->{{#if:{{#var:effect present|}}||{{#vardefine:desc|No effect}}}}<!--turn intervals-->{{#ifexpr:{{{timing|0}}} != 8 and {{{timing|0}}} != 9|{{#vardefine:desc|{{#if:{{#vardefineecho:turn interval|{{Skill turn interval|interval={{{turn_interval|0}}}|surplus={{{turn_interval_surplus|0}}}|total turn={{{turn_interval_is_total_turn|0}}}}}}}|({{#var:turn interval|}}) }}{{#var:desc}}}} | }}<!--nothing-->{{#if:{{#var:effect present|}}||{{#vardefine:desc|No effect}}}}<!--turn intervals-->{{#ifexpr:{{{timing|0}}} != 8 and {{{timing|0}}} != 9|{{#vardefine:desc|{{#if:{{#vardefineecho:turn interval|{{Skill turn interval|interval={{{turn_interval|0}}}|surplus={{{turn_interval_surplus|0}}}|total turn={{{turn_interval_is_total_turn|0}}}}}}}|({{#var:turn interval|}}) }}{{#var:desc}}}} | ||
Line 70: | Line 70: | ||
| Has range = {{{distance|0}}} {{{distance_h|0}}} {{{range_h|0}}} {{{range_v|0}}} {{{range_d|0}}} {{{is_square|0}}} | | Has range = {{{distance|0}}} {{{distance_h|0}}} {{{range_h|0}}} {{{range_v|0}}} {{{range_d|0}}} {{{is_square|0}}} | ||
| Has turn interval = {{{turn_interval|0}}} {{{turn_interval_surplus|0}}} {{{turn_interval_is_total_turn|0}}} | | Has turn interval = {{{turn_interval|0}}} {{{turn_interval_surplus|0}}} {{{turn_interval_is_total_turn|0}}} | ||
}}|}}{{#vardefine:effect present|}}{{#var:desc}} | }}|}}{{#vardefine:effect present|}}{{#var:desc}}</includeonly></onlyinclude><noinclude>{{Documentation}}</noinclude> | ||
Revision as of 23:33, 29 September 2021
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:
- override range - replace the skill range with a custom string (like the one from Template:Skill range combo).
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 on the entire board
{{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 units 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 units + 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 transients
The above documentation is transcluded from Template:Skill description/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |