Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How do I make a story game?
- The_Crimson_Queen
-
Scratcher
3 posts
How do I make a story game?
What I mean by my question is, how can I let a player write a story and let them save it? I also want to know how I can write a story and have it saved and then show up for the player at a certain point in the game. Please help! 
8/21/22 at 12:35 PM EST

8/21/22 at 12:35 PM EST
- Quitreadinthis
-
Scratcher
12 posts
How do I make a story game?
Hello, to make a saveable game, you need to use Cloud Variables, once you do so there are many tutorials on how to have save files in scratch.
- The_Crimson_Queen
-
Scratcher
3 posts
How do I make a story game?
Hello, to make a saveable game, you need to use Cloud Variables, once you do so there are many tutorials on how to have save files in scratch.Hmm, ty. I'll try it out
- lion334
-
Scratcher
100+ posts
How do I make a story game?
Hi, this is lion334Hello, to make a saveable game, you need to use Cloud Variables, once you do so there are many tutorials on how to have save files in scratch.Hmm, ty. I'll try it out
So making this is really complicated, and nothing you shouldn't try if you don't have deep Scratch knowledge. Scratch doesn't support any letters in Cloud Variables due to them not wanting Chatrooms. However, you can code a Decoder & Encoder to convert text into Numbers, and then converting that back. My way of doing this (example my Game “LonelyDefender” which has a Leaderboard with Name in the Saloon or my game “Red Dead Redemption2”, where you get SaveSlots due to Progress, Username Recognition inclusive), is by making two lists, one consisting of three-digit-numbers: 001, 002, 003, etc…, and the other one consisting of abcdefg…, 123456….
Then, you translate every single Letter of your message using the two lists, using the “Item # of”:

Img1: The Lists used for Encoding/Decoding

Img2: Complicated use of my Encode/Decode function
Keep in mind that this may take you a “moment” to understand & Code.
It took me a long time as well.
Sincerely, lion334
- lion334
-
Scratcher
100+ posts
How do I make a story game?
Nevermiiiiiiind after all of that I realized u said “in the game”, meaning there's no need for cloud vars… (I'll let the upper message still here due to it taking me too long and due to it being helpful…)
Alright, once again…
Simple solution:
Later:
Sorry again for misunderstanding, hopefully this here is helpful though
Alright, once again…
Simple solution:
ask [write ur story] and wait
set [Var] to (answer)
Later:
say (join [Hi, here's ur story: ] [(Var)])
Sorry again for misunderstanding, hopefully this here is helpful though

- The_Crimson_Queen
-
Scratcher
3 posts
How do I make a story game?
Nevermiiiiiiind after all of that I realized u said “in the game”, meaning there's no need for cloud vars… (I'll let the upper message still here due to it taking me too long and due to it being helpful…)
Alright, once again…
Simple solution:ask [write ur story] and wait
set [Var] to (answer)
Later:say (join [Hi, here's ur story: ] [(Var)])
Sorry again for misunderstanding, hopefully this here is helpful though
Thank you! This is very helpful!!
- Discussion Forums
- » Help with Scripts
-
» How do I make a story game?


