> 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 are rules that affect the overall style of battle, such as how it controls or operates.

<details>

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

This rule enables the AI to take control of the player's actions for this battle, allowing the battle to play out fully automated.\
\
This is entered as `setBattleRule("autoBattle")`

</details>

<details>

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

While this rule is enabled, this battle will be considered a competitive/pvp battle similar to how battles would behave in the Battle Tower, meaning the player cannot use items from their bag, and will be able to forfeit trainer battles by 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 for this battle, as was introduced in Gen 6. During an Inverse Battle, the type chart is flipped so that Super Effective moves will be resisted, and moves that would normally be resisted or deal no damage will now be Super Effective.\
\
This is entered as `setBattleRule("inverseBattle")`

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://lucidious89-tutorials.gitbook.io/deluxe-battle-kit-tutorial/deluxe-battle-kit-for-v21.1/deluxe-battle-rules/rules-battle-modes.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
