Discuss Scratch

TheToasterScratch
Scratcher
73 posts

How do I add more to a preexisting item in a list?

I'm making a save code that i'm trying to encrypt, and can't quite get it to work. Here is an example

whenskeypressedaddPlaceholder1tolist

whenthisspriteclickedifCharacters Unlockedcontainscharacter1?then

The problem is, I need to add an encrypt such as: 03iow4hernfsigy to Placeholder 1, but cannot figure out how to do so.
The end Result should Look something like this, if you can figure it out:
Placeholder 1 03iow4hernfsigy

Last edited by TheToasterScratch (Oct. 18, 2024 17:56:29)

TheToasterScratch
Scratcher
73 posts

How do I add more to a preexisting item in a list?

Also, Would the list have to be a cloud list?
Outside-Coder
New Scratcher
18 posts

How do I add more to a preexisting item in a list?

One of the easiest ways to make a save code without using cloud blocks would be to use variables. Give your characters variables and separate them using zeroes or something like that. You could then use math to make the code look more random. For example, if two of the characters were unlocked, you would want the variable to be two. When you give them the code, you could multiply the current variable by - Example - 438 then subtract 5. When they import a code you could subtract the code by 5, then divide by 438 to get the same thing as the original variable. You could separate the code using | or code it so that it recognizes a certain string of numbers such as 098763677798798. When it would recognize this it would realize this and remove it, being left with two codes that it could convert into variables. This probably sounded really complicated, and it's too much for me to code in discussion, so your best bet might just be to follow griffpatch's save code video.

Powered by DjangoBB