Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How to make a personality quiz
- GymnasticsGirl7
- Scratcher
10 posts
How to make a personality quiz
plz help i really want to make personality quizes on scratch but i don't know how. Can you show me with blocks and describe what you are doing? I probibly wont respond to you so just know im grateful and thankful for you to post. I will read every one dont worry. Thank you!
- drmcw
- Scratcher
1000+ posts
How to make a personality quiz
I'd suggest finding a project you like and pressing the see inside button. If you have problems understanding the script then you could either ask the creator or post here.
- gor-dee
- Scratcher
1000+ posts
How to make a personality quiz
You can use the scripts I posted in your previous thread but they would have to be modified a bit as you won't have just one right answer. Instead you will need to record scores of (say) three different personality types. As this is now getting quite complicated, it would be best if you started a project, shared it and then post back so that we can take you through it step by step.
- fluffyofqweam
- Scratcher
21 posts
How to make a personality quiz
you're basically asking us to make a project for you, no
- -StormySkies-
- Scratcher
18 posts
How to make a personality quiz
Well, I could try to show you a basic way. Fancy ones with buttons and stuff would need a project, though. Make a sprite to put the programming in. It can look however you'd like.
First, you should go into the Data tab, and click on the button that says “Make a Variable”. Name it anything you'd like, though I'd do something like “Result 1”. Keep making them until you're satisfied with the amount of results. You'll see then appear on-screen, and a little black check will be marked by them. You should click on the check, which will hide them.
Then, click on the “Make a List” button. Name it whatever you'd like to, but I'd choose something like “Answers”. It'll appear on screen, and you can resize it or move it however you'd like, but make sure to keep some space at the bottom. You'll notice a black check mark as well, but don't uncheck it.
Next, you'll be doing the coding.
First, you should go into the Data tab, and click on the button that says “Make a Variable”. Name it anything you'd like, though I'd do something like “Result 1”. Keep making them until you're satisfied with the amount of results. You'll see then appear on-screen, and a little black check will be marked by them. You should click on the check, which will hide them.
Then, click on the “Make a List” button. Name it whatever you'd like to, but I'd choose something like “Answers”. It'll appear on screen, and you can resize it or move it however you'd like, but make sure to keep some space at the bottom. You'll notice a black check mark as well, but don't uncheck it.
Next, you'll be doing the coding.
when green flag clickedThat's what you should start with, which resets anything if the project had previously been used.
delete (all v) of [Answers v]
set [Result 1 v] to [0]
set [Result 2 v] to [0]
set [Result 3 v] to [0]
add [Answer 1] to [Answers v]You should attach that to the previous string of code. That's the basic way you'd make the questions. They'd be answered by someone typing in the number on the list that's to the left of the answer they chose. You can add more results if you'd like as well. Use it again with different questions and answers written in. Then, when you're ready for the results to be given this is what you should do:
add [Answer 2] to [Answers v]
add [Answer 3] to [Answers v]
ask [Question 1?] and wait
if <(answer) = [1]> then
change [Result 2 v] by (1)
end
if <(answer) = [2]> then
change [Result 1 v] by (1)
end
if <(answer) = [3]> then
change [Result 3 v] by (1)
end
if <(Result 1) > <(Result 2) and (Result 3)>> thenYou can write the message at the end to be whatever you'd like it to be. If you have 4+ results, you can put “and” blocks in “and” blocks, which should look like this:
say [You got Result 1!]
end
<<> and <<> and <>>>Well, I hope this helped! Comment on my profile if you have any problems. You can use other tutorials for more advanced projects. Also, feel free to add whatever music or backdrops you'd like!
- RainbowGasterBlaster
- Scratcher
32 posts
How to make a personality quiz
when green flag clicked
delete ( all) of [list answers]
set [ Result1] to [0]
set [ Result2] to [0]
set [ Result3] to [0]
add [Answer1] to [list Answers]
add [Answer2] to [list Answers]
add [Answer3] to [list Answers]
ask [Question1!] and wait
if <(answer) = [1]> then
change [ Result1] by (1)
end
if <(answer) = [2]> then
change [ Result2] by (1)
end
if <(answer) = [3]> then
change [ Result3] by (1)
end
I have more to say, but I will do that in a different comment( i got this by )
Last edited by RainbowGasterBlaster (March 5, 2019 21:11:48)
- RainbowGasterBlaster
- Scratcher
32 posts
How to make a personality quiz
-StormySkies- give a thanks to -StormySkies-
- tweettweetie
- Scratcher
3 posts
How to make a personality quiz
There just flippin asking for help. you're basically asking us to make a project for you, no
- deck26
- Scratcher
1000+ posts
How to make a personality quiz
Well they were, nearly 2 years ago. Try not to necropost please.There just flippin asking for help. you're basically asking us to make a project for you, no
- deck26
- Scratcher
1000+ posts
How to make a personality quiz
I use to spam before
Please don't necropost. I made an personality quiz before xD
- Discussion Forums
- » Help with Scripts
- » How to make a personality quiz