init python: config.label_overrides["codecheck"] = "my_codecheck" config.label_overrides["codecheck2"] = "my_codecheck2" label my_codecheck: show screen codecheck $ user_code = renpy.input("Please enter the code:") $ is_valid_code = True if is_valid_code: play audio "audio/redeem.mp3" "Code is correct! Bonus content unlocked." $ gems = gems - 50 if charactercodecheck == "sarah": $ population = population + 1 $ sarahbought = True if charactercodecheck == "karla": $ population = population + 1 $ karlabought = True if charactercodecheck == "helena": $ population = population + 1 $ helenabought = True if charactercodecheck == "alyssa": $ engineerpowertemp = engineerpowertemp + 2 $ population = population + 1 $ engineerpowertemp = engineerpowertemp + 2 $ alyssabought = True if charactercodecheck == "risa": $ population = population + 1 $ terraformerpowertemp = terraformerpowertemp + 2 $ risabought = True if charactercodecheck == "rachel": $ scientistpowertemp = scientistpowertemp + 2 $ population = population + 1 $ rachelbought = True else: play audio "audio/error.mp3" "Incorrect code. Please try again." hide screen codecheck jump cryochamber1 label my_codecheck2: show screen codecheck $ user_code = renpy.input("Please enter the code:") $ is_valid_code = True if is_valid_code: play audio "audio/redeem.mp3" "Code is correct! Bonus content unlocked." $ gems = gems - 50 if charactercodecheck == "sarah": $ population = population + 1 $ sarahbought = True if charactercodecheck == "karla": $ population = population + 1 $ karlabought = True if charactercodecheck == "helena": $ population = population + 1 $ helenabought = True if charactercodecheck == "alyssa": $ engineerpowertemp = engineerpowertemp + 2 $ population = population + 1 $ alyssabought = True if charactercodecheck == "risa": $ population = population + 1 $ terraformerpowertemp = terraformerpowertemp + 2 $ risabought = True if charactercodecheck == "rachel": $ scientistpowertemp = scientistpowertemp + 2 $ population = population + 1 $ rachelbought = True else: play audio "audio/error.mp3" "Incorrect code. Please try again." hide screen codecheck jump patreonroom