Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How to convert numbers to letters
- coolkidguything
-
55 posts
How to convert numbers to letters
Hey Scratchers thanks for clicking this link and trying to help me
I need some help on scripts I worked one for a month now and can''t try to do It If some of you know please help me it means a lot to me so thanks

when green flag clickedthanks !! (ΘεΘ ;)
forever
say [thank you for helping me :)] for (how long it will take :|) secs
end
- BluePC1
-
98 posts
How to convert numbers to letters
Hey Scratchers thanks for clicking this link and trying to help meSorry, what are you trying to do?I need some help on scripts I worked one for a month now and can''t try to do It If some of you know please help me it means a lot to me so thanks
when green flag clickedthanks !! (ΘεΘ ;)
forever
say [thank you for helping me :)] for (how long it will take :|) secs
end
- deck26
-
1000+ posts
How to convert numbers to letters
Are you decoding text that has been encoded? If so the decoding method obviously has to match the encoding method so we''d need to know what that was.
- coolkidguything
-
55 posts
How to convert numbers to letters
like this CLICK HERE thats the link 

- deck26
-
1000+ posts
How to convert numbers to letters
CLICK HERE thats the linkSo the order of the characters in that text string is very important. like this
If you have a numeric string like 052316 you need to loop through it.
For the first number you join letter 1 and letter 2 from that string to get 05. You then want letter 05 from the character string.
Move on the next letter - letters 3 and 4 give you 23 so you want letter 23 from the chracter string.
It's confusing talking about taking letter n from a numeric string - it would be better if Scratch referred to character than letter.
So it's a basic loop
set counter to 1
set text to blank
repeat until counter > length of input
set temp to join (letter counter of input) (letter counter+1 of input)
set text to join text (letter temp of characters)
change counter by 2
end
- coolkidguything
-
55 posts
How to convert numbers to letters
CLICK HERE thats the linkSo the order of the characters in that text string is very important. like this
If you have a numeric string like 052316 you need to loop through it.
For the first number you join letter 1 and letter 2 from that string to get 05. You then want letter 05 from the character string.
Move on the next letter - letters 3 and 4 give you 23 so you want letter 23 from the chracter string.
It's confusing talking about taking letter n from a numeric string - it would be better if Scratch referred to character than letter.
So it's a basic loop
set counter to 1
set text to blank
repeat until counter > length of input
set temp to join (letter counter of input) (letter counter+1 of input)
set text to join text (letter temp of characters)
change counter by 2
end
define encode//WITHOUT SCREEN REFRESH//
set [counter v] to [1]
set [output v] to []
repeat until <(counter) > (length of (input))>
set [ tempv] to (join (letter (counter)) [world])
end
- deck26
-
1000+ posts
How to convert numbers to letters
That doesn't match my pseudocode.CLICK HERE thats the linkSo the order of the characters in that text string is very important. like this
If you have a numeric string like 052316 you need to loop through it.
For the first number you join letter 1 and letter 2 from that string to get 05. You then want letter 05 from the character string.
Move on the next letter - letters 3 and 4 give you 23 so you want letter 23 from the chracter string.
It's confusing talking about taking letter n from a numeric string - it would be better if Scratch referred to character than letter.
So it's a basic loop
set counter to 1
set text to blank
repeat until counter > length of input
set temp to join (letter counter of input) (letter counter+1 of input)
set text to join text (letter temp of characters)
change counter by 2
enddefine encode//WITHOUT SCREEN REFRESH//
set [counter v] to [1]
set [output v] to []
repeat until <(counter) > (length of (input))>
set [ tempv] to (join (letter (counter)) [world])
end
- coolkidguything
-
55 posts
How to convert numbers to letters
Yeah I was a little to Lazy IThat doesn't match my pseudocode.CLICK HERE thats the linkSo the order of the characters in that text string is very important. like this
If you have a numeric string like 052316 you need to loop through it.
For the first number you join letter 1 and letter 2 from that string to get 05. You then want letter 05 from the character string.
Move on the next letter - letters 3 and 4 give you 23 so you want letter 23 from the chracter string.
It's confusing talking about taking letter n from a numeric string - it would be better if Scratch referred to character than letter.
So it's a basic loop
set counter to 1
set text to blank
repeat until counter > length of input
set temp to join (letter counter of input) (letter counter+1 of input)
set text to join text (letter temp of characters)
change counter by 2
enddefine encode//WITHOUT SCREEN REFRESH//
set [counter v] to [1]
set [output v] to []
repeat until <(counter) > (length of (input))>
set [ tempv] to (join (letter (counter)) [world])
end
- deck26
-
1000+ posts
How to convert numbers to letters
So don't post rather than posting something that is nonsense!Yeah I was a little to Lazy IThat doesn't match my pseudocode.CLICK HERE thats the linkSo the order of the characters in that text string is very important. like this
If you have a numeric string like 052316 you need to loop through it.
For the first number you join letter 1 and letter 2 from that string to get 05. You then want letter 05 from the character string.
Move on the next letter - letters 3 and 4 give you 23 so you want letter 23 from the chracter string.
It's confusing talking about taking letter n from a numeric string - it would be better if Scratch referred to character than letter.
So it's a basic loop
set counter to 1
set text to blank
repeat until counter > length of input
set temp to join (letter counter of input) (letter counter+1 of input)
set text to join text (letter temp of characters)
change counter by 2
enddefine encode//WITHOUT SCREEN REFRESH//
set [counter v] to [1]
set [output v] to []
repeat until <(counter) > (length of (input))>
set [ tempv] to (join (letter (counter)) [world])
end
- coolkidguything
-
55 posts
How to convert numbers to letters
Yeah I need work on the thatSo don't post rather than posting something that is nonsense!Yeah I was a little to Lazy IThat doesn't match my pseudocode.CLICK HERE thats the linkSo the order of the characters in that text string is very important. like this
If you have a numeric string like 052316 you need to loop through it.
For the first number you join letter 1 and letter 2 from that string to get 05. You then want letter 05 from the character string.
Move on the next letter - letters 3 and 4 give you 23 so you want letter 23 from the chracter string.
It's confusing talking about taking letter n from a numeric string - it would be better if Scratch referred to character than letter.
So it's a basic loop
set counter to 1
set text to blank
repeat until counter > length of input
set temp to join (letter counter of input) (letter counter+1 of input)
set text to join text (letter temp of characters)
change counter by 2
enddefine encode//WITHOUT SCREEN REFRESH//
set [counter v] to [1]
set [output v] to []
repeat until <(counter) > (length of (input))>
set [ tempv] to (join (letter (counter)) [world])
end

