# ChoiceScript Saving Plugin (Update: April 2023)

**URL:** <https://forum.choiceofgames.com/t/choicescript-saving-plugin-update-april-2023/983>\
**Category:** Game Development\
**Created:** [December 12, 2012, 2:57pm UTC](https://forum.choiceofgames.com/t/choicescript-saving-plugin-update-april-2023/983 "2012-12-12T14:57:54Z")\
**Posts on this page:** 20\
**Page:** 18

<div class="post-metadata">

**Author:** ![Silhuetta](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/silhuetta/32/24847_2.png) [@Silhuetta](https://forum.choiceofgames.com/u/Silhuetta)\
**Post date:** [May 23, 2016, 2:27am UTC](https://forum.choiceofgames.com/t/choicescript-saving-plugin-update-april-2023/983/343 "2016-05-23T02:27:39Z")

</div>

@Malebranche, here you go.

[quote]\*title The Tainted  
\*author A.G. a.k.a Silhuetta  
\*scene\_list  
startup  
prologue

\*label top  
\*sm\_init tainted | 4  
\*choice  
#Save  
\*label save  
\*choice  
#{savemod\_slot\_0} \*sm\_save 0 | false \*goto top #{savemod\_slot\_1}  
\*sm\_save 1 | true  
\*goto top  
#{savemod\_slot\_2} \*page\_break \*sm\_save 2 | true \*goto top #{savemod\_slot\_3}  
\*sm\_save 3 | true  
\*goto top  
#Return  
\*goto top  
#Load  
\*label load  
\*choice  
#{savemod\_slot\_0} \*sm\_load 0 | false \*goto top #{savemod\_slot\_1}  
\*sm\_load 1 | true  
\*goto top  
#{savemod\_slot\_2} \*sm\_load 2 | true \*goto top #{savemod\_slot\_3}  
\*sm\_load 3 | true  
\*goto top  
#Return  
\*goto top  
#Delete  
\*label delete  
\*choice  
#{savemod\_slot\_0} \*sm\_delete 0 \*goto top #{savemod\_slot\_1}  
\*sm\_delete 1  
\*goto top  
#{savemod\_slot\_2} \*sm\_delete 2 \*goto top #{savemod\_slot\_3}  
\*sm\_delete 3  
\*goto top  
#Return  
\*goto top

\*comment Player (basics) \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
\*create full\_name “John Doe”  
\*create firstname “John”  
\*create lastname “Doe”  
\*create gender “Unknown”  
\*create himher “him”  
\*create himher “her”  
\*create hisher “his”  
\*create hisher “her”  
\*create manwoman “man”  
\*create manwoman “woman”  
\*create hishers “hers”  
\*create heshe “he”  
\*create heshe “she”  
\*create boygirl “boy”  
\*create boygirl “girl”  
\*create mistermiss “Mister”  
\*create mistermiss “Miss”  
\*create himselfherself “himself”  
\*create himselfherself “herself”  
\*create race “Unknown”  
\*create position “Disoriented Civilian”  
\*create female false  
\*create male false  
\*create sex\_preference “Unknown”  
\*create skin\_color “Unknown”  
\*create hair\_color “Unknown”  
\*create eye\_color “Unknown”  
\*create body\_type “Unknown”  
\*create like\_males false  
\*create like\_females false  
\*create know\_about\_tainted false  
\*create employer\_name “Unknown”  
\*create legend\_name “Unknown”  
\*create know\_about\_cerebrum false  
\*create addiction\_to\_cerebrum false  
\*create health 75  
\*create has\_employer false  
\*create knows\_about\_insincerus false  
\*create know\_about\_pures false

\*comment Player (personality & morals) \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
\*create honest 50  
\*create idealistic 50  
\*create compassionate 50  
\*create ruthless 50  
\*create impulsive 50  
\*create sophistication 50  
\*create charming 50  
\*create stoic 50  
\*create vigilant 50  
\*create vagabond 50  
\*create humble 50  
\*create showy 50

\*comment etc. \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
\*create neighborhood\_pop 30

\*comment Player (skills) \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
\*create agility 0  
\*create resilience 0  
\*comment defense  
\*create astuteness 0  
\*create strength 0  
\*create persuasion 0  
\*comment based on the player’s ruthless/compassionate meter, the answer will either be  
\*comment intimidating or persuasive  
\*create leadership 0  
\*create stealth 0

\*comment Player (weapons) \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
\*create have\_melee false  
\*create have\_ranged false  
\*create have\_weapon false  
\*create weapon\_name “Unknown”  
\*create weapon\_type “Unknown”  
\*comment Ranged Weapons  
\*create colt 0  
\*create has\_colt false  
\*create pistol 0  
\*create has\_pistol false  
\*create revolver 0  
\*create has\_revolver false  
\*create sniper\_rifle 0  
\*create has\_sniperrifle false  
\*comment Melee Weapons  
\*create ax 0  
\*create has\_axe false  
\*create steelbat 0  
\*create has\_steelbat false  
\*create throwingknife 0  
\*create has\_throwingknife false  
\*create katana 0  
\*create has\_katana false  
\*create bastardsword 0  
\*create has\_bastardsword false

\*comment Challenges \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
\*create has\_challenges false  
\*create challenges “”  
\*create deaf false  
\*create mute false  
\*create migranes false  
\*create stunted\_growth false  
\*create blind false  
\*comment may erase above

\*comment Player (natural talents) \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
\*create has\_natural\_talent false  
\*create natural\_talent “Unknown”  
\*create lightning\_reflexes false  
\*create berserker false  
\*comment used to be extraordinary fighter  
\*create photographic\_memory false  
\*create lava\_hands false  
\*create spidey\_sense false  
\*comment sensing danger/other things  
\*create energy\_control false  
\*comment ability to control objects with mind

\*comment Player (relationships) \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
\*create samuel\_relationship 0  
\*create louis\_relationship 0  
\*create oliver\_relationship 0  
\*create kane\_relationship 0  
\*create raymond\_relationship 0  
\*create valarie\_relationship 0  
\*create hiro\_relationship 0  
\*create xeno\_relationship 0

\*comment variables ; chapter one \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
\*create has\_legend\_name false  
\*create nickname “Unknown”  
\*create has\_nickname false  
\*create found\_out\_tainted false  
\*create heard\_tainted\_lore false  
\*create story\_summarypro false  
\*create story\_summarych1 false [/quote]

---

<div class="post-metadata">

**Author:** ![Malebranche](https://avatars.discourse-cdn.com/v4/letter/m/94ad74/32.png) [@Malebranche](https://forum.choiceofgames.com/u/Malebranche)\
**Post date:** [May 23, 2016, 2:29am UTC](https://forum.choiceofgames.com/t/choicescript-saving-plugin-update-april-2023/983/344 "2016-05-23T02:29:47Z")

</div>

Here ya’ go! [Preconfigured](https://www.dropbox.com/s/it9fhucblm3m98y/PreConfigured%20CS.zip?dl=1).

Nah it’s alright, it’s easier t’let ya’ build off of that ^^ than to debug.

@Silhuetta Just delete the choice, you don’t need it there to have the menu pop in from the top, it already has all of those configured since it gets passed your game’s name and number of save slots from the `*sm_init` command.

---

<div class="post-metadata">

**Author:** ![Silhuetta](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/silhuetta/32/24847_2.png) [@Silhuetta](https://forum.choiceofgames.com/u/Silhuetta)\
**Post date:** [May 23, 2016, 2:33am UTC](https://forum.choiceofgames.com/t/choicescript-saving-plugin-update-april-2023/983/345 "2016-05-23T02:33:41Z")

</div>

So I only keep the sm\_init, then? All right, good to know. I’ll get it done tomorrow, cause it’s almost eleven over here.😁

Thanks for all the help so far.

---

<div class="post-metadata">

**Author:** ![Malebranche](https://avatars.discourse-cdn.com/v4/letter/m/94ad74/32.png) [@Malebranche](https://forum.choiceofgames.com/u/Malebranche)\
**Post date:** [May 23, 2016, 2:35am UTC](https://forum.choiceofgames.com/t/choicescript-saving-plugin-update-april-2023/983/346 "2016-05-23T02:35:01Z")

</div>

> [@Silhuetta](#):
>
> So I only keep the sm\_init, then?

Yep.

No problem, glad to be of service.

---

<div class="post-metadata">

**Author:** ![Silhuetta](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/silhuetta/32/24847_2.png) [@Silhuetta](https://forum.choiceofgames.com/u/Silhuetta)\
**Post date:** [May 23, 2016, 2:45am UTC](https://forum.choiceofgames.com/t/choicescript-saving-plugin-update-april-2023/983/347 "2016-05-23T02:45:42Z")

</div>

Screw doing it tomorrow, I’m too impatient!😝

![](https://66.media.tumblr.com/ba8d9a228818b32a6b79fe4832bfc7b4/tumblr_nq2a0hlYgV1tgn8dlo1_250.gif)

IT’S ALIVE!

@Malebranche thank you thank you thank you thank you thank you. Was that enough thank you’s? Seriously though, I wouldn’t have made it without your help.

---

<div class="post-metadata">

**Author:** ![CJW](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/cjw/32/111787_2.png) [@CJW](https://forum.choiceofgames.com/u/CJW)\
**Post date:** [May 23, 2016, 10:01am UTC](https://forum.choiceofgames.com/t/choicescript-saving-plugin-update-april-2023/983/348 "2016-05-23T10:01:09Z")

</div>

Thanks for helping them out @Malebranche.  
I think maybe I need to give the instructions a good rewrite.

---

<div class="post-metadata">

**Author:** ![Malebranche](https://avatars.discourse-cdn.com/v4/letter/m/94ad74/32.png) [@Malebranche](https://forum.choiceofgames.com/u/Malebranche)\
**Post date:** [May 23, 2016, 2:11pm UTC](https://forum.choiceofgames.com/t/choicescript-saving-plugin-update-april-2023/983/349 "2016-05-23T14:11:19Z")

</div>

Think nothing of it, anything for Senpai after all.

(Brain: God dammit man, I thought we were done with the Senpai jokes already?!

Me: Well, y’know, I did roll the resistance check, but it failed, so, whaddaya’ gonna do?

Brain: … _sigh_ )

---

<div class="post-metadata">

**Author:** ![Jacic](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/jacic/32/7061_2.png) [@Jacic](https://forum.choiceofgames.com/u/Jacic)\
**Post date:** [May 24, 2016, 1:26am UTC](https://forum.choiceofgames.com/t/choicescript-saving-plugin-update-april-2023/983/350 "2016-05-24T01:26:30Z")

</div>

Thanks so much @Malebranche! All working now I think 😃  
I just looked at the code and realised I misunderstood and have been I’ve been altering the wrong index file and didn’t need the choice code in the startup.

---

<div class="post-metadata">

**Author:** ![Charles\_Parkes](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/charles_parkes/32/13554_2.png) [@Charles\_Parkes](https://forum.choiceofgames.com/u/Charles_Parkes)\
**Post date:** [June 3, 2016, 6:04am UTC](https://forum.choiceofgames.com/t/choicescript-saving-plugin-update-april-2023/983/351 "2016-06-03T06:04:45Z")

</div>

Hi @CJW

This has been an enormous help - a really wonderful mod which has really improved my stories 😁 thank you.

I was just wondering whether there was a way for a reader to turn off the save system if they wanted to read in ‘single life mode’

I’m guessing that the answer is no 😌 but thought I’d ask in case there was anything massively obvious I was missing.

---

<div class="post-metadata">

**Author:** ![CJW](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/cjw/32/111787_2.png) [@CJW](https://forum.choiceofgames.com/u/CJW)\
**Post date:** [June 3, 2016, 8:56pm UTC](https://forum.choiceofgames.com/t/choicescript-saving-plugin-update-april-2023/983/352 "2016-06-03T20:56:32Z")

</div>

> [@CJW](#):
>
> If at any point you want to be cruel and disable saving you can also use the extra command:
> 
> \*sm\_menuaddon false
> 
> And of course, to re-enable saving:
> 
> \*sm\_menuaddon true

If you’re using the “menu addon”

---

<div class="post-metadata">

**Author:** ![Charles\_Parkes](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/charles_parkes/32/13554_2.png) [@Charles\_Parkes](https://forum.choiceofgames.com/u/Charles_Parkes)\
**Post date:** [June 3, 2016, 9:11pm UTC](https://forum.choiceofgames.com/t/choicescript-saving-plugin-update-april-2023/983/353 "2016-06-03T21:11:37Z")

</div>

AAHH it works! I think you may be my new hero @CJW (though you may have to take second place to @Vendetta 😉 )

---

<div class="post-metadata">

**Author:** ![CJW](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/cjw/32/111787_2.png) [@CJW](https://forum.choiceofgames.com/u/CJW)\
**Post date:** [June 3, 2016, 9:14pm UTC](https://forum.choiceofgames.com/t/choicescript-saving-plugin-update-april-2023/983/354 "2016-06-03T21:14:07Z")

</div>

An honoured second place indeed! 🙂

---

<div class="post-metadata">

**Author:** ![Magma](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/magma/32/24969_2.png) [@Magma](https://forum.choiceofgames.com/u/Magma)\
**Post date:** [June 23, 2016, 5:44am UTC](https://forum.choiceofgames.com/t/choicescript-saving-plugin-update-april-2023/983/355 "2016-06-23T05:44:28Z")

</div>

Hi there.

First of all thank you for your help.

When making big games this save system is a blessing.

I have tried to implement the save slot system alongside with the “normal one”.

The first 3 slots，which are the only ones that appear on the dropdown box would be for the player and the other 3 would be auto-saves at predetermined points.

These last 3 work fine，but the first 3 only seem to save at the start of the scene.

Which means that if the player saves afterwards，when loading they lose their progress.

Is there anything that can be done about it?

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![Magma](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/magma/32/24969_2.png) [@Magma](https://forum.choiceofgames.com/u/Magma)\
**Post date:** [June 23, 2016, 5:15pm UTC](https://forum.choiceofgames.com/t/choicescript-saving-plugin-update-april-2023/983/356 "2016-06-23T17:15:21Z")

</div>

Hmm, i have done additional testing and it seems to occur only on certain parts of the game.

Also, it happens when i click show stats, it returns not to the page where it was supposed to, but instead to the start of the chapter.

Perhaps it has nothing to do with the save system per se.

---

<div class="post-metadata">

**Author:** ![CJW](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/cjw/32/111787_2.png) [@CJW](https://forum.choiceofgames.com/u/CJW)\
**Post date:** [June 30, 2016, 8:47am UTC](https://forum.choiceofgames.com/t/choicescript-saving-plugin-update-april-2023/983/357 "2016-06-30T08:47:51Z")

</div>

Are you still experiencing this?

---

<div class="post-metadata">

**Author:** ![Magma](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/magma/32/24969_2.png) [@Magma](https://forum.choiceofgames.com/u/Magma)\
**Post date:** [June 30, 2016, 9:39am UTC](https://forum.choiceofgames.com/t/choicescript-saving-plugin-update-april-2023/983/358 "2016-06-30T09:39:32Z")

</div>

Nop. I found the issue. It happens when editing the scenes files only. If the files are closed its ok.

---

<div class="post-metadata">

**Author:** ![Interestedparty](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/interestedparty/32/4884_2.png) [@Interestedparty](https://forum.choiceofgames.com/u/Interestedparty)\
**Post date:** [August 17, 2016, 6:04pm UTC](https://forum.choiceofgames.com/t/choicescript-saving-plugin-update-april-2023/983/359 "2016-08-17T18:04:50Z")

</div>

I was able to get it working, but the sm\_init command sets up the Random Test whenever I try to scan my game for errors.  
I can get it working if I just temporarily remove the command whenever I test it, but is there a more convenient work-around that you know of?

---

<div class="post-metadata">

**Author:** ![Fiogan](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/fiogan/32/215832_2.png) [@Fiogan](https://forum.choiceofgames.com/u/Fiogan)\
**Post date:** [August 17, 2016, 6:35pm UTC](https://forum.choiceofgames.com/t/choicescript-saving-plugin-update-april-2023/983/360 "2016-08-17T18:35:04Z")

</div>

I always just comment out \*sm\_init until I’m ready to upload a compiled game for people to play–but I also don’t work in a live copy, and I only update once or twice a month normally, so I don’t find it too bothersome.

---

<div class="post-metadata">

**Author:** ![MahatmaDagon](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/mahatmadagon/32/18504_2.png) [@MahatmaDagon](https://forum.choiceofgames.com/u/MahatmaDagon)\
**Post date:** [February 2, 2017, 12:43am UTC](https://forum.choiceofgames.com/t/choicescript-saving-plugin-update-april-2023/983/361 "2017-02-02T00:43:15Z")

</div>

First time I’m hearing about this, just learned about it while updating my files at DashingDon. For a game as long as ours, this is certainly a must have.

I will try to see if I can get it to work @.@

---

<div class="post-metadata">

**Author:** ![Eric\_Moser](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/eric_moser/32/259257_2.png) [@Eric\_Moser](https://forum.choiceofgames.com/u/Eric_Moser)\
**Post date:** [February 2, 2017, 2:03am UTC](https://forum.choiceofgames.com/t/choicescript-saving-plugin-update-april-2023/983/362 "2017-02-02T02:03:54Z")

</div>

Stupid question but…

Seeing as how this thread is huge and goes back 5 years (and seems super complicated to a liberal arts guy like me), is there one specific post in the thread that walks us through the entire process that’s good as of 2017?

Please please say yes

[Previous page](https://forum.choiceofgames.com/t/choicescript-saving-plugin-update-april-2023/983.md?page=17)

[Next page](https://forum.choiceofgames.com/t/choicescript-saving-plugin-update-april-2023/983.md?page=19)
