# So when coding a Choice Script Game how do you make a Save Load Delete section?

**URL:** <https://forum.choiceofgames.com/t/so-when-coding-a-choice-script-game-how-do-you-make-a-save-load-delete-section/45384>\
**Category:** ChoiceScript Help\
**Created:** [October 24, 2018, 10:24pm UTC](https://forum.choiceofgames.com/t/so-when-coding-a-choice-script-game-how-do-you-make-a-save-load-delete-section/45384 "2018-10-24T22:24:04Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![kashidol](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/kashidol/32/96765_2.png) [@kashidol](https://forum.choiceofgames.com/u/kashidol)\
**Post date:** [October 24, 2018, 10:24pm UTC](https://forum.choiceofgames.com/t/so-when-coding-a-choice-script-game-how-do-you-make-a-save-load-delete-section/45384/1 "2018-10-24T22:24:04Z")

</div>

I’m trying to finish up on the game i’m working on but I hate it when there’s no Save Load Delete and I think anyone who plays will get that vibe too.

Does anyone know how to code it and where to put it?

---

<div class="post-metadata">

**Author:** ![Gabs](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/gabs/32/73930_2.png) [@Gabs](https://forum.choiceofgames.com/u/Gabs)\
**Post date:** [October 24, 2018, 10:55pm UTC](https://forum.choiceofgames.com/t/so-when-coding-a-choice-script-game-how-do-you-make-a-save-load-delete-section/45384/2 "2018-10-24T22:55:19Z")

</div>

In your startup.txt, add the line

```
*sm_init gamename | 3

```

Where gamename is a unique name for your game (so you don’t have a problem with overwriting saves from other games), and 3 is the number of saveslots (so you can change to 5, etc).

Edit: This is for games on dashingdon, which is what I assume you’re asking about? There’s also a checkbox to click in the game details (“enable saves” or whatever).

Edit 2: Note that, if you have this line in your code and you’re testing/previewing your game via index.html, you’ll get an error (Non-existent command ‘sm\_init’). So you can either add it in right before uploading, or do something like

```
*create privatetesting true
*if not(privatetesting)
	*sm_init gamename | 3

```

and then flip the true to false right before posting (which is helpful in that you can use privatetesting for other things, and/or just because you don’t have to look up the save command again).

---

<div class="post-metadata">

**Author:** ![poison\_mara](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/poison_mara/32/271676_2.png) [@poison\_mara](https://forum.choiceofgames.com/u/poison_mara)\
**Post date:** [October 24, 2018, 11:05pm UTC](https://forum.choiceofgames.com/t/so-when-coding-a-choice-script-game-how-do-you-make-a-save-load-delete-section/45384/3 "2018-10-24T23:05:26Z")

</div>

If you want make a save in your code without dashingdon you just have to follow the way in the wiki is easy wven if a little tiresome. And no very practical as dashingdon has the files adapted for the public

---

<div class="post-metadata">

**Author:** ![kashidol](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/kashidol/32/96765_2.png) [@kashidol](https://forum.choiceofgames.com/u/kashidol)\
**Post date:** [October 25, 2018, 12:56am UTC](https://forum.choiceofgames.com/t/so-when-coding-a-choice-script-game-how-do-you-make-a-save-load-delete-section/45384/4 "2018-10-25T00:56:32Z")

</div>

could you give me the link for that?

---

<div class="post-metadata">

**Author:** ![Szaal](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/szaal/32/112202_2.png) [@Szaal](https://forum.choiceofgames.com/u/Szaal)\
**Post date:** [October 25, 2018, 2:36am UTC](https://forum.choiceofgames.com/t/so-when-coding-a-choice-script-game-how-do-you-make-a-save-load-delete-section/45384/5 "2018-10-25T02:36:17Z")

</div>

If you’re talking about save system found in many WIPs, you can find it on [CJW’s save plugin](https://forum.choiceofgames.com/t/saving-system-plugin/983/). But to keep things simple, I’d suggest to follow the instruction as mentioned by @Gabs.

1. In `startup.txt`, put the code  
`*sm_init [yourgamenamehere] | [num of saveslot]`  
**Yourgamenamehere:** put any non-space text here. This keyword is used to differentiate save files between different games.  
**Num of saveslot:** any number. Zero won’t work, tho.
2. In your dashingdon homepage, go to your game menu. Go to Edit Details \> ☑ Check to use smPluginMenuAddon save plugin by CJW \> activate it \> Save.

---

<div class="post-metadata">

**Author:** ![anon8836198](https://avatars.discourse-cdn.com/v4/letter/a/e68b1a/32.png) [@anon8836198](https://forum.choiceofgames.com/u/anon8836198)\
**Post date:** [October 25, 2018, 3:07am UTC](https://forum.choiceofgames.com/t/so-when-coding-a-choice-script-game-how-do-you-make-a-save-load-delete-section/45384/6 "2018-10-25T03:07:28Z")

</div>

In addition to that, for a local save system you’ll have to type in paths to those 2 plugins into index.html for the non vanilla JS to hook. Otherwise it won’t work as CS won’t recognize sm\_init command.

---

<div class="post-metadata">

**Author:** ![Szaal](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/szaal/32/112202_2.png) [@Szaal](https://forum.choiceofgames.com/u/Szaal)\
**Post date:** [October 25, 2018, 3:15am UTC](https://forum.choiceofgames.com/t/so-when-coding-a-choice-script-game-how-do-you-make-a-save-load-delete-section/45384/7 "2018-10-25T03:15:39Z")

</div>

Oh, and download the JS file from the threadlink I linked previously!

---

<div class="post-metadata">

**Author:** ![kashidol](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/kashidol/32/96765_2.png) [@kashidol](https://forum.choiceofgames.com/u/kashidol)\
**Post date:** [October 25, 2018, 11:22am UTC](https://forum.choiceofgames.com/t/so-when-coding-a-choice-script-game-how-do-you-make-a-save-load-delete-section/45384/8 "2018-10-25T11:22:58Z")

</div>

I wasn’t gonna post it to dashington I was gonna send it to choice script games. I just didnt know if I could put a save load delete section on it

---

<div class="post-metadata">

**Author:** ![poison\_mara](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/poison_mara/32/271676_2.png) [@poison\_mara](https://forum.choiceofgames.com/u/poison_mara)\
**Post date:** [October 25, 2018, 11:53am UTC](https://forum.choiceofgames.com/t/so-when-coding-a-choice-script-game-how-do-you-make-a-save-load-delete-section/45384/9 "2018-10-25T11:53:08Z")

</div>

Remember Cog doesn’t support sve files system so to send to them you have to erase it from your files i think.

---

<div class="post-metadata">

**Author:** ![Szaal](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/szaal/32/112202_2.png) [@Szaal](https://forum.choiceofgames.com/u/Szaal)\
**Post date:** [October 25, 2018, 11:58am UTC](https://forum.choiceofgames.com/t/so-when-coding-a-choice-script-game-how-do-you-make-a-save-load-delete-section/45384/10 "2018-10-25T11:58:02Z")

</div>

Ah, in that case, you have to follow @poison_mara’s suggestion on creating your own save system. It’s not a complex process, but you need to set yourself a creative mind.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/choiceofgames/original/3X/e/f/efe1497a762edecdb6d569a1c4abee87508bf002.png) [@system](https://forum.choiceofgames.com/u/system)\
**Post date:** [December 24, 2021, 4:47pm UTC](https://forum.choiceofgames.com/t/so-when-coding-a-choice-script-game-how-do-you-make-a-save-load-delete-section/45384/11 "2021-12-24T16:47:05Z")

</div>

This topic was automatically closed 24 hours after the last reply. If you want to reopen your WiP, contact the moderators.
