wesnoth/data/schema/achievements.cfg
Pentarctagon ad3f1c95b0 Add support for distinct sub-achievements.
This adds support for having up to 28 distinct sub-achievements within a single achievement. This limit exists since wesnoth's layout isn't smart enough to tell a horizontal listbox to actually use its scrollbar instead of forcing a horizontal scrollbar on the whole window.

Additionally this adds the [set_sub_achievement] and [has_sub_achievement] WML tags and their respective lua functions. [has_sub_achievement] is unsafe for use in MP, for the same reasons that [has_achievement] is.
2023-05-17 23:54:16 -05:00

35 lines
814 B
INI

[wml_schema]
{./macros.cfg}
{./types/basic.cfg}
[tag]
name="root"
[tag]
name="achievement_group"
max="infinite"
{REQUIRED_KEY content_for string}
{REQUIRED_KEY display_name t_string}
[tag]
name="achievement"
max="infinite"
{REQUIRED_KEY id string}
{REQUIRED_KEY name t_string}
{SIMPLE_KEY name_completed t_string}
{REQUIRED_KEY description t_string}
{SIMPLE_KEY description_completed t_string}
{REQUIRED_KEY icon string}
{SIMPLE_KEY icon_completed string}
{SIMPLE_KEY hidden bool}
{SIMPLE_KEY max_progress int}
{SIMPLE_KEY sound string}
[tag]
name="sub_achievement"
max="28"
{REQUIRED_KEY id string}
{REQUIRED_KEY description t_string}
{REQUIRED_KEY icon string}
[/tag]
[/tag]
[/tag]
[/tag]
[/wml_schema]