> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dotouch-emu.com/llms.txt
> Use this file to discover all available pages before exploring further.

# chooseCell

> Placer votre personnage avant le début du combat.

Placer votre personnage avant le début du combat.

#### 🎮 Méthode

```lua theme={null}
fightAction:chooseCell(cellId)
```

#### 📝 Arguments

| Nom      | Type  | Description                                                              |
| -------- | ----- | ------------------------------------------------------------------------ |
| `cellId` | `int` | Cellule sur laquelle placer le personnage pendant la phase de placement. |

#### 💎 Valeur de retour

| Type   | Description |
| ------ | ----------- |
| `void` | —           |

#### 💡 Exemple

```lua theme={null}
-- Appelé dans le callback fightManagementPosition()
function fightManagementPosition(challengers, defenders)
    global:delay(1000)
    for cell, id in pairs(challengers) do
        if id == -1 then  -- -1 = cellule de placement vide
            global:printSuccess("Placement sur la cellule : " .. cell)
            fightAction:chooseCell(cell)
            break
        end
    end
end
```
