Difference between revisions of "AchievementsWML"
From The Battle for Wesnoth Wiki
Pentarctagon (talk | contribs) (→[achievements_group]) |
Pentarctagon (talk | contribs) (→Achievements) |
||
Line 4: | Line 4: | ||
== Achievements == | == 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] === | === [achievements_group] === |
Revision as of 06:40, 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: The translatable text to be displayed on the content dropdown of the achievements dialog.
- [achievement: See below.