Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Help With Copying List!
- U1217791
-
New Scratcher
9 posts
Help With Copying List!
Sorry I've been posting a lot in this forum lately, but I've just been having a lot of trouble with using the lists in scratch. So, what I'm trying to do is make a loop for I can transfer items from one list to another list, where they have the same index number. It's all in the same game and I understand how to transfer one item, but it's just getting it in the loop of transfer the rest for it can do it for however many items are stored in the list.
- mstone326
-
Scratcher
1000+ posts
Help With Copying List!
You can create the master list and use a variable to transfer each item from master to copy.
set [index v] to [0]
repeat (length of [master v] :: list)
change [index v] by (1)
add (item (index) of [master v] :: list) to [copy list v]
end
- gokublue86
-
Scratcher
6 posts
Help With Copying List!
I have a problem with lists. It's that i can't copy the whole list. For example,
Usually if the list is this long it shows 3 dots to represent that there is more. Like this
123456787654321234567654321234567865432123456789765432123456787654321 then, …
But, I cant copy the things that don't show
add [29138210382914798124788126492164821647836184763287468162783628736271] to [test]
Usually if the list is this long it shows 3 dots to represent that there is more. Like this
123456787654321234567654321234567865432123456789765432123456787654321 then, …
But, I cant copy the things that don't show
Last edited by gokublue86 (May 12, 2023 11:32:49)
- Discussion Forums
- » Help with Scripts
-
» Help With Copying List!





