Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » - Help With ChatBot Script Pls! -
- gaminggirlsherman
-
Scratcher
17 posts
- Help With ChatBot Script Pls! -
Hello! This is my first time using the discussion forums. I really need help with this script, I was remixing CrazyNimbus' project: Sara - Advanced Smart Chatbot - And I was redoing the whole thing, but then I came into a problem. I added too much, and my project was lagging like crazy and making it really boring and annoying to program, so I looked up how to make your project lag less and I found a solution, split the script up. And guess what? I came with ANOTHER problem, and this is the one I need help with. When I split up the script, I need it to be able to respond using the same question bubble thing, y'know, the one where the sprite asks you a question and you get to answer it, and this box comes up that you can write your answer in? Well, when I split up the script and copy and paste the top part of the scrip that asks you the question, it shows up twice, and you need to answer it twice to get the answer from the chat bot. Does anybody know if it's possible to make the other script lines somehow also be able to respond to you first try without being connected to one whole script? Or is it impossible? I don't know if any of this made sense but I REALLY need help with this! 
Project I need help with: https://scratch.mit.edu/projects/243994813/#player - Sorry if this was confusing, I even kinda confused myself, hope you guys get it.

Project I need help with: https://scratch.mit.edu/projects/243994813/#player - Sorry if this was confusing, I even kinda confused myself, hope you guys get it.
- TheTrendyToad
-
Scratcher
17 posts
- Help With ChatBot Script Pls! -
I think I get it. You can make a variable
(answer)and set it to the answer of the text box then use that variable in stead of the blue answer block
- IA-maker
-
Scratcher
1000+ posts
- Help With ChatBot Script Pls! -
sorry, but i prefer to speak french when i talk about computer science
Salut, pour créer un vrai chatbot, il faudrait créer une liste cloud réponse et une liste cloud questions.
A partir de ça, tu peux créer un programme de ce style:
Salut, pour créer un vrai chatbot, il faudrait créer une liste cloud réponse et une liste cloud questions.
A partir de ça, tu peux créer un programme de ce style:
when green flag clicked
ask [] and wait
if <> then
<[<[questions v] contains [thing] ?> v] contains [thing] ?>
ask [reponse] and wait
else
add (answer) to [questions]
ask [Je ne connais pas cette réponse,peux tu me l'apprendre?Que dois-je dire?] and wait
add (answer) to [reponse]
end
- IA-maker
-
Scratcher
1000+ posts
- Help With ChatBot Script Pls! -
sorry, but i prefer to speak french when i talk about computer science
Voici un projet reprenant ce fonctionnement
https://scratch.mit.edu/projects/349594370/editor
Il est en français, désolé!
Voici un projet reprenant ce fonctionnement
https://scratch.mit.edu/projects/349594370/editor
Il est en français, désolé!
- deck26
-
Scratcher
1000+ posts
- Help With ChatBot Script Pls! -
sorry, but i prefer to speak french when i talk about computer sciencePlease check the date before posting - this topic is from 2018. If you have a question create your own topic.
Voici un projet reprenant ce fonctionnement
https://scratch.mit.edu/projects/349594370/editor
Il est en français, désolé!
- Discussion Forums
- » Help with Scripts
-
» - Help With ChatBot Script Pls! -