How to find out the amount of certain items in a list
id: 750026
category: Help with Scripts
posts: 3
Mar 25, 2024 03:13:39
How to find out the amount of certain items in a list
view on scratch
view on legacy ocular
Bord89
loading
Im trying to make a game and I the inventory list to be like “Name x4”
Im trying to get the amount of said Name via list but it just doesn't work, can anybody help??
Im trying to get the amount of said Name via list but it just doesn't work, can anybody help??
Mar 25, 2024 03:29:34
How to find out the amount of certain items in a list
view on scratch
view on legacy ocular
malicondii
loading
set [i v] to (1)
set [count v] to (0)
repeat (length of [list v])
If <(item (I) of [list v]) = (whatever)> then
Change [count v] by (1)
end
change [i v] by (1)
end
Mar 25, 2024 03:35:41
How to find out the amount of certain items in a list
view on scratch
view on legacy ocular
Wolf_Link21
loading
I think I did what you wanted. https://scratch.mit.edu/projects/988969591/