Pick Random Block not working on the translate extension.
id: 749472
category: Bugs and Glitches
posts: 3
Mar 22, 2024 17:37:03
Pick Random Block not working on the translate extension.
view on scratch
view on legacy ocular
cravemitt
loading
So I am working on something.
I am trying to make it easier by making the language random when it translates.
However, instead of doing a random language, it just does only English.
Is this a bug or can I not use pick random on the translate extension?
And if it is a bug, what should I do?
But if it is not a bug, what is a work around?
I am trying to make it easier by making the language random when it translates.
However, instead of doing a random language, it just does only English.
Is this a bug or can I not use pick random on the translate extension?
And if it is a bug, what should I do?
But if it is not a bug, what is a work around?
Mar 22, 2024 23:01:31
Pick Random Block not working on the translate extension.
view on scratch
view on legacy ocular
CST1229
loading
That's not how it works. If you just do
Instead you should make a list with every language and then use the item of list block:
translate [] to (pick random (1) to (10)) :: extension reporterit would try translating the text to the language that is a random number between 1 and 10, which does not exist.
Instead you should make a list with every language and then use the item of list block:
translate [] to (item (pick random (1) to (length of [languages v])) of [languages v]) :: extension reporter
Mar 23, 2024 00:16:04
Pick Random Block not working on the translate extension.
view on scratch
view on legacy ocular
medians
loading
Couldn't you just select the random option for the languages list? That's not how it works. If you just dotranslate [] to (pick random (1) to (10)) :: extension reporterit would try translating the text to the language that is a random number between 1 and 10, which does not exist.
Instead you should make a list with every language and then use the item of list block:translate [] to (item (pick random (1) to (length of [languages v])) of [languages v]) :: extension reporter