Hello Skriptors! I have a trouble and I can't solve this. SO
I have a separate sound for each symbol, and I want to make it so that you can combine the symbols together and get a word, but I can’t figure out how to make the left to right each letter in the word read, that is, the sound is played.
Tried to do, but after combining the symbols, the sounds are produced simultaneously and not in order from left to right, but in a different way. I enclose the code and hope for your help
I have a separate sound for each symbol, and I want to make it so that you can combine the symbols together and get a word, but I can’t figure out how to make the left to right each letter in the word read, that is, the sound is played.
Tried to do, but after combining the symbols, the sounds are produced simultaneously and not in order from left to right, but in a different way. I enclose the code and hope for your help
Code:
on chat:
set {checkvoice.counter::%player%} to 1
set {checkvoice::%player%} to message
set {checkvoice.lenght::%player%} to length of the message
every 3 ticks:
loop all players in "SCPRP":
if {checkvoice.counter::%loop-player%} is smaller than or equal to {checkvoice.lenght::%loop-player%}:
if {checkvoice::%loop-player%} contains "a":
if {lever.voice::%loop-player%} is true:
play sound "mcscprp.alphabet.a" with volume 1 at loop-player
add 1 to {checkvoice.counter::%loop-player%}
wait 3 ticks
if {checkvoice::%loop-player%} contains "b":
if {lever.voice::%loop-player%} is true:
play sound "mcscprp.alphabet.b" with volume 1 at loop-player
add 1 to {checkvoice.counter::%loop-player%}
wait 3 ticks
if {checkvoice::%loop-player%} contains "c":
if {lever.voice::%loop-player%} is true:
play sound "mcscprp.alphabet.c" with volume 1 at loop-player
add 1 to {checkvoice.counter::%loop-player%}
wait 3 ticks
if {checkvoice::%loop-player%} contains "d":
if {lever.voice::%loop-player%} is true:
play sound "mcscprp.alphabet.d" with volume 1 at loop-player
add 1 to {checkvoice.counter::%loop-player%}
wait 3 ticks
if {checkvoice::%loop-player%} contains "e":
if {lever.voice::%loop-player%} is true:
play sound "mcscprp.alphabet.e" with volume 1 at loop-player
add 1 to {checkvoice.counter::%loop-player%}
wait 3 ticks