Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Prevent lists from resetting
- UnscrambledEgg
-
Scratcher
100+ posts
Prevent lists from resetting
Hi guys, is it possible to prevent a list from resetting after I leave a project and rejoin it? Thank you.
- SpyCoderX
-
Scratcher
1000+ posts
Prevent lists from resetting
What do you mean? If you save the project, all variables and lists should be saved as well.
- Norse7
-
Scratcher
100+ posts
Prevent lists from resetting
What do you mean?Yes, I agree, some more detail would be nice.
- UnscrambledEgg
-
Scratcher
100+ posts
Prevent lists from resetting
What do you mean? If you save the project, all variables and lists should be saved as well.Well, if a player adds a new item to the list, leaves the project and goes back to the project (like deleting the tab, making a new one and going back to the project) then the variable wouldn't be the same as what they set. It resets.
- Fluffygamer_
-
Scratcher
1000+ posts
Prevent lists from resetting
(#4)it's the principe of a variable. However, you can use cloud variables for this ! To create a clou variable, there is an option in the new variable menu :What do you mean? If you save the project, all variables and lists should be saved as well.Well, if a player adds a new item to the list, leaves the project and goes back to the project (like deleting the tab, making a new one and going back to the project) then the variable wouldn't be the same as what they set. It resets.

(my scratch is put to french but it's the same as english)
However, remember that cloud variables can only store numbers, not letters or symbols.
To use them, there are a lot of tutorials on youtube.
- --CHA0S--
-
Scratcher
100+ posts
Prevent lists from resetting
You could also use a save code that a player can copy and paste back into the project that restores their previous data. It is commonly done by encoding the values you want into numbers, then a break in between values saved, I use 00 for my breaker. Then you let the player save it. Then to use the code the player pastes the code and you decode the numbers and set the certain variables to the correct values.
- UnscrambledEgg
-
Scratcher
100+ posts
Prevent lists from resetting
https://scratch.mit.edu/projects/995823775/
This is the project which I speak of, it already uses cloud variables.
This is the project which I speak of, it already uses cloud variables.
(#4)it's the principe of a variable. However, you can use cloud variables for this ! To create a clou variable, there is an option in the new variable menu :What do you mean? If you save the project, all variables and lists should be saved as well.Well, if a player adds a new item to the list, leaves the project and goes back to the project (like deleting the tab, making a new one and going back to the project) then the variable wouldn't be the same as what they set. It resets.
(my scratch is put to french but it's the same as english)
However, remember that cloud variables can only store numbers, not letters or symbols.
To use them, there are a lot of tutorials on youtube.
- UnscrambledEgg
-
Scratcher
100+ posts
Prevent lists from resetting
You could also use a save code that a player can copy and paste back into the project that restores their previous data. It is commonly done by encoding the values you want into numbers, then a break in between values saved, I use 00 for my breaker. Then you let the player save it. Then to use the code the player pastes the code and you decode the numbers and set the certain variables to the correct values.This is hackable though
- Malicondi
-
Scratcher
1000+ posts
Prevent lists from resetting
This is hackable thoughSo are cloud variables. You can always make a complicated save system the people playing can't understand, so then it can't be hacked easily.
- Fluffygamer_
-
Scratcher
1000+ posts
Prevent lists from resetting
(#9)And if you REALLY don't want them to cheat, you can hide your code. But it's really complicated.This is hackable thoughSo are cloud variables. You can always make a complicated save system the people playing can't understand, so then it can't be hacked easily.
- MineTurte
-
Scratcher
1000+ posts
Prevent lists from resetting
Be careful when speaking of doing that. Pretty sure it's against TOS to teach people how to do that (or even really say any searchable information about it).(#9)And if you REALLY don't want them to cheat, you can hide your code. But it's really complicated.This is hackable thoughSo are cloud variables. You can always make a complicated save system the people playing can't understand, so then it can't be hacked easily.
- Fluffygamer_
-
Scratcher
1000+ posts
Prevent lists from resetting
(#11)It's not dangerous at all to make it, so I don't understand why ?Be careful when speaking of doing that. Pretty sure it's against TOS to teach people how to do that (or even really say any searchable information about it).(#9)And if you REALLY don't want them to cheat, you can hide your code. But it's really complicated.This is hackable thoughSo are cloud variables. You can always make a complicated save system the people playing can't understand, so then it can't be hacked easily.
- MineTurte
-
Scratcher
1000+ posts
Prevent lists from resetting
I mean teaching people how to edit the JSON file(#11)It's not dangerous at all to make it, so I don't understand why ?Be careful when speaking of doing that. Pretty sure it's against TOS to teach people how to do that (or even really say any searchable information about it).(#9)And if you REALLY don't want them to cheat, you can hide your code. But it's really complicated.This is hackable thoughSo are cloud variables. You can always make a complicated save system the people playing can't understand, so then it can't be hacked easily.
- --CHA0S--
-
Scratcher
100+ posts
Prevent lists from resetting
Not if you expose their username and not allow the process to continue if the username of the code doesn’t equal the players usernameYou could also use a save code that a player can copy and paste back into the project that restores their previous data. It is commonly done by encoding the values you want into numbers, then a break in between values saved, I use 00 for my breaker. Then you let the player save it. Then to use the code the player pastes the code and you decode the numbers and set the certain variables to the correct values.This is hackable though
- MineTurte
-
Scratcher
1000+ posts
Prevent lists from resetting
You can just change the username in the code _skull_Not if you expose their username and not allow the process to continue if the username of the code doesn’t equal the players usernameYou could also use a save code that a player can copy and paste back into the project that restores their previous data. It is commonly done by encoding the values you want into numbers, then a break in between values saved, I use 00 for my breaker. Then you let the player save it. Then to use the code the player pastes the code and you decode the numbers and set the certain variables to the correct values.This is hackable though
- UnscrambledEgg
-
Scratcher
100+ posts
Prevent lists from resetting
Interesting, I'll do thatThis is hackable thoughSo are cloud variables. You can always make a complicated save system the people playing can't understand, so then it can't be hacked easily.
- Fluffygamer_
-
Scratcher
1000+ posts
Prevent lists from resetting
(#13)I wasn't gonna teach itI mean teaching people how to edit the JSON file(#11)It's not dangerous at all to make it, so I don't understand why ?Be careful when speaking of doing that. Pretty sure it's against TOS to teach people how to do that (or even really say any searchable information about it).(#9)And if you REALLY don't want them to cheat, you can hide your code. But it's really complicated.This is hackable thoughSo are cloud variables. You can always make a complicated save system the people playing can't understand, so then it can't be hacked easily.![]()
- Discussion Forums
- » Help with Scripts
-
» Prevent lists from resetting






