> For the complete documentation index, see [llms.txt](https://eaglepb2.gitbook.io/pb2-editor-manual/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://eaglepb2.gitbook.io/pb2-editor-manual/zh-cn/the-tables/trigger-table/tutorial-2.md).

# Scenario Tutorial

Everything in scenario. Yes.

> 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.

![](https://2905234786-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MFtCELsQWyso_e3z2wu%2F-MGI-Alt96fe8Gp7_ir-%2F-MGI6eL_Sgcj__Y-aOyc%2Fimage.png?alt=media\&token=0f6af985-553a-4bf1-91ee-de91eeea44c2)

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

![](https://2905234786-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MFtCELsQWyso_e3z2wu%2F-MGfwt2xb5hjNJjBal2r%2F-MGg2LAAi1shTl0hMebF%2Fimage.png?alt=media\&token=12221e70-81cc-4701-b190-6112527853fe)

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.](https://2905234786-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MFtCELsQWyso_e3z2wu%2F-MGg3PlN3Fpqw1uIAbuT%2F-MGg4EvqW7YY1yVDfK8P%2Fimage.png?alt=media\&token=4bed1c09-e634-41a7-813e-10b084367876)

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

![](https://2905234786-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MFtCELsQWyso_e3z2wu%2F-MGfwt2xb5hjNJjBal2r%2F-MGg2qQs1r2crJmC6tlO%2Fimage.png?alt=media\&token=64cdabe5-9c31-40f6-a976-9019831a7ef1)

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/zh-cn/the-tables/trigger-table/tutorial-i.md#saves-your-inventory-then-loads-on-other-map) if you wish to save your inventory throughout the maps.
{% endhint %}
