Difference between revisions of "Template:Skill description"
Jump to navigation
Jump to search
SurtrFan8511 (talk | contribs) |
SurtrFan8511 (talk | contribs) |
||
Line 14: | Line 14: | ||
Reduces damage against enemies with {{Status|id={{{reduce_status_id}}}}} (x{{Skill effect potency|base={{{mult|0}}}|max={{{mult_max|0}}}}}%) | Reduces damage against enemies with {{Status|id={{{reduce_status_id}}}}} (x{{Skill effect potency|base={{{mult|0}}}|max={{{mult_max|0}}}}}%) | ||
}}<!--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;{{#var:effect tags}}{{#vardefine:potency min|{{{add_hp}}}}}{{#vardefine:potency max|{{{max_add_hp|0}}}}}}} | ||
}}{{#ifexpr:{{{add_hp}}} > 0|+}}{{Skill effect potency|base={{{add_hp}}}|max={{{max_add_hp|0}}}}} HP to {{#var:target}} | }}[[{{#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}} | ||
}}<!--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;{{#var:effect tags}}{{#vardefine:potency min|{{{add_cp}}}}}{{#vardefine:potency max|{{{max_add_cp|0}}}}}}} | ||
}}{{#ifexpr:{{{add_cp}}} > 0|+}}{{Skill effect potency|base={{{add_cp}}}|max={{{max_add_cp|0}}}}} CP to {{#var:target}} | }}[[{{#ifexpr:{{{add_hp}}} > 0|Increase|Decrease}} CP|{{#ifexpr:{{{add_cp}}} > 0|+}}{{Skill effect potency|base={{{add_cp}}}|max={{{max_add_cp|0}}}}} CP]] to {{#var:target}} | ||
}}<!--change hate-->{{#ifeq:{{{add_hate|0}}}|0|| | }}<!--change hate-->{{#ifeq:{{{add_hate|0}}}|0|| | ||
{{#ifexpr:{{{add_hate}}} > 0|+}}{{Skill effect potency|base={{{add_hate}}}|max={{{max_add_hate|0}}}}} Hate to {{#var:target}} | {{#ifexpr:{{{add_hate}}} > 0|+}}{{Skill effect potency|base={{{add_hate}}}|max={{{max_add_hate|0}}}}} Hate to {{#var:target}} | ||
}}<!--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 || | ||
{{#ifeq:{{{add_sp_v|0}}}|0| | {{#ifeq:{{{add_sp_v|0}}}|0| | ||
Increases horizontal movement by {{{add_sp_h}}}{{#if:{{#var:skill page|}}|{{#vardefine:effect tags|Add horizontal move;{{#var:effect tags}}}} | [[Increase Movement|Increases 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| | }}|{{#ifeq:{{{add_sp_h|0}}}|0| | ||
Increases vertical movement by {{{add_sp_v}}}{{#if:{{#var:skill page|}}|{{#vardefine:effect tags|Add vertical move;{{#var:effect tags}}}} | [[Increase Movement|Increases vertical movement]] by {{{add_sp_v}}}{{#if:{{#var:skill page|}}|{{#vardefine:effect tags|Add vertical move;{{#var:effect tags}}}} | ||
}}| | }}| | ||
Increases omnidirectional movement by {{{add_sp_h}}}x{{{add_sp_v}}}{{#if:{{#var:skill page|}}|{{#vardefine:effect tags|Add horizontal move;Add vertical move;{{#var:effect tags}}}} | [[Increase Movement|Increases omnidirectional movement]] by {{{add_sp_h}}}x{{{add_sp_v}}}{{#if:{{#var:skill page|}}|{{#vardefine:effect tags|Add horizontal move;Add vertical move;{{#var:effect tags}}}} | ||
}}}}}} | }}}}}} | ||
}}<!--pushback/pullback-->{{#ifeq:{{{knockback|0}}}|0||{{#if:{{#var:skill page|}}|{{#vardefine:effect tags|{{#ifexpr:{{{knockback}}} > 0|Push|Pull}};{{#var:effect tags}}}} | }}<!--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}}})}}}}}} | ||
}}{{#ifexpr:{{{knockback}}} > 0|Push away|Attract}} {{#var:target}} for {{#expr:abs({{{knockback}}})}} square{{#ifexpr:abs({{{knockback}}}) = 1||s}} | }}[[Blowback|{{#ifexpr:{{{knockback}}} > 0|Push away|Attract}}]] {{#var:target}} for {{#expr:abs({{{knockback}}})}} square{{#ifexpr:abs({{{knockback}}}) = 1||s}} | ||
}}<!--push left/right-->{{#ifeq:{{{knockback_horizontal|0}}}|0||{{#if:{{#var:skill page|}}|{{#vardefine:effect tags|{{#ifexpr:{{{knockback_horizontal}}} > 0|Push right|Push left}};{{#var:effect tags}}}} | }}<!--push left/right-->{{#ifeq:{{{knockback_horizontal|0}}}|0||{{#if:{{#var:skill page|}}|{{#vardefine:effect tags|{{#ifexpr:{{{knockback_horizontal}}} > 0|Push right|Push left}};{{#var:effect tags}}{{#vardefine:potency min|{{#expr:abs({{{knockback_horizontal}}})}}}}{{#vardefine:potency max|{{#expr:abs({{{knockback_horizontal}}})}}}}}} | ||
}}Move {{#var:target}} {{#expr:abs({{{knockback_horizontal}}})}} square{{#ifexpr:abs({{{knockback_horizontal}}}) = 1||s}} to the {{#ifexpr:{{{knockback_horizontal}}} > 0|right|left}} | }}[[Blowback|Move]] {{#var:target}} {{#expr:abs({{{knockback_horizontal}}})}} square{{#ifexpr:abs({{{knockback_horizontal}}}) = 1||s}} to the {{#ifexpr:{{{knockback_horizontal}}} > 0|right|left}} | ||
}}<!--random push-->{{#ifeq:{{{knockback_random|0}}}|0|| | }}<!--random push-->{{#ifeq:{{{knockback_random|0}}}|0|| | ||
Move {{#var:target}} randomly for {{{knockback_random}}} square{{#ifexpr:{{{knockback_random}}} = 1||s}} | [[Blowback|Move]] {{#var:target}} randomly for {{{knockback_random}}} square{{#ifexpr:{{{knockback_random}}} = 1||s}} | ||
}}<!--push resistance-->{{#ifexpr:{{{regist_move_horizontal|0}}} = 0 and {{{regist_knockback|0}}} = 0 and {{{regist_forcepull|0}}} = 0|| | }}<!--push resistance-->{{#ifexpr:{{{regist_move_horizontal|0}}} = 0 and {{{regist_knockback|0}}} = 0 and {{{regist_forcepull|0}}} = 0|| | ||
{{#ifexpr:{{{regist_move_horizontal|0}}} >= 99 and {{{regist_knockback|0}}} >= 99 and {{{regist_forcepull|0}}} >= 99| | {{#ifexpr:{{{regist_move_horizontal|0}}} >= 99 and {{{regist_knockback|0}}} >= 99 and {{{regist_forcepull|0}}} >= 99| | ||
Resists all forced movement{{#if:{{#var:skill page|}}|{{#vardefine:effect tags|Resist all push;{{#var:effect tags}}}} | [[Blowback Resistance|Resists all forced movement]]{{#if:{{#var:skill page|}}|{{#vardefine:effect tags|Resist all push;{{#var:effect tags}}}} | ||
}}|{{#ifeq:{{{regist_move_horizontal|0}}}|0||{{#ifexpr:{{{regist_move_horizontal}}} >= 99| | }}|{{#ifeq:{{{regist_move_horizontal|0}}}|0||{{#ifexpr:{{{regist_move_horizontal}}} >= 99| | ||
Resists forced horizontal movement{{#if:{{#var:skill page|}}|{{#vardefine:effect tags|Resist horizontal push;{{#var:effect tags}}}} | [[Blowback Resistance|Resists forced horizontal movement]]{{#if:{{#var:skill page|}}|{{#vardefine:effect tags|Resist horizontal push;{{#var:effect tags}}}} | ||
}}| | }}| | ||
Resists horizontal movement of {{{regist_move_horizontal}}} square(s)}}}}{{#ifeq:{{{regist_knockback|0}}}|0||{{#ifexpr:{{{regist_knockback}}} >= 99| | Resists horizontal movement of {{{regist_move_horizontal}}} square(s)}}}}{{#ifeq:{{{regist_knockback|0}}}|0||{{#ifexpr:{{{regist_knockback}}} >= 99| | ||
Resists forced backward movement{{#if:{{#var:skill page|}}|{{#vardefine:effect tags|Resist backward push;{{#var:effect tags}}}} | [[Blowback Resistance|Resists forced backward movement]]{{#if:{{#var:skill page|}}|{{#vardefine:effect tags|Resist backward push;{{#var:effect tags}}}} | ||
}}| | }}| | ||
Resists backward movement of {{{regist_knockback}}} square(s)}}}}{{#ifeq:{{{regist_forcepull|0}}}|0||{{#ifexpr:{{{regist_forcepull}}} >= 99| | Resists backward movement of {{{regist_knockback}}} square(s)}}}}{{#ifeq:{{{regist_forcepull|0}}}|0||{{#ifexpr:{{{regist_forcepull}}} >= 99| | ||
Resists forced forward movement{{#if:{{#var:skill page|}}|{{#vardefine:effect tags|Resist forward push;{{#var:effect tags}}}} | [[Blowback Resistance|Resists forced forward movement]]{{#if:{{#var:skill page|}}|{{#vardefine:effect tags|Resist forward push;{{#var:effect tags}}}} | ||
}}| | }}| | ||
Resists forward movement of {{{regist_forcepull}}} square(s)}}}} | Resists forward movement of {{{regist_forcepull}}} square(s)}}}} | ||
}}}}<!--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}}}}}}} | ||
}}Additional XP (+{{Skill effect potency|base={{{add_exp}}}|max={{{max_add_exp|0}}}}}%) to {{#var:target}} | }}Additional [[LV|XP]] (+{{Skill effect potency|base={{{add_exp}}}|max={{{max_add_exp|0}}}}}%) to {{#var:target}} | ||
}}<!--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}}}}}}} | ||
}}Collect {{{collect_exp}}}% of earned unit XP to {{#var:target}} | }}Collect {{{collect_exp}}}% of earned [[LV|unit XP]] to {{#var:target}} | ||
}}<!--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}}}}}}} | ||
}}Additional Rank XP (+{{Skill effect potency|base={{{add_rank_exp}}}|max={{{max_add_rank_exp|0}}}}}%) to {{#var:target}} | }}Additional [[Rank|Rank XP]] (+{{Skill effect potency|base={{{add_rank_exp}}}|max={{{max_add_rank_exp|0}}}}}%) to {{#var:target}} | ||
}}<!--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}}}}}}} | ||
}}Additional {{Item|コイン}} (+{{Skill effect potency|base={{{add_money}}}|max={{{max_add_money|0}}}}}%) to {{#var:target}} | }}[[Items|Additional]] {{Item|コイン}} (+{{Skill effect potency|base={{{add_money}}}|max={{{max_add_money|0}}}}}%) to {{#var:target}} | ||
}}<!--new entries here--> | }}<!--new entries here--> | ||
}}<!--nothing-->{{#if:{{#var:desc|}}||{{#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:desc|}}||{{#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}}}} |
Revision as of 12:26, 29 August 2020
This template generates a skill description based on the ingame variables.
Some of the examples (variables with a value of 0 are omitted for easier reading):
{{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 }}
Additional Coin (+5%) to self
{{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 Expression error: Unexpected > operator. for 1 square