Discuss Scratch

secretshrek
Scratcher
79 posts

Upgrades storing

you can store upgrade cost values multi in 1list every upgrade has own list with storing upgrade data there is sprite that stores every upgrade and multiplys variables and it stores every upgrade button
secretshrek
Scratcher
79 posts

Upgrades storing

problem is to how to store every upgrade in 1list
sashimiricedev
Scratcher
100+ posts

Upgrades storing

What exactly do you need help with? You haven't exactly stated a problem for us to fix.
secretshrek
Scratcher
79 posts

Upgrades storing

problem is is it possible to store every upgrade things data in 1 list without problems
sashimiricedev
Scratcher
100+ posts

Upgrades storing

Yes. Although Scratch itself does not have the ability to store lists in lists, there is a workaround

Using sublists, you can join multiple pieces together in a list and then split them.

For example, I have the list in a sublist.

The sublist could look like this

5&3&2&7

I could then split it apart into multiple lists with a read block to get



Here is a project that should help you https://scratch.mit.edu/projects/974389477/
secretshrek
Scratcher
79 posts

Upgrades storing

thanks for help sashimiricedev
scratchusername40
Scratcher
1000+ posts

Upgrades storing

sashimiricedev wrote:

(#5)
Yes. Although Scratch itself does not have the ability to store lists in lists, there is a workaround

Using sublists, you can join multiple pieces together in a list and then split them.

For example, I have the list in a sublist.

The sublist could look like this

5&3&2&7

I could then split it apart into multiple lists with a read block to get



Here is a project that should help you https://scratch.mit.edu/projects/974389477/
I also made this exact thing once: https://scratch.mit.edu/projects/559617939/
Obviously you can use the code as much as you want.

Last edited by scratchusername40 (Feb. 29, 2024 19:55:08)

Powered by DjangoBB