Is there a way to convert an array to a string?

Need it for a project i’m making but I have a feeling it is impossible.

2 Likes

Depends on what’s in the array. If it’s an array of strings or numbers, you should be able to do something like this:

And with this, you can also put , between the elements.

What do you need it for specifically?

5 Likes

This

1 Like

This should work:

You had something with a variable word, but you never gave it a value, so the words were undefined or null (I think). I also replaced the change generating with the %chance block, and added separately do from the timers extension, because otherwise, after generating like 50 words, it would crash from stack overflow.

The blocks that positioned the menu where you wanted were putting it off-screen for some reason, so I removed them. Don’t forget to add them to make the menu look the way you want

1 Like

In js you can do myArray.join(", "), but its not in blocks. I think @WoofWoof’s extension might have it.

1 Like

Thank you! From now on I will ise this to generate the names of my game charactes

/hj

3 Likes