I have a screen where clues discovered through the game appear (it would appear ones or others, depending on the player choices). At some point, it would be possible to solve a mistery combining certain clues (or not solve it, if the conclusions are not the right ones, leading to a different ending). What I want is:
- When the player select 2 clues, check if those 2 clues have a valid conclusion
- If they have it, the proper deduction appear on the right page and are removed from the left page.
So far I have, more or less, acomplished this. If 2 choices with a valid conclusion are selected, they dissapear and the proper conclusion appear in the right column.
Screen with all clues discovered at a certain point:
Screen when selected 2 certain clues with a valid deduction:
This is, more or less, the code:
Code: Select all
screen deductions ():
if clue1 == True and clue4 == True and finalclue1 == False:
$ finalclue1 = True
# More pairs conditions here
hbox:
vbox:
label _("CLUES")
if event1 == True and finalclue1 == False:
textbutton _("- A clue"):
action ToggleVariable("clue1", true_value=True, false_value=False)
selected clue1 == True
if questionhusband == "option1":
textbutton _("- A clue"):
action ToggleVariable("clue2", true_value=True, false_value=False)
selected clue2 == True
elif questionhusband == "option2":
textbutton _("- A clue"):
action ToggleVariable("clue3", true_value=True, false_value=False)
selected clue3 == True
if photocomment == "option1" and finalclue1 == False:
textbutton _("- A clue"):
action ToggleVariable("clue4", true_value=True, false_value=False)
selected clue4 == True
elif photocomment == "option2":
textbutton _("- A clue"):
action ToggleVariable("clue5", true_value=True, false_value=False)
selected clue5 == True
if phonecall1 == True:
textbutton _("- A clue"):
action ToggleVariable("clue6", true_value=True, false_value=False)
selected clue6 == True
# Etc.
vbox:
label "DEDUCTIONS"
if finalclue1 == True:
text _("- I think this happened")
Any suggestion on how to handle this?