Discuss Scratch

___DemonZ___
Scratcher
11 posts

How to save numbers on lists

I'm making a game but i need to save numbers and each of them tobe on a different list number. Can you help me?
jettypumpkin07
Scratcher
1000+ posts

How to save numbers on lists

If your trying to add numbers to a list separately, it's easy!
Just use the following code:
add (number) to [list v]

Or if you want random numbers in a list:
add (pick random (1) to (10)) to [list v]

Last edited by jettypumpkin07 (Feb. 13, 2020 01:44:44)


-jettypumpkin07 Profile ~ GitHub ~ Wiki Edits ~ Stats ~ Posts
I haven't really been active much since 2021. I now mostly look at / help with other people's projects, answer questions on the forums and work on stuff in other programming languages like JavaScript. Scratch is still awesome and I don't think I'll be leaving it any time soon. <3


Check out ocular, a Scratch forum search tool by jeffalo that helps find lost posts, or the Hidden Blocks TurboWarp extension I helped create that has a bunch of useful hacked blocks ready to add to your Scratch projects. (PR for details, see the Hidden Blocks category to the left of the editor.)


Super Mario World Maker 3.0 Update coming soon ~ Suggest what you want added!

The state of my life right now (I'm in Grade 12 next year):

Bonus image for Extension users and Inspect Element bois:

I'm the guy who made the ‘Multiple rows in backpack’ addon btw, you should try it!
___DemonZ___
Scratcher
11 posts

How to save numbers on lists

i found it out
game_pr0grammer
Scratcher
500+ posts

How to save numbers on lists

this should be in help with scripts

SPEAK UP TO KUMQUAT EQUALITY Kumquats are not bad! Kumquat lives matter!

hi i am myself, i make projects that take like a week or month to make whenever i feel like it (which isn't often) and then they only get 10 views because i'm a nobody. and i cannot change that. i am just one singular person in the sea of many that are on scratch. my stuff don't matter. i don't matter. i am going to die in 70 years anyway, and 99.99% of people on the world will not even know, or really care if they know. also i am good at programming i made an opengl so ha take that nuuubs. (i am legally required to say that statement does not accurately reflect my views i wrote that because i thought it was funny)

all my good projects. are here here are examples of my good Projects

shoot that's it basically lol they're all platformers. play them and talk about it so i get clout plz. thank.
550728
Scratcher
10 posts

How to save numbers on lists

jettypumpkin07 wrote:

If your trying to add numbers to a list separately, it's easy!
Just use the following code:
add (number) to [list v]

Or if you want random numbers in a list:
add (pick random (1) to (10)) to [list v]

As in a variable named
 (number) 
with a integer assigned to that variable, or just a plain old number?

Powered by DjangoBB