# Group your leaderboards into sets

> Have an Agent put your game's leaderboards into Game Center leaderboard sets, such as one per world or season, name each set in every language, and send the sets to App Review.

Source: https://air.build/docs/app-store/group-leaderboards-into-sets/

A leaderboard set puts several of your game's leaderboards together under one name. Apple's help says sets organize several leaderboards into a single unit, for example one set holding the leaderboards for a game's levels. A leaderboard can be in more than one set, with a different name in each. See Apple's [Manage leaderboard sets](https://developer.apple.com/help/app-store-connect/configure-game-center/manage-leaderboard-sets).

> [!NOTE]
> AirBuild has no Game Center screen. You ask an Agent in the Project's chat, and it uses `asc game-center leaderboard-sets` (listed under `game-center` in [asc: apps and App Store listing](https://air.build/docs/cli/asc-apps/#game-center)). To see the result, ask the Agent or open your app in App Store Connect.

## Before you ask

- The game needs Game Center and its leaderboards first. See [Add Game Center leaderboards and achievements](https://air.build/docs/app-store/add-game-center-leaderboards/).
- Sets change how the game's leaderboards are kept. Apple's help says that when you create the first set, App Store Connect makes sure every existing leaderboard is in at least one set, and that from then on every new leaderboard for the app must go in a set. Read Apple's [Manage leaderboard sets](https://developer.apple.com/help/app-store-connect/configure-game-center/manage-leaderboard-sets) before the first one.

## Ask for sets

Say in the Project's chat which leaderboards go together and what each set is called, for example:

```text
Put the leaderboards for levels 1 to 3 in a set called "World 1" and the rest in "World 2". Name the sets in English and German, and make a picture for each.
```

1. The Agent creates each set with `asc game-center leaderboard-sets create`: a reference name, a set ID and the leaderboards that go in it.
2. It adds each set's name, one language at a time, with `asc game-center leaderboard-sets localizations create`.
3. It uploads a picture as a PNG for a language with `asc game-center leaderboard-sets images upload`.
4. If a leaderboard should be called something else inside a set, it adds that name with `asc game-center leaderboard-sets member-localizations create`.
5. It tells you in the chat what it created. To see them at any time, ask "Which leaderboard sets does the game have, and what's in each?". The Agent reads them with `asc game-center leaderboard-sets list` and `asc game-center leaderboard-sets members list`.

For the pictures, the Agent can make them (see [Have Agents make pictures for your app](https://air.build/docs/build/make-pictures-for-your-app/)), or you can send your own in the chat (see [Send photos, files and sketches to an Agent](https://air.build/docs/projects/send-photos-and-files/)).

## Add or move leaderboards

To add a new leaderboard straight into a set, say which set when you ask for the leaderboard. The Agent creates it with `asc game-center leaderboards create --set-ids`.

To change which leaderboards are in a set, say the full list the set should hold:

```text
"World 2" should hold the leaderboards for levels 4, 5 and 6 only.
```

The Agent uses `asc game-center leaderboard-sets members set`. Its help says it replaces all the leaderboards in the set with the ones given, so any leaderboard you leave out of the list leaves the set. Because of that it needs `--confirm`, and the Agent asks you first.

## Send them to App Review

Ask the Agent to put the new sets into your next App Review submission, for example:

```text
Add the World 1 and World 2 leaderboard sets to the App Review submission for version 1.3.
```

The Agent adds them with `asc review items add`, whose help lists leaderboard sets among the items a submission can carry (see `review` in [asc: review and release](https://air.build/docs/cli/asc-release/#review)). Then submit the version as usual. **Submit for Review** on the **App Review** tab sends the submission that's being put together, so the sets go with the version. See [Submit to App Review and release](https://air.build/docs/app-store/submit-for-review/#submit-a-version).

For when sets need a version and when they can go to review on their own, see Apple's [Submit Game Center components](https://developer.apple.com/help/app-store-connect/manage-submissions-to-app-review/submit-game-center-components).

## Rename or delete a set

- To change a set's name for players, say the new name and the language. The Agent uses `asc game-center leaderboard-sets localizations update`. The reference name, for you, changes with `asc game-center leaderboard-sets update`.
- To delete a set, ask the Agent. `asc game-center leaderboard-sets delete` needs `--confirm`, so it asks you first. `asc` has no command to bring a deleted set back. Apple's help says what has to happen to the set's leaderboards before a set can be deleted: see [Manage leaderboard sets](https://developer.apple.com/help/app-store-connect/configure-game-center/manage-leaderboard-sets).

## Questions

**Can one leaderboard be in two sets?**

Yes. Apple's help says a leaderboard can be in more than one set, with a different name in each. Ask the Agent for the name it should have in each set.

**Can I go back to no sets?**

`asc` has no command for that. Apple's [Manage leaderboard sets](https://developer.apple.com/help/app-store-connect/configure-game-center/manage-leaderboard-sets) describes removing all sets in App Store Connect on the web.

**The Agent says no Game Center detail exists for this app.**

`asc` shows "Warning: no Game Center detail exists for this app." when the app has no Game Center setup in App Store Connect yet, for example as the Agent looks up its leaderboards. Ask the Agent to set Game Center up first: see [Add Game Center leaderboards and achievements](https://air.build/docs/app-store/add-game-center-leaderboards/).

**My games share Game Center. Can the group have sets?**

Yes, sets can belong to a Game Center group. See [Share leaderboards and achievements between your games](https://air.build/docs/app-store/share-game-center-between-your-games/).
