Discuss Scratch
- Discussion Forums
- » Suggestions
- » "LIST" IMPROVEMENTS!!!
- markoalex
-
Scratcher
25 posts
"LIST" IMPROVEMENTS!!!
I HAD A LITTLE BIT OF TROUBLE USING THE "LIST" IN MY LAST PROJECT https://scratch.mit.edu/projects/144718343/
HERE ARE SOME COOL ADITIONS:
(NUMBER OF :THING) how many of “thing” are there?
(NUMBER OF :THING) the position of “thing”
HERE ARE SOME COOL ADITIONS:
(NUMBER OF :THING) how many of “thing” are there?
(NUMBER OF :THING) the position of “thing”
- space_elephant
-
Scratcher
500+ posts
"LIST" IMPROVEMENTS!!!
It should be
Otherwise, support
([first v]index of[thing]in[list v]::list)because it might be in the list many times.
Otherwise, support
- muellly
-
Scratcher
1000+ posts
"LIST" IMPROVEMENTS!!!
I support!
The second one would be really useful in games where you find stuff, then you have to use certain items to progress though the game as right now you have to make a list that basically says you have nothing right now.
The second one would be really useful in games where you find stuff, then you have to use certain items to progress though the game as right now you have to make a list that basically says you have nothing right now.
- stickfiregames
-
Scratcher
1000+ posts
"LIST" IMPROVEMENTS!!!
(number of [] in [list v] :: list)Support. If the second block can't find it, or there are less of the item than the number the user entered, it should return 0 or just nothing. If the position input is negative it should count backwards from the end.
(position of (first v) [] in [list v] :: list) // first, last, or any number
- medians
-
Scratcher
1000+ posts
"LIST" IMPROVEMENTS!!!
If the position of list block (I know the item # of block exists now, but that only reports the item number of the first instance in the list) existed, as well as the other block, then you could do this to get the last:(number of [] in [list v] :: list)Support. If the second block can't find it, or there are less of the item than the number the user entered, it should return 0 or just nothing. If the position input is negative it should count backwards from the end.
(position of (first v) [] in [list v] :: list) // first, last, or any number
position of (number of [thing] in [list v]::list) in [list v]::list reporter
Last edited by medians (Aug. 3, 2024 21:58:57)
- ThisIsTemp1
-
Scratcher
1000+ posts
"LIST" IMPROVEMENTS!!!
I need awy to privately message someone.Use (removed-please do not name browser extensions)
If you are on mobile,
(removed- allows private messaging)
But this code won’t work alone. I recommend (removed- doing this can break the terms of use) to make your code invisible. That way, seeing inside will not help.
Doing this is against the Terms of Use, which breaking gets you a ban.
Last edited by ThisIsTemp1 (Aug. 4, 2024 23:46:01)
- AllenderaGames
-
Scratcher
100+ posts
"LIST" IMPROVEMENTS!!!
also i didn't understanded correctlly can u explain it better to meI support you broThx
- WindowsAdmin
-
Scratcher
1000+ posts
"LIST" IMPROVEMENTS!!!
That is a post from 2017I need awy to privately message someone.Use blocklive
If you are on mobile,when green flag clickedBut this code won’t work alone. I recommend this tutorial or this tutorial to make your code invisible. That way, seeing inside will not help.
if <(username) = [whoever you wanna message]> then
say [what you wanna say to the user]
end
- Discussion Forums
- » Suggestions
-
» "LIST" IMPROVEMENTS!!!










