# Triggers

All trigger types provided by the Spark Save system.

***

## TriggerSaveTriggerType

A trigger that initiates a save operation when activated. Useful for auto-save checkpoints or save-on-event setups.

| Property    | Type  | Description                                   |
| ----------- | ----- | --------------------------------------------- |
| `SlotIndex` | `int` | The save slot index to save to when triggered |

### Usage

Attach this trigger type to any Spark trigger to automatically save game data when specific conditions are met, such as entering a new area or completing an objective.


---

# 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://docs.sparkframework.dev/documentation/developer-guide/core-systems/save/triggers.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.
