Skip to content

Achievements

Achievements are season milestones defined in the realm YAML configuration. They are earned automatically when conditions are met — there is no explicit claim step. Each achievement awards prestige points that contribute to the season ranking.

Overview

  • Config-driven: All achievements, triggers, and prestige values are defined in the realm YAML configuration.
  • Auto-earned: Achievements are evaluated and awarded lazily when you call GET /api/v1/achievements/. No separate claim needed.
  • Season-scoped: Achievements are tracked per player per season.
  • Prestige value: Each achievement contributes prestige points to your season score.

Trigger Types

TypeDescription
has_buildingTrue if any town has the specified building at level >= 1
building_levelTrue if any town has the specified building at the required level or higher
unit_countTrue if your own units in your towns meet the count — all units, or only the type given by an optional unit_type_id. Only your own count: reinforcements another player has stationed in your towns are theirs, and do not; your own party standing in another of your towns does (the same rule as the quest trigger)
multiple_townsTrue if the player has at least the required number of towns

List Achievements

Returns all achievements for the current realm with your earned status, wrapped in the standard pagination envelope (count, limit, offset, results). Use the limit and offset query params to paginate; limit defaults to 50 and is capped at 200.

GET /api/v1/achievements/
Authorization: Bearer <player_token>

YAML Configuration

Define achievements in your realm config file:

achievements:
- id: first_steps
name: First Steps
description: Found your first town.
prestige_value: 50
trigger:
type: multiple_towns
count: 1
- id: warlord
name: Warlord
description: Train 50 units.
prestige_value: 200
trigger:
type: unit_count
count: 50

Error Cases

StatusReason
403Season is inactive or has ended

Achievements gate title promotions

Most ranks on the title ladder require a specific achievement as well as medals. You do not have to claim anything first — achievements are awarded the moment you meet their trigger, and the promotion check itself awards any you have already qualified for.

Achievements also earn you spins

In a realm with a fortune wheel, each achievement earns spins the moment it is awarded — including when it is awarded lazily by a title-promotion check rather than by listing achievements yourself. Once per achievement, never again.