Mar 25, 2024 01:42:38
How do I make script know multiple items from list instead of just 1?
view on scratch
view on legacy ocular
Jackmode368
loading
Helo! So you know the
For example, let's say I want to detect if the item a player has any of these items from a list, how do I make it detect that without using a bunch of or blocks? Like this:
[
cause sometimes there are a lot of items and I'm not putting 56 or blocks in a single line.
(item ( v) of [list v] :: list)block? That only allows for you to pick one item from list. How do I make it pick multiple or all?
For example, let's say I want to detect if the item a player has any of these items from a list, how do I make it detect that without using a bunch of or blocks? Like this:
[
if <(Items) = (item (1, 3, 5, 6, or 13 v) of [list v] :: list)> then
say [Congratulations!] for (2) secs
end
cause sometimes there are a lot of items and I'm not putting 56 or blocks in a single line.