Template:EXSkillTable: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
No edit summary |
(support per-level skill cost changes) |
||
Line 1: | Line 1: | ||
<includeonly> |
|||
⚫ | |||
{{#vardefine: max_level_with_cost_reduction | 0 }} |
|||
{{#vardefine: max_level_cost | {{{SkillBaseCost}}} }} |
|||
{{#vardefine: i | 1 }} |
|||
{{#while: |
|||
| {{#ifexpr: {{#var: i }} < 6 | true }} |
|||
| {{#vardefine: max_level_cost | {{{SkillCostLv{{#var: i }} |}}} }}{{#vardefine: max_level_with_cost_reduction | {{#var: i }} }}{{#vardefine: i |
|||
| {{#expr: {{#var: i }} + 1 }} |
|||
}} |
|||
}} |
|||
{{#vardefine: rowspan_1 | 5 }} |
|||
{{#vardefine: rowspan_2 | 0 }} |
|||
{{#vardefine: rowspan_3 | 0 }} |
|||
{{#vardefine: rowspan_4 | 0 }} |
|||
{{#vardefine: rowspan_5 | 0 }} |
|||
{{#vardefine: i | 1 }} |
|||
{{#while: |
|||
| {{#ifexpr: {{#var: i }} < 6 | true }} |
|||
| |
|||
{{#if: {{{SkillCostLv{{#var: i }} |}}} | |
|||
{{#vardefine: j | 1 }} |
|||
{{#while: |
|||
| {{#ifexpr: {{#var: j }} < {{#var: i }} | true }} |
|||
| |
|||
{{#ifexpr: {{#var: rowspan_{{#var: j }} }} > {{#expr: {{#var: i }} - {{#var: j }} }} | {{#vardefine: rowspan_{{#var: j }} | {{#expr: {{#var: i }} - {{#var: j }} }} }} }} |
|||
{{#vardefine: j | {{#expr: {{#var: j }} + 1 }} }} |
|||
}} |
|||
{{#vardefine: rowspan_{{#var: i }} | {{#expr: 6 - {{#var: i }} }} }} |
|||
{{#ifexpr: {{#expr: {{#var: i }} = 5 }} | {{#vardefine: rowspan_5 | 1 }} }} |
|||
}} |
|||
{{#vardefine: i | {{#expr: {{#var: i }} + 1 }} |
|||
}} |
|||
}} |
|||
⚫ | |||
|- class="summary" |
|- class="summary" |
||
|style="width:10%"|'''EX Skill'''<br>Cost {{{SkillBaseCost}}}{{# |
|style="width:10%"|'''EX Skill'''<br>Cost {{{SkillBaseCost}}}{{#ifexpr: {{#var: max_level_cost }} <> {{{SkillBaseCost|}}} | <br><span style="color:red">(Level {{#var: max_level_with_cost_reduction }}+)<br>Cost {{#var: max_level_cost }}</span> | }} |
||
|colspan="2" style="position: relative; padding-left:74px;" |{{#if:{{{SkillIcon|}}}|[[File:{{{SkillIcon|}}}.png|64x64px|left]]|{{SkillIcon|{{{SkillDamageType}}}|{{{SkillIconType}}}}}}} |
|colspan="2" style="position: relative; padding-left:74px;" |{{#if:{{{SkillIcon|}}}|[[File:{{{SkillIcon|}}}.png|64x64px|left]]|{{SkillIcon|{{{SkillDamageType}}}|{{{SkillIconType}}}}}}} |
||
<br>'''{{#if:{{{SkillNameJP|}}}|{{{SkillNameJP}}}<span style="color:#a2a9b1; word-spacing: 0.4em;"> • </span>|}}{{{SkillName}}}'''<br>{{{SkillDescriptionGeneral}}} |
<br>'''{{#if:{{{SkillNameJP|}}}|{{{SkillNameJP}}}<span style="color:#a2a9b1; word-spacing: 0.4em;"> • </span>|}}{{{SkillName}}}'''<br>{{{SkillDescriptionGeneral}}} |
||
Line 10: | Line 44: | ||
|- |
|- |
||
|1 |
|1 |
||
|rowspan="{{# |
|rowspan="{{#var: rowspan_1 }}" style="text-align:center"| {{{SkillBaseCost}}} |
||
|{{{SkillDescriptionLv1}}} |
|{{{SkillDescriptionLv1}}} |
||
|- |
|- |
||
|2 |
|2 |
||
{{#ifexpr: {{#var: rowspan_2 }} > 0 | {{!}} rowspan="{{#var: rowspan_2 }}" style="text-align:center" {{!}} <span style="color:red">{{{SkillCostLv2|}}}</span> }} |
|||
|{{{SkillDescriptionLv2}}} |
|{{{SkillDescriptionLv2}}} |
||
|- |
|- |
||
|3 |
|3 |
||
{{# |
{{#ifexpr: {{#var: rowspan_3 }} > 0 | {{!}} rowspan="{{#var: rowspan_3 }}" style="text-align:center" {{!}} <span style="color:red">{{{SkillCostLv3|}}}</span> }} |
||
|{{{SkillDescriptionLv3}}} |
|{{{SkillDescriptionLv3}}} |
||
|- |
|- |
||
|4 |
|4 |
||
{{# |
{{#ifexpr: {{#var: rowspan_4 }} > 0 | {{!}} rowspan="{{#var: rowspan_4 }}" style="text-align:center" {{!}} <span style="color:red">{{{SkillCostLv4|}}}</span> }} |
||
|{{{SkillDescriptionLv4}}} |
|{{{SkillDescriptionLv4}}} |
||
|- |
|- |
||
|5 |
|5 |
||
{{# |
{{#ifexpr: {{#var: rowspan_5 }} > 0 | {{!}} rowspan="{{#var: rowspan_5 }}" style="text-align:center" {{!}} <span style="color:red">{{{SkillCostLv5|}}}</span> }} |
||
|{{{SkillDescriptionLv5}}} |
|{{{SkillDescriptionLv5}}} |
||
|} |
|||
</includeonly><noinclude> <nowiki>{{EXSkillTable |
|||
|SkillName= |
|SkillName= |
||
|SkillNameJP= |
|SkillNameJP= |
||
|SkillBaseCost= |
|SkillBaseCost= |
||
| |
|SkillCostLv2=(fill in if skill has a cost reduction at given level levels) |
||
. |
|||
|SkillUpgradedCostLv=(level at which cost is reduced) |
|||
. |
|||
|SkillCostLv5= |
|||
|SkillDamageType=(Explosive/Penetration/Mystic) |
|SkillDamageType=(Explosive/Penetration/Mystic) |
||
|SkillIconType=(Skill icon name) |
|SkillIconType=(Skill icon name) |
||
|SkillDescriptionGeneral= |
|SkillDescriptionGeneral= |
||
|SkillDescriptionLv1= To highlight values similar to ingame, use |
|SkillDescriptionLv1= To highlight values similar to ingame, use {{SkillValue|text}}. To highlight major changes, use <span style="color:red">text</span> |
||
. |
. |
||
. |
. |
||
Line 50: | Line 88: | ||
"description": "Cost of skill at level 1.", |
"description": "Cost of skill at level 1.", |
||
"required": true |
"required": true |
||
}, |
|||
"SkillCostLv2": { |
|||
"description": "Cost of skill at level 2, if there's a change on given level." |
|||
}, |
|||
"SkillCostLv3": { |
|||
"description": "Cost of skill at level 3, if there's a change on given level." |
|||
}, |
|||
"SkillCostLv4": { |
|||
"description": "Cost of skill at level 4, if there's a change on given level." |
|||
}, |
|||
"SkillCostLv5": { |
|||
"description": "Cost of skill at level 5, if there's a change on given level." |
|||
}, |
}, |
||
"SkillUpgradedCost": { |
"SkillUpgradedCost": { |
||
"description": "Only needs a value if the skill gets a cost reduction at a certain level." |
"description": "Only needs a value if the skill gets a cost reduction at a certain level.", |
||
"deprecated": "Specify SkillCostLv* instead" |
|||
}, |
}, |
||
"SkillUpgradedCostLv": { |
"SkillUpgradedCostLv": { |
||
"description": "The level at which a skill's cost is reduced." |
"description": "The level at which a skill's cost is reduced.", |
||
"deprecated": "Specify SkillCostLv* instead" |
|||
}, |
}, |
||
"SkillDamageType": { |
"SkillDamageType": { |