# 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']: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']:HandleDogAttribute('decrease', 'stamina', randomDecrease)
   ```
3. **Get Attribute**

   ```lua
   local currentStamina = exports['evo-k9']: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: 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://evo-development.gitbook.io/evo-development-docs/products/k9/exports.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.
