Harry Pottor House Test

In Harry Potter, there is a house test, that decides wich house you should go to. Now I am talking about Pottemore, really, not Harry Potter (The books/movies). I want to make the same thing, just a little different. Does anybody know about a script that creates a test like this, or how to do it with an event, if that is possible??

The test should look like something like this:

Question 1:

A. Option 1

B. Option 2

C. Option 3

Question 2:

A. Question 1
B. Question 2
C. Question 3

RESULT

Most A's: Result A

Most B's: Result B

Most C's: Result C
This has nothing to do with scripting as defined in RM - scripting here is programming additional options into the engine, independent of story or player decisions.

What you want to do is pure eventing or more precise a series of show option commands that give different points to variables, with the result being checked on conditional branches to set a switch or variable for later use.

I suggest you follow the link in my signature and work through those tutorials. That will get you started as fast as possible, because what you need are the most basic commands and options of the engine.

I've moved this thread to Ace Support. Please be sure to post your threads in the correct forum next time. Thank you.
I'd structure the event as such:

'Text: "Question1"

Show Choices: 1, 2, 3,

[Choice one]

Control Variables A + 1

[Choice two]

Control Variables B + 1

[Choice three]

Control Variable c + 1'

Then repeat however many times you want.

Now, to make the choices work, you would need to use conditional branches.

Event.pngEvent2.png

Through this, you should be able to make a relatively simple system to do the thing. Also, you should always have an larger number of questions to end results. So if you have four Hogwarts houses, there should be at least five questions. (Fewer and you potentially risk problems, or maybe the event would default to the house with no points toward it.) This way, at least one variable is greater than the others. If there is an odd number of results, then even numbers, as that way, unless you're very attentive to detail, you will always have at least one variable higher than the others.

I hope this helps.
Diretooth's solution is almost entirely correct.  However, even 5 questions to 4 houses won't guarantee unequal results - you might have 2 A, 2 B, 1 C, and 0 D.

The way I'd set it up is to ask any number of questions, and to weight each choice to each house (giving an answer that suggests caution might give you 3 points toward Ravenclaw, 2 points toward Hufflepuff, 1 toward Slytherin and 0 toward Gryffindor, since it implies wisdom over courage or ambition).

At the end of the test, like in DT's screenshot, you want to check individually to see whether each house's total points is greater than ALL of the other houses.  Nest three conditional branches inside each other and repeat the process for all four houses.  Since there might be some ties, you should come up with an order of precedence (let's say you choose H > R > G > S).  For each situation where a house has greater precedence than another house, use greater than or equal to instead of strictly greater than.  So for Ravenclaw, the nest would like like:

If Ravenclaw points are greater than Hufflepuff points

..If Ravenclaw points are greater than OR equal to Gryffindor points

....If Ravenclaw points are greater than OR equal to Slytherin points

......Message: You are now a Ravenclaw!  Congrats!

......Change Player Class: Ravenclaw

......Change Items: Get 1 Ravenclaw House Key

....End Branch

..End Branch

End Branch

Do not use the "Else" (set processing if condition is false) option.

Good luck with making your House test!
Thanks for the answers!

Original thread: https://forums.rpgmakerweb.com/threads/harry-pottor-house-test.42349/