#Replacing strings with hyphens
11 messages · Page 1 of 1 (latest)
Just type ising hyphens rather than normal letters
That's not the point... the player who chooses the prompt can see it, after 10 seconds, he can't
Loop over every character in the string.
If the current character in the loop is not a space, add a hyphen to a string variable.
If it is a space, add a space to the same string variable.
After the loop it will be completed
If you are certain that the spaces will always be a certain amount of spaces long,
Use string split white space, and iterate over each item in that list instead.
Use string substring, with the input string being a bunch of hyphens, and use the String Length of the current element in the loop for the length input of the substring chip. Add the output of the substring chip to a string variable, and add a space to the end if you are not on the last element of the list.
Pretty rocky explanation, but there are definitely more than one or two ways to do this.
I know, i was joking
Got it, thank you!
reminder that ~ is a hypen and - is a dash
Thank you 🤣 but I was trying to do an underscore but discord does a weird effect when I type too many of them...