> For the complete documentation index, see [llms.txt](https://lucidious89-tutorials.gitbook.io/deluxe-battle-kit-tutorial/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lucidious89-tutorials.gitbook.io/deluxe-battle-kit-tutorial/deluxe-battle-kit-for-v21.1/deluxe-battle-rules/rules-battle-modes.md).

# Rules: Battle Modes

These rules affect the overall battle style, including how battles are controlled and operate.

<details>

<summary><mark style="background-color:green;"><strong>"autoBattle"</strong></mark></summary>

This rule allows the AI to control the player's actions, allowing the battle to play out automatically.\
\
This is entered as `setBattleRule("autoBattle")`

</details>

<details>

<summary><mark style="background-color:green;"><strong>"towerBattle"</strong></mark></summary>

While this rule is enabled, the battle is treated as a competitive PvP battle, similar to a Battle Tower battle. The player cannot use items from their Bag and can forfeit Trainer battles using the Run command.\
\
This is entered as `setBattleRule("towerBattle")`

</details>

<details>

<summary><mark style="background-color:green;"><strong>"noBag"</strong></mark></summary>

While this rule is enabled, no trainers (including the player) will be able to use any items from their inventories. For the player, the "Bag" command will not be selectable at all.

This is entered as `setBattleRule("noBag")`

</details>

<details>

<summary><mark style="background-color:green;"><strong>"inverseBattle"</strong></mark></summary>

This rule enables Inverse Battle rules, which were introduced in Generation 6. During an Inverse Battle, the type chart is reversed. Super-effective moves are resisted, while moves that are normally resisted or deal no damage become super effective.\
\
This is entered as `setBattleRule("inverseBattle")`

</details>
