Difference between revisions of "Template:Skill description"
SurtrFan8511 (talk | contribs) |
SurtrFan8511 (talk | contribs) (Just go play Eidos) |
||
Line 20: | Line 20: | ||
{{#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}} | ||
}}<!--extra movement-->{{#ifexpr:{{{add_sp_v|0}}} = 0 and {{{add_sp_h|0}}} = 0 || | }}<!--extra movement-->{{#ifexpr:{{{add_sp_v|0}}} = 0 and {{{add_sp_h|0}}} = 0 || | ||
{{#if:{{#var:effect present|}}| + }}{{#ifeq:{{{add_sp_v|0}}}|0| | {{#if:{{#var:effect present|}}| + }}{{Movement change|horizontal={{{add_sp_h|0}}}|vertical={{{add_sp_v|0}}}}}{{#if:{{#var:skill page|}}|{{#ifexpr:{{{add_sp_h|0}}} > 0 and {{{add_sp_v|0}}} > 0|{{#vardefine:effect tags|Add omnidirectional move;{{#var:effect tags}}}}|{{#ifexpr:{{{add_sp_h|0}}} > 0|{{#vardefine:effect tags|Add horizontal move;{{#var:effect tags}}}}}}{{#ifexpr:{{{add_sp_v|0}}} > 0|{{#vardefine:effect tags|Add vertical move;{{#var:effect tags}}}}}}}}}}<!--{{#ifeq:{{{add_sp_v|0}}}|0| | ||
[[Increase Movement| | {{#ifexpr:{{{add_sp_h|0}}} > 0|[[Increase Movement|Increase horizontal movement]] by {{{add_sp_h}}}{{#if:{{#var:skill page|}}|{{#vardefine:effect tags|Add horizontal move;{{#var:effect tags}}}} | ||
}}|{{#ifeq:{{{add_sp_h|0}}}|0| | }}|Decrease horizontal movement by {{#expr:-{{{add_sp_h|0}}}}}}}|{{#ifeq:{{{add_sp_h|0}}}|0| | ||
[[Increase Movement| | {{#ifexpr:{{{add_sp_v|0}}} > 0|[[Increase Movement|Increase vertical movement]] by {{{add_sp_v}}}{{#if:{{#var:skill page|}}|{{#vardefine:effect tags|Add vertical move;{{#var:effect tags}}}} | ||
}}| | }}|Decrease vertical movement by {{#expr:-{{{add_sp_v|0}}}}}}}| | ||
[[Increase Movement| | {{#ifexpr:{{{add_sp_v|0}}} > 0 or {{{add_sp_h}}} > 0|[[Increase Movement|Increase omnidirectional movement]] by {{{add_sp_h}}}x{{{add_sp_v}}}{{#if:{{#var:skill page|}}|{{#vardefine:effect tags|Add omnidirectional move;{{#var:effect tags}}}} | ||
}}}}}}{{#vardefine:effect present|true}} | }}|Decrease omnidirectional movement by {{#expr:-{{{add_sp_h|0}}}}}x{{#expr:-{{{add_sp_v|0}}}}}}}}}}}-->{{#vardefine:effect present|true}} | ||
}}<!--pushback/pullback-->{{#ifeq:{{{knockback|0}}}|0||{{#if:{{#var:skill page|}}|{{#vardefine:effect tags|{{#ifexpr:{{{knockback}}} > 0|Push|Pull}};{{#var:effect tags}}{{#vardefine:potency min|{{#expr:abs({{{knockback}}})}}}}{{#vardefine:potency max|{{#expr:abs({{{knockback}}})}}}}}} | }}<!--pushback/pullback-->{{#ifeq:{{{knockback|0}}}|0||{{#if:{{#var:skill page|}}|{{#vardefine:effect tags|{{#ifexpr:{{{knockback}}} > 0|Push|Pull}};{{#var:effect tags}}{{#vardefine:potency min|{{#expr:abs({{{knockback}}})}}}}{{#vardefine:potency max|{{#expr:abs({{{knockback}}})}}}}}} | ||
}}{{#if:{{#var:effect present|}}| + }}[[Blowback|{{#ifexpr:{{{knockback}}} > 0|Push away|Attract}}]] {{#var:target}} by {{#expr:abs({{{knockback}}})}} square{{#ifexpr:abs({{{knockback}}}) = 1||s}}{{#vardefine:effect present|true}} | }}{{#if:{{#var:effect present|}}| + }}[[Blowback|{{#ifexpr:{{{knockback}}} > 0|Push away|Attract}}]] {{#var:target}} by {{#expr:abs({{{knockback}}})}} square{{#ifexpr:abs({{{knockback}}}) = 1||s}}{{#vardefine:effect present|true}} |
Revision as of 04:23, 5 December 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. |