@ronda - if you have a high score already, and you are only looking for one ending to which to send folks, then your logic needs to start with sending the user immediately to the high score-related ending:
- if A is highest jumpto ending A
- if B is the highest jumpto ending B
- if C is the highest jumpto ending C
- if D is the highest jumpto ending D
the basic is this:
- the max score of “...is greater than ...” is 3 in this case ie A can only be greater than 3 others. (same across the board)
- evaluate if A GT B then add 1 to v_a_biggest
- then if A GT C then add 1 to v_a_biggest
- then if A GT D then add 1 to v_a_biggest
- if v_a_biggest = 3 then replace v_ending with A
- If v_a_biggest is NOT 3, then evaluate B (v_b_biggest)
all that logic has to go at the top of the form .. so that IF you have a unique high score, the user is immediately bounced to the appropriate ending. I added the v_ending variable to capture which ending the user ended up visiting.
if there is NO clear highest score then you need to evaluate to determine which ones are tied:
- if v_a_biggest = 2 AND v_a_biggest = v_b_biggest replace v_a_status with ‘tied’
- if v_a_biggest = 2 AND v_a_biggest = v_b_biggest replace v_b_status with ‘tied’
- then a with c and a with d
- at this point if you have an A and whatever tie, and you want to break it, you need to either go to a tie breaker question that will drive a clear choice - typically i have a series of them based on the combo ie A & B, A & C etc.. so that i can break the tie between the two (or possibly 3)
- if A is not ‘tied’ then go to B and evaluate B vs c_status and d_status.. for ties. etc
the order of your logic is what is going to be critical .. what is processed at the top of the list is the first “director” …
des