Discuss Scratch

Iamkotlcfan
Scratcher
48 posts

save codes for lists

hello, is there a way 2 make a save code for lists? or any way to save lists, so that you can give someone else the code and they can see it?

but is there a way that it generates a random savecode each time?
j_a_n_t_i
Scratcher
500+ posts

save codes for lists

Iamkotlcfan wrote:

but is there a way that it generates a random savecode each time?
Yes, but on each code must be a list code. For example:
1278357843780978
Program reads only underlined text.
Iamkotlcfan
Scratcher
48 posts

save codes for lists

and how would the code go?

Last edited by Iamkotlcfan (June 1, 2021 07:17:49)

MasterofTheBrick
Scratcher
1000+ posts

save codes for lists

Hi, this Wiki Page should help.

As for randomizing the savecodes, it will be slightly more inconvenient as a separate script will be needed to assign the random code to the actual savecode.
For example, if my actual savecode is 123, and you desire a random number instead, a list can be used to track and assign the corresponding codes.

add [123] to [list v]
add (pick random (1) to (1000)) to [list v]

This method will need to store the data in cloud variables by converting the list into numbers. Cloud lists are possible to code, but are extremely complicated. I would suggest going with the normal savecode without randomizing it, however if you are still interested please refer to this page to find out more.

Last edited by MasterofTheBrick (June 1, 2021 07:27:19)

Iamkotlcfan
Scratcher
48 posts

save codes for lists

could someone make an example project? i am not the best coder, sorry.
Iamkotlcfan
Scratcher
48 posts

save codes for lists

and it is also ok if the code just changes by one everytime. the random part isnt important
MasterofTheBrick
Scratcher
1000+ posts

save codes for lists

This project should be helpful. https://scratch.mit.edu/projects/471509671/

To clarify any doubts, save codes are not generated in order (e.g. 1,2,3), but are rather made based on the elements based in the project.
For example, you had completed a game up till level 4, stage 1. The savecode would then be 41, and the import script would identify the first number (4) as the level number and the second number (1) as the stage number.

Last edited by MasterofTheBrick (June 1, 2021 08:26:34)

1010101O1jr
Scratcher
27 posts

save codes for lists

Um heres an example project. scratch.mit.edu/projects/524303022

Powered by DjangoBB