Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- label start:
- $ mon = None
- $ ita = None
- scene black
- play music m1
- call screen dialog("Doki Doki Behind Closed Doors, has detected an uncorrupted version of the files.", ok_action=Return())
- call screen dialog("The game stopped unexpectedly last time, due to an error.", ok_action=Return())
- call screen dialog("In order to run the game without errors, every .chr file must be present.", ok_action=Return())
- call screen dialog("Some character files are encoded, please copy them into the characters folder, so that I can help you decode them.", ok_action=Return())
- label repeat_it:
- call screen dialog("Press ok, once you have copied the files over, and I will check my directory.", ok_action=Return())
- call screen dialog("Scanning...", ok_action=Return())
- label zerovars:
- $ mon = 0
- $ ita = 0
- label try_both:
- if mon == 0 and ita == 0:
- call screen dialog("Let me see...", ok_action=Return())
- call try_ita
- call try_mon
- if mon == 0 and ita == 1:
- call screen dialog("Itami.chr has been found.", ok_action=Return())
- call screen dialog("Press ok, once you're ready for me to scan again.", ok_action=Return())
- call try_mon
- if mon == 1 and ita == 0:
- call screen dialog("Akinom.chr has been found.", ok_action=Return())
- call screen dialog("Press ok, once you're ready for me to scan again.", ok_action=Return())
- call try_ita
- if mon == 1 and ita == 1:
- if renpy.loadable("../characters/itami.chr") and renpy.loadable("../characters/akinom.chr"):
- call screen dialog("Both character files have been found.", ok_action=Return())
- call start_game
- else:
- call zerovars
- return
- label set_mon:
- $ mon = 1
- call try_both
- label set_ita:
- $ ita = 1
- call try_both
- label try_ita:
- python:
- if renpy.exists("../characters/itami.chr"):
- renpy.call("set_ita")
- elif renpy.exists("../characters/SXRhbWkg.chr"):
- renpy.call("base64")
- else:
- renpy.call("file_missing")
- label try_mon:
- python:
- if renpy.exists("../characters/akinom.chr"):
- renpy.call("set_mon")
- elif renpy.exists("../characters/010000010110101101101001011011100110111101101101.chr"):
- renpy.call("binary")
- else:
- renpy.call("file_missing")
- label binary:
- scene filename
- call screen dialog("This appears to be encoded in binary.", ok_action=Return())
- call screen dialog("Please decode the character name, replace the code with the decoded name, and I'll check my directory for it.", ok_action=Return())
- call screen dialog("Example: Replace 'encoded.chr' with 'decoded.chr' in the character file itself.", ok_action=Return())
- call try_ita
- label base64:
- scene filename
- call screen dialog("This appears to be encoded in base64.", ok_action=Return())
- call screen dialog("Please decode the character name, replace the filename with the decoded name, and I'll check my directory for it.", ok_action=Return())
- call screen dialog("Example: Replace 'encoded.chr' with 'decoded.chr'", ok_action=Return())
- call try_mon
- label file_missing:
- scene black
- call screen dialog("The file I am trying to locate, cannot be found.", ok_action=Return())
- call screen dialog("Please try again.", ok_action=Return())
- call repeat_it
- label start_game:
- "Test."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement