> For the complete documentation index, see [llms.txt](https://doc.ankabot.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.ankabot.dev/mode-controleur/methodes/accountcontroller/forcechoose.md).

# forceChoose

Forcer le choix d'un personnage lors de la prochaine connexion.

### 🎮 Méthode

```coffeescript
account:forceChoose(name)
```

### 📝 Arguments

| Nom  | Type   | Description                  |
| ---- | ------ | ---------------------------- |
| name | string | Nom du personnage à choisir. |

### 💎 Valeur de retour

| Type | Description |
| ---- | ----------- |

### Exemple 1

Forcer le choix du personnage **Pharwell** sur le serveur **Mériana** :

```coffeescript
account1 = ankabotController:loadAccount("username1", false)
account1:forceServer("Mériana")
account1:forceChoose("Pharwell")
account1:connect()
```

### Exemple 2

Forcer le choix du personnage **Pharwell** après avoir supprimé **Undefined** sur le serveur **Mériana** :

```coffeescript
account1 = ankabotController:loadAccount("username1", false)
account1:forceServer("Mériana")
account1:forceDelete("Undefined")
account1:forceChoose("Pharwell")
account1:connect()
```
