Discuss Scratch

  • Discussion Forums
  • » Suggestions
  • » List items (#) to (#) of (list) and output object positions or objects? (Choose position or objects). Variable! [RSS Feed]
zazashrooms
Scratcher
66 posts

List items (#) to (#) of (list) and output object positions or objects? (Choose position or objects). Variable!

the list dropdown allows selection of list to run through items
the # is for numbers, (#) to (#) is for example loop through List items 2 to 32.

I want this specifically to make a more efficient and less cost heavy loop through list script specifically for making multiple cooldown objects.
i want a way to get cooldowns more efficiently, because typically if something is a built in feature then using less blocks causes less data or whatever to be used.

I believe that brackes “{}” are how tables are formed in plenty coding languages.
example, if you put this a Set Variable Block, and the following objects are {3, ksi, true, 500} in list called MYLIST and use the “
List Items 1 to 4 and return object positions or objects? (Objects) variable will set the variables value to the Objects values (objects 1,4) in order and the values are spaced out, the variable will now be (3 ksi true 500), object positions will out the positions of object in order (1 2 3 4).

What does this mean for Boolean statements?
MYLIST = {3, ksi, true, 500}
You can put it in comparers, example: If 3 = List items (1) to (4) and output object positions or objects? (objects)
so basically when any object that is equal to 3 in MYLIST in this example gets looped through (probally looped through via For loop, which usaully means the ”index" number reaches object position which allows the value of object to be read).

Last edited by zazashrooms (Today 03:47:50)

  • Discussion Forums
  • » Suggestions
  • » List items (#) to (#) of (list) and output object positions or objects? (Choose position or objects). Variable! [RSS Feed]

Powered by DjangoBB