Anyone who has tried out the Scenario Editor has likely come across these actions.
What are they for?
Let’s say you’re working on a new campaign and need to transfer hero data such as hero level, unlocked abilities, perks, and more from one map to another. You can also load the next scenario after the first one using the Load Other Scenario action. This is especially useful when you want players to continue the story. We’ll cover that in more detail later on.
But how does it work? The first step is using the action Store Hero XYZ Into Link, typically paired with the event On Game Won and appropriate conditions. In the empty box, you’ll enter a map link this must be unique “name” and can only contain characters a-z and 0-9. If any other characters are used, the data will not be saved. For example, let’s say I want to store all hero data from the previous scenario so the player can continue where they left off. On the first map, I would create a trigger with the event On Game Won, and use the action Store Hero Data Into Link. I’ll then give the link a unique name.
I can save the scenario and hop into the other one where I want these hero data.
Creating a trigger bundle with one trigger inside. I want to load all heroes data when map is initialized with event Map Initialized and trigger Load Hero Data From Link. This is the second map where you load the data from the previous one.
After entering Play Mode on the second map, all hero data should be transferred successfully.
The same applies to other actions like Store Hero Equipment, Store Hero Inventory, Store Hero Level, etc. It’s up to you to decide what data you want to carry over to the next scenario.
What can you do to create a story-driven or campaign-style progression?
While doing this, keep in mind that maps cannot be launched separately. If you use the **Load Other Scenario** action, players can only progress through the maps sequentially by completing the previous one. You can create a save from the 2nd or X-th map, but these maps cannot be launched directly from the start.
Why would I want that?
How to apply this? Open the map you want to load after completing the first one, go to the Map Settings, and enter a unique ID for your map.