# Region District Settings

## Overview

You can split up your Region is Districts by enabling this Setting and modifying the District Names in the Setting below.

***

Whether you want to use Districts for your Region.

```ruby
USE_REGION_DISTRICTS_NAMES = true   
```

Possible values:

* `true` = enabled: The Region Map will be split up in the below set Districts.
* `false` = disabled.

***

Add an array for each District.

<pre class="language-ruby"><code class="lang-ruby">REGION_DISTRICTS = [
  [0, [9, 19],  [4, 6],   _INTL("North Essen")],
<strong>  [0, [15, 15], [7, 7],   _INTL("North Essen")],
</strong>  [0, [16, 19], [7, 7],  _INTL("East Essen")],
  [0, [15, 19], [8, 11],  _INTL("East Essen")],
  [0, [9, 19],  [12, 15], _INTL("South Essen")],
  [0, [9, 12],  [7, 11],  _INTL("West Essen")],
  [0, [13, 14], [7, 11],  _INTL("Central Essen")],
  [1, [10, 20], [5, 15],  _INTL("Central Tiall")]
]
</code></pre>

Each district is an Array that contains following information:

* `0` = Region ID
* `[9, 19]` = Start X position and End X position in tiles on the Region Map.
* `[4, 6]` = Start Y position and End Y position in tiles on the Region Map.
* `_INTL("North Essen")` = the name of the District.

{% hint style="info" %}
Districts may overlap each other but only 1 will be displayed. (This is the one first in the Array)
{% endhint %}

***

Link a Game Switch to each district that'll be set to `ON` when the respective District is 100% (only used when you use the progress counter).

```ruby
PROGRESS_SWITCHES = {
  "Essen" => 106,
  "North Essen" => 99,
  "East Essen" => 100,
  "South Essen" => 101,
  "West Essen" => 102,
  "Central Essen" => 103,
  "Central Tiall" => 104
}
```

* `"Essen"` = the name of the District.
  * `106` = the Game Switch with ID 106.

{% hint style="info" %}
You don't need to add a switch for every district. If you don't use districts, linking the Region's name to a switch will also work `"Essen" => 106`. So when the whole Region has 100% exploration, `Switch 106` will be set to `ON`. But you'll need to run `switchesForDistricts` in an event first before checking if any switches are turned on.
{% endhint %}

{% hint style="warning" %}
Make sure the district name is exactly the same as the one in the setting above or it'll not be found.
{% 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://arckytech.gitbook.io/arckys-region-map-guide/settings-file/location-settings/region-district-settings.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.
