# How do I create an autosave system for a multiple level game

**URL:** <https://forums.unrealengine.com/t/how-do-i-create-an-autosave-system-for-a-multiple-level-game/396413>\
**Category:** Blueprint\
**Tags:** unreal-engine, editor, UE4, Blueprint, question, CPP\
**Created:** [June 20, 2017, 5:48pm UTC](https://forums.unrealengine.com/t/how-do-i-create-an-autosave-system-for-a-multiple-level-game/396413 "2017-06-20T17:48:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ShannonCoulson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ShannonCoulson](https://forums.unrealengine.com/u/ShannonCoulson)\
**Post date:** [June 20, 2017, 5:48pm UTC](https://forums.unrealengine.com/t/how-do-i-create-an-autosave-system-for-a-multiple-level-game/396413/1 "2017-06-20T17:48:52Z")

</div>

Hey, I’m busy designing a game where a players choices will be essential to the storyline and I’m not sure how to create an autosave system or even a simple save/load system.  
Would appreciate any help or tips, thank you very much.

---

<div class="post-metadata">

**Author:** ![BenVlodgi](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/benvlodgi/32/1194567_2.png) [@BenVlodgi](https://forums.unrealengine.com/u/BenVlodgi)\
**Post date:** [June 20, 2017, 6:30pm UTC](https://forums.unrealengine.com/t/how-do-i-create-an-autosave-system-for-a-multiple-level-game/396413/2 "2017-06-20T18:30:32Z")

</div>

You can create a couple structs and a data table to help you do this.

`ChoiceOption Struct`

- Name
- Description

`CharacterChoices Struct`

- Title
- Description
- Array of `ChoiceOption Struct`
- Index of selected choice. (default `-1`)

Make a `DataTable` to hold the `CharacterChoices Struct`. Fill this table with the choices you want available in your game.

In your `GameMode` create a new `Map of CharacterChoices` variable. On `BeginPlay` load the variable with default values of your choices `DataTable`.

Then you can lookup the choices in your gamemode’s table, and when someone makes a choice you can set the `Index of selected choice`.

If you include the variable in your save data, then this will become persistent.

Follow this on creating the save object. [Saving Your Game with Blueprints](https://docs.unrealengine.com/latest/INT/Gameplay/SaveGame/Blueprints/).
