Difference between revisions of "AchievementsWML"
From The Battle for Wesnoth Wiki
Pentarctagon (talk | contribs) (→[achievement]) |
Pentarctagon (talk | contribs) (→[achievements_group]) |
||
Line 11: | Line 11: | ||
The following keys and tags are recognized in '''[achievements_group]''' tags: | The following keys and tags are recognized in '''[achievements_group]''' tags: | ||
* '''content_for''': The internal identifier for this group of achievements. The standard usage would be to have this be unique per add-on or per piece of content (campaign, modification, etc), however there is no limitation on how achievement groups are declared - an add-on can define as many achievement groups as it wants. | * '''content_for''': The internal identifier for this group of achievements. The standard usage would be to have this be unique per add-on or per piece of content (campaign, modification, etc), however there is no limitation on how achievement groups are declared - an add-on can define as many achievement groups as it wants. | ||
− | * '''display_text''': The | + | * '''display_text''': (translatable) The text to be displayed on the content dropdown of the achievements dialog. |
* '''[achievement''': See below. | * '''[achievement''': See below. | ||
Revision as of 06:54, 22 January 2023
(Version 1.17.13 and later only)
Achievements
Achievements are defined in an achievements.cfg file located at the root directory of an add-on (in the same folder as the _main.cfg). The WML in the achievements.cfg file is loaded completely independently of any other WML in your add-on or in mainline Wesnoth - this means you do not have access to any macros that are not defined in this file.
[achievements_group]
The following keys and tags are recognized in [achievements_group] tags:
- content_for: The internal identifier for this group of achievements. The standard usage would be to have this be unique per add-on or per piece of content (campaign, modification, etc), however there is no limitation on how achievement groups are declared - an add-on can define as many achievement groups as it wants.
- display_text: (translatable) The text to be displayed on the content dropdown of the achievements dialog.
- [achievement: See below.
[achievement]
The following keys and tags are recognized in [achievement] tags:
- id:
- name:
- name_completed:
- description:
- description_completed:
- icon:
- icon_completed:
- hidden:
- hidden_name:
- hidden_hint: