Difference between revisions of "Template:Skill description"
Jump to navigation
Jump to search
SurtrFan8511 (talk | contribs) |
SurtrFan8511 (talk | contribs) |
||
Line 6: | Line 6: | ||
}}{{#if:{{#var:short description|}}|{{Status|id={{{remove_status_id|}}}}}|Remove {{Status|id={{{remove_status_id|}}}}}}}{{#vardefine:short description|true}} | }}{{#if:{{#var:short description|}}|{{Status|id={{{remove_status_id|}}}}}|Remove {{Status|id={{{remove_status_id|}}}}}}}{{#vardefine:short description|true}} | ||
}}<!--skill advantage-->{{#ifeq:{{{anti_skill_id|0}}}|0|| | }}<!--skill advantage-->{{#ifeq:{{{anti_skill_id|0}}}|0|| | ||
{{#if:{{#var:short description|}}|{{Skill name|id={{{anti_skill_id}}}}} (x{{Skill effect potency|base={{#expr:{{{mult|0}}} / 100}}|max={{#expr:{{{mult_max|0}}} / 100}}}})|Deal {{Skill effect potency|base={{#expr:{{{mult|0}}} / 100}}|max={{#expr:{{{mult_max|0}}} / 100}}}}x damage to {{Skill name|id={{{anti_skill_id}}}}} enemies}}{{#vardefine:short description|true}} | {{#if:{{#var:short description|}}|{{Skill name|id={{{anti_skill_id}}}}} (x'''{{Skill effect potency|base={{#expr:{{{mult|0}}} / 100}}|max={{#expr:{{{mult_max|0}}} / 100}}}}''')|Deal '''{{Skill effect potency|base={{#expr:{{{mult|0}}} / 100}}|max={{#expr:{{{mult_max|0}}} / 100}}}}'''x damage to {{Skill name|id={{{anti_skill_id}}}}} enemies}}{{#vardefine:short description|true}} | ||
}}<!--status advantage-->{{#ifeq:{{{anti_status_id|0}}}|0||{{#if:{{#var:skill page|}}|{{#vardefine:effect tags|Status advantage {{Status name|id={{{anti_status_id}}}}};{{#var:effect tags}}}} | }}<!--status advantage-->{{#ifeq:{{{anti_status_id|0}}}|0||{{#if:{{#var:skill page|}}|{{#vardefine:effect tags|Status advantage {{Status name|id={{{anti_status_id}}}}};{{#var:effect tags}}}} | ||
}}{{#if:{{#var:short description|}}|{{Status|id={{{anti_status_id}}}}} (x{{Skill effect potency|base={{#expr:{{{mult|0}}} / 100}}|max={{#expr:{{{mult_max|0}}} / 100}}}})|Deal {{Skill effect potency|base={{#expr:{{{mult|0}}} / 100}}|max={{#expr:{{{mult_max|0}}} / 100}}}}x damage to {{Status|id={{{anti_status_id}}}}}-affected enemies}}{{#vardefine:short description|true}} | }}{{#if:{{#var:short description|}}|{{Status|id={{{anti_status_id}}}}} (x'''{{Skill effect potency|base={{#expr:{{{mult|0}}} / 100}}|max={{#expr:{{{mult_max|0}}} / 100}}}}''')|Deal '''{{Skill effect potency|base={{#expr:{{{mult|0}}} / 100}}|max={{#expr:{{{mult_max|0}}} / 100}}}}x damage to {{Status|id={{{anti_status_id}}}}}-affected enemies}}{{#vardefine:short description|true}} | ||
}}<!--weapon resistance-->{{#ifeq:{{{reduce_weapon_id|0}}}|0||{{#if:{{#var:skill page|}}|{{#vardefine:effect tags|Weapon resist {{Weapon type|{{{reduce_weapon_id}}}}};{{#var:effect tags}}}} | }}<!--weapon resistance-->{{#ifeq:{{{reduce_weapon_id|0}}}|0||{{#if:{{#var:skill page|}}|{{#vardefine:effect tags|Weapon resist {{Weapon type|{{{reduce_weapon_id}}}}};{{#var:effect tags}}}} | ||
}}Take {{Skill effect potency|base={{#expr:{{{mult|0}}} / 100}}|max={{#expr:{{{mult_max|0}}} / 100}}}}x damage from {{Weapon|{{{reduce_weapon_id}}}}}-ranged enemies | }}Take {{Skill effect potency|base={{#expr:{{{mult|0}}} / 100}}|max={{#expr:{{{mult_max|0}}} / 100}}}}'''x damage from {{Weapon|{{{reduce_weapon_id}}}}}-ranged enemies | ||
}}<!--status resistance (unused?)-->{{#ifeq:{{{reduce_status_id|0}}}|0|| | }}<!--status resistance (unused?)-->{{#ifeq:{{{reduce_status_id|0}}}|0|| | ||
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}}}}} | 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}}}}} | ||
}}<!--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|Increase|Decrease}} HP|{{#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}} |
Revision as of 06:20, 12 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 unitsExpression error: Unexpected > operator. by 1 square