Discuss Scratch

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”

SomeRandomStickboy
Scratcher
23 posts

"LIST" IMPROVEMENTS!!!

Seems good, I can agree.
space_elephant
Scratcher
500+ posts

"LIST" IMPROVEMENTS!!!

It should be
([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.
stickfiregames
Scratcher
1000+ posts

"LIST" IMPROVEMENTS!!!

(number of [] in [list v] :: list)
(position of (first v) [] in [list v] :: list) // first, last, or any number
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.
medians
Scratcher
1000+ posts

"LIST" IMPROVEMENTS!!!

stickfiregames wrote:

(number of [] in [list v] :: list)
(position of (first v) [] in [list v] :: list) // first, last, or any number
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.
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:
position of (number of [thing] in [list v]::list) in [list v]::list reporter

Last edited by medians (Aug. 3, 2024 21:58:57)

AllenderaGames
Scratcher
100+ posts

"LIST" IMPROVEMENTS!!!

I support you bro
MillionOfficial
Scratcher
500+ posts

"LIST" IMPROVEMENTS!!!

AllenderaGames wrote:

I support you bro
Thx
ThisIsTemp1
Scratcher
1000+ posts

"LIST" IMPROVEMENTS!!!

MillionOfficial wrote:

wolfdog3155 wrote:

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!!!

MillionOfficial wrote:

AllenderaGames wrote:

I support you bro
Thx
also i didn't understanded correctlly can u explain it better to me
WindowsAdmin
Scratcher
1000+ posts

"LIST" IMPROVEMENTS!!!

MillionOfficial wrote:

wolfdog3155 wrote:

I need awy to privately message someone.
Use blocklive
If you are on mobile,
when green flag clicked
if <(username) = [whoever you wanna message]> then
say [what you wanna say to the user]
end
But 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.
That is a post from 2017

Powered by DjangoBB