> For the complete documentation index, see [llms.txt](https://ss3d.gitbook.io/systems/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ss3d.gitbook.io/systems/roles/adding-a-new-role.md).

# Adding a new role

This page describes how to add a new role into the game

The first thing you need to do to create a new role is to go to **Assets/Content/Data/Roles**, either duplicate an existing role or right click and go **Create -> Roles -> RoleData**, name both the file and the "Role name" variable as the name of the role.

![](https://3495811604-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F95OhrYYgKj0eUTnfM9sL%2Fuploads%2FXzODww6JZgVAkH33tNVg%2Fimage.png?alt=media\&token=260b3593-0d49-4f93-a43a-d76725324f0d)

Role Name: the name of the role\
PDA Prefab: the PDA prefab that will be spawned in the player's inventory\
ID Card Prefab: the ID Card prefab that will be spawned inside the PDA\
Permissions: the list of permissions the ID Card will have.\
Loadout: the loadout that will populate the player's inventory at round start.

To create a new loadout go to **Assets/Content/Data/Roles/Loadouts**, right click and go **Create -> Roles -> Loadout**, there choose the items that will spawn in the player's inventory.

![](https://3495811604-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F95OhrYYgKj0eUTnfM9sL%2Fuploads%2FAxx7CHvdtRS30SxiDZbw%2Fimage.png?alt=media\&token=cf3bf4db-e5f6-444f-8dfa-47d6340644d6)

Check which slots will have items and then set which items will be spawned in the droplist that will show, remember that these items have to be registed in the AssetDatabase for them to appear in the droplist.

Now go to the **StartingRoles** asset in **Assets/Content/Data/Roles** and add the role to the list.

![](https://3495811604-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F95OhrYYgKj0eUTnfM9sL%2Fuploads%2F8pXjkOktRkWBfsT6H9Vo%2Fimage.png?alt=media\&token=21bcc919-3451-4b27-9f11-91b5d24ca26a)

Drag the Role data into the slot and set how many players can play that role per round, setting it to zero means there is no limit.

Remember that it is possible to create ID Cards with permissions inside the game, which would effectively allow more people to play the same role that what is initially allowed, a player's role is dictated solely by their ID Card, which can be stolen or dumped.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://ss3d.gitbook.io/systems/roles/adding-a-new-role.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
