> For the complete documentation index, see [llms.txt](https://xeavin.gitbook.io/the-insurgents-manifesto/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-manifesto/vm-extension/current-call-targets/set-gambit-slot-max.md).

# Set Gambit Slot Max

### Signature

```c
void setgambit_slotmax(int partyMemberId, int amount); //id:0x0504
```

### Description

Increases the gambit slot count of a party member by the provided amount.

### Changes

Since the gambit slot count is already properly handled by this mod when reseting jobs, gambits, and so on, this target call no longer serves a purpose. To prevent the game from altering a party member's gambit slot count in a specific game event, it has been made inaccessible.

Removing the function from the event itself would also work, but create compatibility issues with other mods that may modify it for other purposes. Therefore removing the function completely seemed like a better choice.

### Example

#### Increase Vaan's Gambit Slot Count By 1

```c
regI0 = 0; //vaan identifier
regI1 = 1; //increased amount
setgambit_slotmax(regI0, regI1);
```

### Notes

{% hint style="info" %}
The maximum gambit slot count that can be set is 12.
{% endhint %}
