No edit summary |
No edit summary |
||
(13 intermediate revisions by the same user not shown) | |||
Line 56: | Line 56: | ||
</pre> |
</pre> |
||
− | ;Parameter and |
+ | ;Parameter and Syntax Explanation |
{| class="wikitable mw-collapsible mw-collapsed" style="width: 100%;" |
{| class="wikitable mw-collapsible mw-collapsed" style="width: 100%;" |
||
! width=20% | Parameter |
! width=20% | Parameter |
||
Line 85: | Line 85: | ||
*<code>{{pht|Custom integer}}</code> |
*<code>{{pht|Custom integer}}</code> |
||
|- |
|- |
||
− | | <code>description</code> || Descriptive sentence that is shown in the card's tooltip above the abilities. Use <code> |
+ | | <code>description</code> || Descriptive sentence that is shown in the card's tooltip above the abilities. Use <code><nowiki><br></nowiki></code> for a custom line break. || style="text-align:center;" | [[File:True.svg|17px|link=|True]] || |
*<code>"{{pht|Custom text}}"</code> |
*<code>"{{pht|Custom text}}"</code> |
||
**If it changes with upgrades use the following syntax: |
**If it changes with upgrades use the following syntax: |
||
Line 183: | Line 183: | ||
*<code>"Lost Souls"</code> |
*<code>"Lost Souls"</code> |
||
*<code>"Amii"</code> |
*<code>"Amii"</code> |
||
+ | *<code>Rebirth</code> |
||
|- |
|- |
||
| <code>rarity</code> || Rarity icon in the bottom right corner, influenced by <code>edition</code> (does not work alone). || style="text-align:center;" | [[File:False.svg|17px|link=|False]] || |
| <code>rarity</code> || Rarity icon in the bottom right corner, influenced by <code>edition</code> (does not work alone). || style="text-align:center;" | [[File:False.svg|17px|link=|False]] || |
||
Line 190: | Line 191: | ||
*<code>"Ultra Rare"</code> |
*<code>"Ultra Rare"</code> |
||
|- |
|- |
||
− | | <code>booster_locations</code> || Names of the boosters from which the card can be drawn. || style="text-align:center;" | [[File:Circle.svg|17px|link=|Conditional]] || |
+ | | <code>booster_locations</code> || Names of the boosters from which the card can be drawn. Only required if the card has been assigned to a booster that deviates from its orbs' colors or if the card's orbs constitute it being [[Legendary|Neutral/Legendary]] and thus sorting based on orb colors is not possible. || style="text-align:center;" | [[File:Circle.svg|17px|link=|Conditional]] || |
− | *Only required if the card's orbs constitute it being [[Legendary|Neutral/Legendary]]. |
||
*<code>"{{pht|booster name}}"</code> |
*<code>"{{pht|booster name}}"</code> |
||
+ | *Available boosters: |
||
+ | **<code>General</code> |
||
+ | **<code>Fire</code> |
||
+ | **<code>Frost</code> |
||
+ | **<code>Nature</code> |
||
+ | **<code>Shadow</code> |
||
+ | **<code>Amii</code> |
||
+ | **<code>Bandits</code> |
||
+ | **<code>Fire/Frost</code> |
||
+ | **<code>Lost Souls</code> |
||
+ | **<code>Stonekin</code> |
||
+ | **<code>Twilight</code> |
||
+ | *If the card cannot be obtained via booster opening, use <code>None</code> instead. |
||
*If it is more than one, use a table instead: |
*If it is more than one, use a table instead: |
||
− | **<code><nowiki>{</nowiki>"{{pht|booster name 1}}", ..., {{pht|booster name n}}<nowiki>}</nowiki></code> |
+ | **<code><nowiki>{</nowiki>"{{pht|booster name 1}}", ..., "{{pht|booster name n}}"<nowiki>}</nowiki></code> |
|- |
|- |
||
| <code>upgrade_locations</code> || Campaign drop locations of each upgrade card. Most left being upgrade 1, most right being upgrade 3. || style="text-align:center;" | [[File:Circle.svg|17px|link=|Conditional]] || |
| <code>upgrade_locations</code> || Campaign drop locations of each upgrade card. Most left being upgrade 1, most right being upgrade 3. || style="text-align:center;" | [[File:Circle.svg|17px|link=|Conditional]] || |
||
Line 202: | Line 215: | ||
| <code>general_upgrade_text</code> || Text on upgrade cards that does not belong to a specific ability. Changes in <code>construction_time</code>, <code>power_cost</code>, <code>damage</code> or <code>health</code> are excluded and will be displayed automatically. || style="text-align:center;" | [[File:True.svg|17px|link=|True]] || |
| <code>general_upgrade_text</code> || Text on upgrade cards that does not belong to a specific ability. Changes in <code>construction_time</code>, <code>power_cost</code>, <code>damage</code> or <code>health</code> are excluded and will be displayed automatically. || style="text-align:center;" | [[File:True.svg|17px|link=|True]] || |
||
*<code><nowiki>{</nowiki>"{{pht|Custom text upgrade 1}}", "{{pht|Custom text upgrade 2}}", "{{pht|Custom text upgrade 3}}"<nowiki>}</nowiki></code> |
*<code><nowiki>{</nowiki>"{{pht|Custom text upgrade 1}}", "{{pht|Custom text upgrade 2}}", "{{pht|Custom text upgrade 3}}"<nowiki>}</nowiki></code> |
||
− | **If the custom text is not |
+ | **If the custom text is not required for all upgrades simply leave the respective upgrade blank: <code>"",</code> |
|- |
|- |
||
| colspan="4" style="background-color:#070F19;" | '''Ability related parameters''' (this block repeats as many times as there are abilities) |
| colspan="4" style="background-color:#070F19;" | '''Ability related parameters''' (this block repeats as many times as there are abilities) |
||
Line 237: | Line 250: | ||
**If the value is not present on all upgrades, simply leave the respective upgrade blank: <code>"",</code> |
**If the value is not present on all upgrades, simply leave the respective upgrade blank: <code>"",</code> |
||
|- |
|- |
||
− | | <code>description</code> || Full description of the ability, use <code>%s</code> as placeholder for values which change on upgrades. Use <code> |
+ | | <code>description</code> || Full description of the ability, use <code>%s</code> as placeholder for values which change on upgrades. Use <code><nowiki><br></nowiki></code> for a custom line break. Usage of templates like [[Template:Ability icon|Ability icon]] is also permitted. || style="text-align:center;" | [[File:False.svg|17px|link=|False]] || |
*<code>"{{pht|Custom text}}"</code> |
*<code>"{{pht|Custom text}}"</code> |
||
|- |
|- |
||
Line 243: | Line 256: | ||
*<code><nowiki>{</nowiki>{{pht|value upgrade 0}}, {{pht|value upgrade 1}}, {{pht|value upgrade 2}}, {{pht|value upgrade 3}}<nowiki>}</nowiki></code> |
*<code><nowiki>{</nowiki>{{pht|value upgrade 0}}, {{pht|value upgrade 1}}, {{pht|value upgrade 2}}, {{pht|value upgrade 3}}<nowiki>}</nowiki></code> |
||
**If the value is not present on all upgrades, simply leave the respective upgrade blank: <code>"",</code> |
**If the value is not present on all upgrades, simply leave the respective upgrade blank: <code>"",</code> |
||
+ | **If the delta per upgrade is more than just a number use preceding and closing <code>"</code> too. |
||
*If there are multiple placeholders in an ability, arrange them in a table: |
*If there are multiple placeholders in an ability, arrange them in a table: |
||
− | *<code><nowiki>{</nowiki><nowiki>{</nowiki>{{pht|value}}, {{pht|value}}, {{pht|value}}, {{pht|value}}<nowiki>}</nowiki>, <nowiki>{</nowiki>{{pht|value}}, {{pht|value}}, {{pht|value}}, {{pht|value}}<nowiki>}</nowiki>, <nowiki>{</nowiki>{{pht|...}}<nowiki>}</nowiki><nowiki>}</nowiki></code> |
+ | **<code><nowiki>{</nowiki><nowiki>{</nowiki>{{pht|value}}, {{pht|value}}, {{pht|value}}, {{pht|value}}<nowiki>}</nowiki>, <nowiki>{</nowiki>{{pht|value}}, {{pht|value}}, {{pht|value}}, {{pht|value}}<nowiki>}</nowiki>, <nowiki>{</nowiki>{{pht|...}}<nowiki>}</nowiki><nowiki>}</nowiki></code> |
|- |
|- |
||
− | | <code>upgrade_text</code> || Text displayed on the upgrade card, that specifically belongs to this ability. Learning an ability upon reaching a certain upgrade is excluded and will be displayed automatically. || style="text-align:center;" | [[File:Circle.svg|17px|link=|Conditional]] || |
+ | | <code>upgrade_text</code> || Text displayed on the upgrade card, that specifically belongs to this ability. Learning an ability upon reaching a certain upgrade is excluded and will be displayed automatically. Use <code><nowiki><br></nowiki></code> for a custom line break. || style="text-align:center;" | [[File:Circle.svg|17px|link=|Conditional]] || |
*<code><nowiki>{</nowiki>"{{pht|Custom text upgrade 1}}", "{{pht|Custom text upgrade 2}}", "{{pht|Custom text upgrade 3}}"<nowiki>}</nowiki></code> |
*<code><nowiki>{</nowiki>"{{pht|Custom text upgrade 1}}", "{{pht|Custom text upgrade 2}}", "{{pht|Custom text upgrade 3}}"<nowiki>}</nowiki></code> |
||
− | **If the custom text is not |
+ | **If the custom text is not required for all upgrades simply leave the respective upgrade blank: <code>"",</code> |
|} |
|} |
||
Revision as of 14:29, 16 September 2021
Description
This module stores all data about the currently existing playable cards in alphabetical order. Whenever card changes occur this module needs to be updated respectively.
- Syntax
All cards' data is stored in a standardized way as shown below.
["card name (variant)"] = { affinity = , card_id = , description = , starter_card = , type = , construction_time = , gender = , movement_speed = , orbs = , power_cost = , charges = , squadqsize = , class = , weapon_type = , counter = , size = , damage = , health = , edition = , rarity = , booster_locations = , upgrade_locations = , general_upgrade_text = , abilities = { { name = ability 1, type = , hide_on_card = , upgrade_availability = , affinity_dependency = , cost = , description = , values = , upgrade_text = , }, { name = ability n, type = , hide_on_card = , upgrade_availability = , affinity_dependency = , cost = , description = , values = , upgrade_text = , } } },
- Parameter and Syntax Explanation
Parameter | Explanation / Usage Notes | Omissible | Accepted Input |
---|---|---|---|
["<card name> <variant>"] |
Full name of the card followed by the variant. |
| |
affinity |
Overwrites indicated affinity by variant (for promo cards with affinities). |
| |
card_id |
The card's unique id for upgrade 0, to be used for scripting purposes. |
| |
description |
Descriptive sentence that is shown in the card's tooltip above the abilities. Use <br> for a custom line break. |
| |
starter_card |
Indicates that the card is owned by all players as a PvE starter card. |
| |
type |
Type of the card. |
| |
construction_time |
Base construction time of the building in seconds. |
| |
gender |
Gender class of the card. |
| |
movement_speed |
Movement speed of the unit in meters per second (shown at the top of the tooltip). |
| |
orbs |
Required orbs of the card, ordered from right to left; up to 4 separated by comma; all mono or dual color combinations are allowed. |
| |
power_cost |
Power cost of the card. |
| |
charges |
Number of times the fully charged card can be played before the recharge cooldown starts. |
| |
squadsize |
Amount of individual members of which the the squad consists. |
| |
class |
Class of the card |
| |
weapon_type |
Attack type of the card, Melee and Ranged can be influenced by counter . |
| |
counter |
Size type countered by the card, can be influenced by weapon_type , omit if weapon_type is "Special" . |
| |
size |
Size type of the card. |
| |
damage |
Displayed attack value of the card. |
| |
health |
Amount of health points the entity has. |
| |
edition |
Edition icon in the bottom right corner, influenced by rarity (does not work alone). |
| |
rarity |
Rarity icon in the bottom right corner, influenced by edition (does not work alone). |
| |
booster_locations |
Names of the boosters from which the card can be drawn. Only required if the card has been assigned to a booster that deviates from its orbs' colors or if the card's orbs constitute it being Neutral/Legendary and thus sorting based on orb colors is not possible. |
| |
upgrade_locations |
Campaign drop locations of each upgrade card. Most left being upgrade 1, most right being upgrade 3. |
| |
general_upgrade_text |
Text on upgrade cards that does not belong to a specific ability. Changes in construction_time , power_cost , damage or health are excluded and will be displayed automatically. |
| |
Ability related parameters (this block repeats as many times as there are abilities) | |||
name |
Name of the ability. | Custom text of moderate length | |
type |
Type of the ability. |
| |
hide_on_card |
Disables the ability to be shown on the card, but limits it to the tooltip. |
| |
upgrade_availability |
Indicates on which card upgrade levels the ability is available. |
| |
affinity_dependency |
Affinity dependency of the ability, is tied to card parameter affinity , defaults to False |
| |
cost |
Power cost of the ability, omit if free (0) |
| |
description |
Full description of the ability, use %s as placeholder for values which change on upgrades. Use <br> for a custom line break. Usage of templates like Ability icon is also permitted. |
| |
values |
Corresponding values to the placeholders, enter in same order as they occur in description . |
| |
upgrade_text |
Text displayed on the upgrade card, that specifically belongs to this ability. Learning an ability upon reaching a certain upgrade is excluded and will be displayed automatically. Use <br> for a custom line break. |
|
See also