> ## 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.

# getChallengeId

> Obtenir l'identifiant du défi de combat actuel.

Obtenir l'identifiant du défi de combat actuel.

#### 🎮 Méthode

```lua theme={null}
fightChallenge:getChallengeId()
```

#### 💎 Valeur de retour

| Type  | Description                                    |
| ----- | ---------------------------------------------- |
| `int` | Identifiant du défi (`0` si aucun défi actif). |

#### 💡 Exemple

```lua theme={null}
local challengeId = fightChallenge:getChallengeId()
if challengeId > 0 then
    fightDebug:print("Identifiant du défi actif : " .. challengeId)
end
```
