Can someone give me a script that will divide an (answer) into seperate words and then put them on a list as seperate items? It should be able to delete the spaces...
Offline
Hmm, I make no match for a Scratcher like you but I'll try to think about it. ......... okay i think i got it.
make the thing say the answer. then wait for it to finish. Then make a list (variable). Show the list after saying the words. put on the list if you can the words. does it work?
Offline
BoltBait wrote:
My adventure game does that exact thing. Link in sig.
I can't find the script
Offline
It is located in the third script of Sprite 1 and is called ProcessComplexCommand.
The first part of that script cuts the input into words and adds them to a list called "parser".
Offline
hahaha read it . . . i was curious cuz i had to do a parser years ago in a class . . . uh huh, looking at one letter at a time, discarding spaces and such, and appending each letter to variable to store word in . .. but then you have to compare each word to known words. Painful.
(I'm just reading along to gain some basic understanding and help me stay ahead of my kids, without actually making anything myself . . . )
Offline
By the way, after writing that parser, I made this suggestion: http://suggest.scratch.mit.edu/forums/6 … fied-token
If you want this function, be sure to vote for it.
Offline