> For the complete documentation index, see [llms.txt](https://evo-development.gitbook.io/evo-development-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://evo-development.gitbook.io/evo-development-docs/products/k9-1/exports.md).

# Exports

#### 📦 Exports

The K9 Script System provides several exports that allow you to interact with your K9's attributes programmatically. These exports can be utilized to manage your K9's attributes and enhance gameplay functionality.

<details>

<summary>Click to view Exports List</summary>

**Example Usage:**

You can utilize the `HandleDogAttribute` export as follows:

1. **Increase Attribute**

   ```lua
   local randomIncrease = math.random(1, 5) -- Generate a random increase value between 1 and 5
   exports['evo-k9-v2']:HandleDogAttribute('increase', 'smell', randomIncrease)
   ```
2. **Decrease Attribute**

   ```lua
   local randomDecrease = math.random(1, 5) -- Generate a random decrease value between 1 and 5
   exports['evo-k9-v2']:HandleDogAttribute('decrease', 'stamina', randomDecrease)
   ```
3. **Get Attribute**

   ```lua
   local currentStamina = exports['evo-k9-v2']:HandleDogAttribute('get', 'stamina')
   print("Current Stamina:", currentStamina) -- This will output the current stamina of the K9
   ```

</details>

<details>

<summary>Click to view Explanation of Attributes</summary>

* **Increase**:
  * This action allows you to add a specified amount to the K9's attribute. For example, if you want to increase the dog's smell attribute by a random value between 1 and 5, you would use the 'increase' action.
* **Decrease**:
  * This action lets you subtract a specified amount from the K9's attribute. For instance, if you want to reduce the dog's stamina by a random value between 1 and 5, you would call the function with 'decrease'.
* **Get**:
  * This action retrieves the current value of a specific attribute. If you need to know how much stamina the K9 currently has, you would use the 'get' action.

</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://evo-development.gitbook.io/evo-development-docs/products/k9-1/exports.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.
