Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Upgrades storing
- 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
- 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/
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/
- scratchusername40
-
Scratcher
1000+ posts
Upgrades storing
(#5)I also made this exact thing once: https://scratch.mit.edu/projects/559617939/
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/
Obviously you can use the code as much as you want.
Last edited by scratchusername40 (Feb. 29, 2024 19:55:08)
- Discussion Forums
- » Help with Scripts
-
» Upgrades storing


