# Deluxe Battle Rules

Essentials allows you to set special rules for your encounters by using the `setBattleRule` script to customize your battles. These are placed above the battle call, and you can set as many different rules as you'd like. You can use this to do things such as turn off money or experience gains for this battle, disable Poke Balls from being used, prevent the player from fleeing, and more.&#x20;

This kit expands on this by adding several new types of rules that allow you to customize things even further, allowing you to create some really unique encounters. The subpages in this section will go over each rule added by this plugin, and how to use them.\
\
Rules that affect similar things have been grouped together to make them easier to find.

{% hint style="info" %}
**Battle Rule Applicator**

While playing in debug mode, you can manually assign battle rules that you want to apply to your next battle through the debug menu. To do so, select "Deluxe plugin settings..." and then select "Set battle rules..." to begin manually adding battle rules to apply.&#x20;

<img src="https://2153694798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvzqYxbzoSOVtGkOgfRUQ%2Fuploads%2FbFmKC0qmxVP3S7xrq6L9%2F%5B2024-12-04%5D%2013_58_27.237.png?alt=media&#x26;token=e7e74ab4-3480-425a-9858-bd9c6c9ad2da" alt="" data-size="original">

Note that while not a battle rule, you may also use the "Set partner trainer" in a similar fashion to manually set a partner trainer to accompany the player in battle.
{% endhint %}


---

# 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://lucidious89-tutorials.gitbook.io/deluxe-battle-kit-tutorial/deluxe-battle-kit-for-v21.1/deluxe-battle-rules.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.
