# Game.SetFightingStrength

## `Game.SetFightingStrength(playerID, value)`

Setzt die o**ffensive** **Kampfkraft** des Spielers auf den angegebenen Wert (maximal 150). Wenn der Wert für einen Spieler einmal per Script festgelegt wurde, skaliert er nicht mehr normal mit dem Siedlungswert. Das kann aber mit **-1 zurückgesetzt** werden.

#### Parameter

* `playerID [1-8]`: Spieler-ID, **Index 0 ist ungültig!**
* `value [-1, 0-150]`: offensive Kampfkraft, -1 löscht den gesetzten Wert und das Spiel berechnet die Kampfkraft wieder wie gehabt

#### Rückgabewert

none

#### Beispiel

```lua
Game.SetFightingStrength(1, 150)    ; Kampfkraft von Spieler 1 auf 150%
Game.SetFightingStrength(1, -1)     ; Skalierung zurückgesetzt
```


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.settlers-united.com/s4-lua-api-de/library-functions/game/game.setfightingstrength.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
