Variables are your friend, in this case. For my own game, each chapter has 4 possible solutions, each adding one to one of the 4 variables (CHOP). At the end of say 10 questions the variables might look like
C = 4
H = 2
O = 1
P = 2
Meaning that the player is a C type. Throw in a script like,
IF %C > 4 THEN $PAGETEXT := "Congrats C major!"
ELSE IF %H > 4 THEN $PAGETEXT := "Congrat H type!"
etc. If it was for the highest, then it gets a little messy. You need to make a big nasty nested IF THEN ELSE, checking which is the highest score.
IF %C > %H THEN IF %C > %O THEN IF %C > %P THEN $PAGETEXT := "C IS HIGHEST"
IF %H > %C THEN IF %H > %O THEN IF %H > %P THEN $PAGETEXT := "H IS HIGHEST"
IF %O > %C THEN IF %O > %H THEN IF %O > %P THEN $PAGETEXT := "O IS HIGHEST"
IF %P > %C THEN IF %P > %H THEN IF %P > %O THEN $PAGETEXT := "P IS HIGHEST"
IF %C = %H THEN $PAGETEXT := "CH TIEBREAKER!"
IF %C = %O THEN $PAGETEXT := "CO TIEBREAKER!"
IF %C = %P THEN $PAGETEXT := "CP TIEBREAKER!"
IF %H = %O THEN $PAGETEXT := "HO TIEBREAKER!"
IF %H = %P THEN $PAGETEXT := "HP TIEBREAKER!"
IF %O = %P THEN $PAGETEXT := "OP TIEBREAKER!"
Tested, and covers some of the eventualities. Highest score, and ties between two. I'm not going to write up for a three way tie, nor for someone getting 8 C, and one each of H & O. That's part of the weakness of IF THEN, you've got to be ruthless and cover all bases, cause stupid stuff can happen easily enough.
So, there's a solution, but I can think of some more, mostly to do with if they reach a certain threshold (C > 4 then set a variable to 1. At the end of the quiz, if that variable = 1, add the text for that condition)