# Creating an Event Through the Editor

### Creating an Event Through the Editor

There are 2 foldouts; one for General Events and one for Combat Events. Each Event has + and - button that allows you to add or remove an event. When the + button is pressed, it will create a new blank element event for that Event List. This will allow you to apply the AI game object as the reference object (in most cases), to call any custom script's public function or Emerald AI's API functions that are available on your AI.

<figure><img src="/files/HUS32AOCI3thHpIWuQz0" alt=""><figcaption><p>An example event which gets the script ExampleEvent and calls its public function DebugMessage.</p></figcaption></figure>


---

# 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://black-horizon-studios.gitbook.io/emerald-ai-wiki/emerald-components-optional/events-component/creating-an-event-through-the-editor.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.
