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
500+ posts
Prevent lists from resetting
What do you mean? If you save the project, all variables and lists should be saved as well.
New game! (link)
Have a good day/night!
\(-_-) ::#00AAAA //This is crypto. He protects my signature from the evil kumquats!Programming is a very powerful skill. As are critical thinking and hard work.
- SpyCoderX
- Norse7
- Scratcher
67 posts
Prevent lists from resetting
Yes, I agree, some more detail would be nice. What do you mean?
“It’s not a bug; it’s an undocumented feature.” ― Anonymous
when green flag clicked
forever
change [ awesomeness] by (1)
end
- UnscrambledEgg
- Scratcher
100+ posts
Prevent lists from resetting
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. What do you mean? If you save the project, all variables and lists should be saved as well.
- 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 :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. What do you mean? If you save the project, all variables and lists should be saved as well.
(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.
BREAKING NEWSCredit to @jmdzti_0-0
The evil kumquats have rebelled and now they don't just eat signatures.
NOW THEY EAT YOUR «MY STUFF» PAGE AND OTHER 2.0 UI PAGES !
BLOCKS ARMY :
((0) - (0)) // This is Zero. He protects my signature from evil kumquats
------(:-:)------ :: pen // This is Bumpa. She bumps my topics when necessary. She also have a few skills at fighting since Zero taught her.
(O(w :: variables)O :: sensing) // This is Dogee. He helps me doing projects
('-' :: list) // This is Little. She verify that evil kumquats aren't coming.
° ° :: #0055ff // This is 2S. He is the best animator I never seen on scratch. His account is Scratcheurscratch (https://scratch.mit.edu/users/Scratcheurscratch)
when green flag clicked :: cap // This is Soja. I don't know if it's a boy or a girl but who cares ? Soja often draw thumbnails for my projects.
- --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.
Hi
Trying to become a forum helper
- 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 :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. What do you mean? If you save the project, all variables and lists should be saved as well.
(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
This is hackable though 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.
- Malicondi
- Scratcher
1000+ posts
Prevent lists from resetting
So 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. This is hackable though
post #1000 post #100 i help in the forums post #1 post #500 0 second ninja
I recommend reading jvvg's essay about the scratch team before complaining, as it may change your opinion and provide insight on the topic.
coming soon :)
I recommend reading jvvg's essay about the scratch team before complaining, as it may change your opinion and provide insight on the topic.
coming soon :)
- 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.So 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. This is hackable though
BREAKING NEWSCredit to @jmdzti_0-0
The evil kumquats have rebelled and now they don't just eat signatures.
NOW THEY EAT YOUR «MY STUFF» PAGE AND OTHER 2.0 UI PAGES !
BLOCKS ARMY :
((0) - (0)) // This is Zero. He protects my signature from evil kumquats
------(:-:)------ :: pen // This is Bumpa. She bumps my topics when necessary. She also have a few skills at fighting since Zero taught her.
(O(w :: variables)O :: sensing) // This is Dogee. He helps me doing projects
('-' :: list) // This is Little. She verify that evil kumquats aren't coming.
° ° :: #0055ff // This is 2S. He is the best animator I never seen on scratch. His account is Scratcheurscratch (https://scratch.mit.edu/users/Scratcheurscratch)
when green flag clicked :: cap // This is Soja. I don't know if it's a boy or a girl but who cares ? Soja often draw thumbnails for my projects.
- MineTurte
- Scratcher
500+ 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.So 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. This is hackable though
15+ (not revealing age) girl. Pronouns are she/her.
Host of The Pi Counsel. Comment in studio to join.
Front-end web developer & software programmer. I use JS, HTML, & CSS. Learning python3 right now.
Grammar fanatic as well
If I helped you out consider following Juni-Bug!
Select this + shift + down arrow = view rest of signature
This is JuniperActias. AKA Moth mommy.
Signature gradients here
If you found this secret; reply with ‘uwu’ with absolutely no context
Host of The Pi Counsel. Comment in studio to join.
Front-end web developer & software programmer. I use JS, HTML, & CSS. Learning python3 right now.
Grammar fanatic as well
If I helped you out consider following Juni-Bug!
Select this + shift + down arrow = view rest of signature
This is JuniperActias. AKA Moth mommy.
Signature gradients here
If you found this secret; reply with ‘uwu’ with absolutely no context
- 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.So 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. This is hackable though
BREAKING NEWSCredit to @jmdzti_0-0
The evil kumquats have rebelled and now they don't just eat signatures.
NOW THEY EAT YOUR «MY STUFF» PAGE AND OTHER 2.0 UI PAGES !
BLOCKS ARMY :
((0) - (0)) // This is Zero. He protects my signature from evil kumquats
------(:-:)------ :: pen // This is Bumpa. She bumps my topics when necessary. She also have a few skills at fighting since Zero taught her.
(O(w :: variables)O :: sensing) // This is Dogee. He helps me doing projects
('-' :: list) // This is Little. She verify that evil kumquats aren't coming.
° ° :: #0055ff // This is 2S. He is the best animator I never seen on scratch. His account is Scratcheurscratch (https://scratch.mit.edu/users/Scratcheurscratch)
when green flag clicked :: cap // This is Soja. I don't know if it's a boy or a girl but who cares ? Soja often draw thumbnails for my projects.
- MineTurte
- Scratcher
500+ 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.So 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. This is hackable though
15+ (not revealing age) girl. Pronouns are she/her.
Host of The Pi Counsel. Comment in studio to join.
Front-end web developer & software programmer. I use JS, HTML, & CSS. Learning python3 right now.
Grammar fanatic as well
If I helped you out consider following Juni-Bug!
Select this + shift + down arrow = view rest of signature
This is JuniperActias. AKA Moth mommy.
Signature gradients here
If you found this secret; reply with ‘uwu’ with absolutely no context
Host of The Pi Counsel. Comment in studio to join.
Front-end web developer & software programmer. I use JS, HTML, & CSS. Learning python3 right now.
Grammar fanatic as well
If I helped you out consider following Juni-Bug!
Select this + shift + down arrow = view rest of signature
This is JuniperActias. AKA Moth mommy.
Signature gradients here
If you found this secret; reply with ‘uwu’ with absolutely no context
- --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 usernameThis is hackable though 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.
Hi
Trying to become a forum helper
- MineTurte
- Scratcher
500+ 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 usernameThis is hackable though 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.
15+ (not revealing age) girl. Pronouns are she/her.
Host of The Pi Counsel. Comment in studio to join.
Front-end web developer & software programmer. I use JS, HTML, & CSS. Learning python3 right now.
Grammar fanatic as well
If I helped you out consider following Juni-Bug!
Select this + shift + down arrow = view rest of signature
This is JuniperActias. AKA Moth mommy.
Signature gradients here
If you found this secret; reply with ‘uwu’ with absolutely no context
Host of The Pi Counsel. Comment in studio to join.
Front-end web developer & software programmer. I use JS, HTML, & CSS. Learning python3 right now.
Grammar fanatic as well
If I helped you out consider following Juni-Bug!
Select this + shift + down arrow = view rest of signature
This is JuniperActias. AKA Moth mommy.
Signature gradients here
If you found this secret; reply with ‘uwu’ with absolutely no context
- UnscrambledEgg
- Scratcher
100+ posts
Prevent lists from resetting
Interesting, I'll do thatSo 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. This is hackable though
- 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.So 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. This is hackable though
BREAKING NEWSCredit to @jmdzti_0-0
The evil kumquats have rebelled and now they don't just eat signatures.
NOW THEY EAT YOUR «MY STUFF» PAGE AND OTHER 2.0 UI PAGES !
BLOCKS ARMY :
((0) - (0)) // This is Zero. He protects my signature from evil kumquats
------(:-:)------ :: pen // This is Bumpa. She bumps my topics when necessary. She also have a few skills at fighting since Zero taught her.
(O(w :: variables)O :: sensing) // This is Dogee. He helps me doing projects
('-' :: list) // This is Little. She verify that evil kumquats aren't coming.
° ° :: #0055ff // This is 2S. He is the best animator I never seen on scratch. His account is Scratcheurscratch (https://scratch.mit.edu/users/Scratcheurscratch)
when green flag clicked :: cap // This is Soja. I don't know if it's a boy or a girl but who cares ? Soja often draw thumbnails for my projects.
- Discussion Forums
- » Help with Scripts
- » Prevent lists from resetting