# Tutorial 9 & 50

> Trigger usage used: \
> -> End mission with reason 'A'\
> -> Mission complete and switch to level with ID 'A'

## Scenario

If you are going to build a whole series which is used to link a lot of maps, most of the map developers would use scenario feature to link their maps together.

Normally people would follow the culture that use "**Mission complete and switch to level with ID 'A'**" to connect between levels, then used "**End mission with reason 'A'**" for last level to thank people playing or ask them to rate 5 etc.

In this tutorial, we will show you how to make them work.

### End mission scenario

Step 1: make a activation region and a trigger, and bind the activation region to that trigger.

![](/files/-MGI6eL_Sgcj__Y-aOyc)

Step 2: Set the trigger action 1 type as **End mission with reason 'A'** , then type anything you like in parameter A.

![](/files/-MGg2LAAi1shTl0hMebF)

Step 3: Save the map, and test it. Normally it will show the text you had typed after the screen fades out.

![One of the common examples that people used in end mission scenario.](/files/-MGg4EvqW7YY1yVDfK8P)

### Switch map ID scenario

Step 1: same as above, just change the Action 1 type to **Mission complete and switch to level with ID 'A'**.&#x20;

Step 2: type your next map id you wish to connect in parameter A.

![](/files/-MGg2qQs1r2crJmC6tlO)

Step 3: Save the map, and test it. Normally you will be getting "now loading" screen and transfer to next level.

{% hint style="info" %}
Check [Inventory Info Tutorial](/pb2-editor-manual/tables/trigger/var/tutorial-i.md#saves-your-inventory-then-loads-on-other-map) if you wish to save your inventory throughout the maps.
{% endhint %}


---

# 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://eaglepb2.gitbook.io/pb2-editor-manual/tables/trigger/scenario/tutorial-2.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.
