If A is the highest number (but can be same number) with B, C, D, E, F, G;
and if another value proportional to the number A is over 700,
the story will lead to choice 1,
if B is the highest number (but can be same number) with A, C, D, E, F, G;
and if another value proportional to the number B is over 700,
the story will lead to choice 2,
and so on... was what I was planning to do.
Code: Select all
label end_eval:
if money >= 4000:
$ choice = 0
else:
jump end_eval1
label end_eval1:
if A >= B and A >= C and A >= D and A >= E and A >= F and A >= G:
if strength >= 700:
$ choice = 1
else:
jump end_eval2
label end_eval2:
if B >= A and B >= C and B >= D and B >= E and B >= F and B >= G:
if knowledge >= 700:
$ choice = 2
else:
jump end_eval3
label end_eval3:
if C >= A and C >= B and C >= D and C >= E and C >= F and C >= G:
if kindness >= 700:
$ choice = 3
else:
jump end_eval4
label end_eval4:
if D >= A and D >= B and D >= C and D >= E and D >= F and D >= G:
if 250 <= magic < 1000:
$ choice = 4
elif magic >= 1000:
$ choice = 5
else:
jump end_eval5
label end_eval5:
if E >= A and E >= B and E >= C and E >= D and E >= F and E >= G:
if knowledge >= 500:
$ choice = 6
else:
jump end_eval6
label end_eval6:
if F >= A and F >= B and F >= C and F >= D and F >= E and F >= G:
if strength >= 500:
$ choice = 7
else:
jump end_eval7
label end_eval7:
if G >= A and G >= B and G >= C and G >= D and G >= E and G >= F:
if kindness >= 500:
$ choice = 8
else:
$ choice = 9