Difference between revisions of "Template:Skill description"
Jump to navigation
Jump to search
SurtrFan8511 (talk | contribs) (Fixed for real this time) |
SurtrFan8511 (talk | contribs) |
||
Line 1: | Line 1: | ||
<includeonly><onlyinclude>{{#if:{{#var:skill page|}}|{{#vardefine:effect tags|}}{{#vardefine:potency min|{{{mult|0}}}}}{{#vardefine:potency max|{{{mult_max|0}}}}} | <includeonly><onlyinclude>{{#if:{{#var:skill page|}}|{{#vardefine:effect tags|}}{{#vardefine:potency min|{{{mult|0}}}}}{{#vardefine:potency max|{{{mult_max|0}}}}} | ||
}}<!--specifying targets-->{{#vardefine:target|{{Skill targets|self={{{target_self|0}}}|team={{{target_my_team|0}}}|enemy={{{target_enemy|0}}}}}{{#ifexpr:{{{distance|0}}} = 0 and {{{range_h|0}}} = 0 and {{{range_v|0}}} = 0 and {{{range_d|0}}} = 0||{{spaces|1}}{{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}}}}}<!--{{#ifexpr:{{{distance|0}}} = 0 and {{{range_h|0}}} = 0 and {{{range_v|0}}} = 0 and {{{range_d|0}}} = 0||-->{{spaces|1}}{{Skill range|{{{distance|0}}} {{{range_h|0}}} {{{range_v|0}}} {{{range_d|0}}} {{{is_square|0}}}}}<!--}}--> | ||
}}{{#vardefine:desc|<!--apply status-->{{#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:{{{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|}}}}}]]}} | }}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|}}}}}]]}} |
Revision as of 10:21, 5 September 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%)
{{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. by 1 square