# Step 1: Mod structure

## Summary

Created: Apr 02 2024 by [mana vortex](mailto:undefined)\
Last documented edit: ??? by your name

This page will give you an overview about a redfile's structure and how to pick the right one for your use case.

## Classes

In which cases do you need a class? When is it enough to just put functions at the root level?

This section should have a short example for a minimal class. If there are multiple options, they should go in their own section after Functions

## Functions

*Can you even define own functions out of a class? I sure don't know*

if you don't need a class, it's enough to do stuff with functions at the root level of your file. When exactly is that?


---

# 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://wiki.redmodding.org/redscript/getting-started/how-to-start-redscripting/step-1-mod-structure.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.