- coolkidguything
-
55 posts
How to convert numbers to letters
hacked blocks !!
define when green flag clicked
define <[ v] contains [thing] ?>
define set [ v] to []
define <[when green flag is clicked] = [when green flag is clicked]>
define (distance to [ v])
- dicecyandye
-
19 posts
How to convert numbers to letters
when green flag clicked
meow up
meow down
- dicecyandye
-
19 posts
How to convert numbers to letters































when green flag clicked
define ([scratchblocks]
)[/scratchblocks]
stop all sounds
[scratchblocks]
rest for ([scratchblocks]
) beats[/scratchblocks]
play note ([scratchblocks]
v) for (0.5) beats
set instrument to ( v)
change volume by ()
change volume by ()
set volume to () %
[/scratchblocks]
[/scratchblocks]
Last edited by dicecyandye (Oct. 17, 2019 11:40:45)
- dicecyandye
-
19 posts
How to convert numbers to letters
define Char(char)
set [Char set] to (char)
set [Decode] to (pick random (0) to (28))
Set [Endcode] to ((((char) / (0)) - (Decode)) - ((Char set) + (Decode)
when green flag clicked
repeat (char)
Char[abcdefghijklmnopqrstuvwxyz]
Char[1234567890]
Char[!@#$%^&*()\/<">.',]
Char[+-*/=~]
end
Last edited by dicecyandye (Oct. 17, 2019 11:51:29)
- coolkidguything
-
55 posts
How to convert numbers to letters
when green flag clicked
define ([scratchblocks]
)[/scratchblocks]
stop all sounds
[scratchblocks]
rest for ([scratchblocks]
) beats[/scratchblocks]
play note ([scratchblocks]
v) for (0.5) beats
set instrument to ( v)
change volume by ()
change volume by ()
set volume to () %
[/scratchblocks]
[/scratchblocks]
define how to hack JSON <[ v] contains [thing] ?>(distance to [ v])</scratch blocks>
say(omae wa mou sinderu) in (10000000000000000000000000000000000000000000000) seconds
<you licked the computer?>
set pen size to (:lol::lol::lol::lol::lol::lol::lol::lol::lol:)
- deck26
-
1000+ posts
How to convert numbers to letters
This topic seems to have become nothing but spam - I suggest you close it if your question has been answered.when green flag clicked
define ([scratchblocks]
)[/scratchblocks]
stop all sounds
[scratchblocks]
rest for ([scratchblocks]
) beats[/scratchblocks]
play note ([scratchblocks]
v) for (0.5) beats
set instrument to ( v)
change volume by ()
change volume by ()
set volume to () %
[/scratchblocks]
[/scratchblocks]define how to hack JSON <[ v] contains [thing] ?>(distance to [ v])</scratch blocks>
say(omae wa mou sinderu) in (10000000000000000000000000000000000000000000000) seconds
<you licked the computer?>set pen size to (:lol::lol::lol::lol::lol::lol::lol::lol::lol:)
- coolkidguything
-
55 posts
How to convert numbers to letters
yeah okayThis topic seems to have become nothing but spam - I suggest you close it if your question has been answered.when green flag clicked
define ([scratchblocks]
)[/scratchblocks]
stop all sounds
[scratchblocks]
rest for ([scratchblocks]
) beats[/scratchblocks]
play note ([scratchblocks]
v) for (0.5) beats
set instrument to ( v)
change volume by ()
change volume by ()
set volume to () %
[/scratchblocks]
[/scratchblocks]define how to hack JSON <[ v] contains [thing] ?>(distance to [ v])</scratch blocks>
say(omae wa mou sinderu) in (10000000000000000000000000000000000000000000000) seconds
<you licked the computer?>set pen size to (:lol::lol::lol::lol::lol::lol::lol::lol::lol:)
- Discussion Forums
- » Help with Scripts
-
» How to convert numbers to letters