> For the complete documentation index, see [llms.txt](https://xeavin.gitbook.io/the-insurgents-scalable-foes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xeavin.gitbook.io/the-insurgents-scalable-foes/overview/configuration.md).

# Configuration

### Configuration

All parameters are loaded from the `{game}/x64/scripts/config/TheInsurgentsScalableFoesConfig.lua` file when opening the game.

This configuration file can be modified via any text editor. The following configuration is the default and equivalent to not scaling any stats at all:

<details>

<summary>Default Configuration</summary>

```lua
local function config(stats)
  local statMultipliers = {
    --{stat, defaultMul, additiveMul}
    --{stats.maxHp, 2.00, 2.00}
  }

  return statMultipliers
end

return config
```

</details>

Below is a list of all configurable options and what they are used for:

#### Stat

The type of stat the multipliers will be applied to (e.g. `Max HP`).

<table><thead><tr><th width="248">Identifier</th><th>Name</th></tr></thead><tbody><tr><td>0</td><td>Max HP</td></tr><tr><td>1</td><td>Max MP</td></tr><tr><td>2</td><td>Strength</td></tr><tr><td>3</td><td>Magick Power</td></tr><tr><td>4</td><td>Vitality</td></tr><tr><td>5</td><td>Speed</td></tr><tr><td>6</td><td>Attack Power</td></tr><tr><td>7</td><td>Defense</td></tr><tr><td>8</td><td>Magick Resist</td></tr><tr><td>9</td><td>Evade (Parry)</td></tr><tr><td>10</td><td>Evade (Weapon)</td></tr><tr><td>11</td><td>Evade (Shield)</td></tr><tr><td>12</td><td>Magick Evade (Shield)</td></tr><tr><td>13</td><td>Experience</td></tr><tr><td>14</td><td>License Points</td></tr><tr><td>15</td><td>Clan Points</td></tr><tr><td>16</td><td>Gil</td></tr><tr><td>17</td><td>Level</td></tr></tbody></table>

#### Default Multiplier

The multiplier used for the default stat of a foe.

For example, if a foe has `20` strength and a multiplier of `2.00` is used, the final value will be `40`.

#### Additive Multiplier

The multiplier used for the additive stat of a foe.

The same example from above applies here.

### Level Cap

The default and additive multipliers for the level work differently than the ones for the other stats.

The additive level of a foe will always take precedence over its default level. Otherwise it would result in a foe spawning weaker than usual if a too high default level multiplier was used.

To ensure this, each level type will be capped to the following values:

**Max Default Level:** 99

**Max Additive Level:** 98

**Max Final Level:** 99

Below is a table with examples on how the capping works:

| Def Lvl (Orig) | Add Lvl (Orig) | Def Lvl (Cap) | Add Lvl (Cap) | Final Lvl Range |
| :------------: | :------------: | :-----------: | :-----------: | :-------------: |
|        1       |        2       |       1       |       2       |      1 - 3      |
|       90       |       10       |       89      |       10      |     89 - 99     |
|       99       |        1       |       98      |       1       |     98 - 99     |
|        1       |       99       |       1       |       98      |      1 - 99     |
|       99       |       99       |       1       |       98      |      1 - 99     |

### Notes

{% hint style="warning" %}
Additive stat multipliers, especially the one for the level, should be used with caution as a too high multiplier can result in a foe becoming overpowered very quickly.
{% endhint %}

{% hint style="info" %}
The strength of a foe is mostly not determined by its level, but rather by its stats, especially the additive ones. The level of a foe is only used in a few formulas to calculate the damage it does or receives.
{% endhint %}
