> For the complete documentation index, see [llms.txt](https://docs.lootlocker.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.lootlocker.com/legacy/triggers/create-a-trigger.md).

# Create a trigger

{% hint style="info" %}
You are viewing legacy triggers. We've launched a new trigger system, it's much more powerful and flexible! [Check it out!](/game-systems/triggers.md)
{% endhint %}

## Create a Trigger

In this how-to guide, we are going to create a Trigger for our game that grants XP whenever the player enters a new area in our game's world. This guide will walk you through implementing Progression in both LootLocker and in-game.

To start, let's navigate to the Triggers menu by clicking `Triggers` in the Game Systems side bar menu.

![](/files/-MY4S8NHJaZWtikZP_Lk)

To create a new Trigger, click the `Add Trigger` button in the top right corner, and name your trigger. Since we plan to have many areas in our game world, we are going to use a naming system that is easy to expand on. This trigger will be called `zoneA_area1` as that is what the area will be called in the game editor. Once you have named your Trigger, click `Save` to save it.

![](/files/-MY5GkJpAtjFG1D39qkn)

Now that the Trigger has been created, I want to add an XP reward. To do that, click `Add Reward` to bring up the select Asset model. Instead of selecting an Asset as normal, I will use the `Set a Score` field to enter the XP I would like to grant to the player when the Trigger is triggered. Once you have entered the amount, click `Save Score Only` to save and continue.

![](/files/-MY5I22h_EZj0H8y0RcG)

You should now see the XP added as a reward.

Finally, we want to make sure that the player can only trigger this reward once by selecting `Limited` in the `Trigger Times` section, and entering `1` into the field. This will make sure that the Trigger can only be triggered once.

![](/files/-MY5JQomy3JWw2wk0NfF)

{% hint style="success" %}
You have now set up a Trigger in LootLocker and are ready to implement it in-game.
{% endhint %}


---

# 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:

```
GET https://docs.lootlocker.com/legacy/triggers/create-a-trigger.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.
