Code: Select all
# The script of the game goes in this file.
image bg InteriorGoodwill = "InteriorGoodwill.jpg"
image bg White = "White.png"
image Goodwill = "Doctor.png"
image bg black = "#000"
define flash1 = Fade(.50, 0.5, .5, color="#fff")
define flash2 = Fade(0, 0.5, 0.25, color="#fff")
# Declare characters used by this game. The color argument colorizes the
# name of the character.
define e = Character("Eileen")
define None = Character("")
define Goodwill = Character("Goodwill")
define Player = Character("[name]")
label start:
show bg black
label gender:
menu:
"Please select your gender."
"Male":
jump Male
"Female":
jump Female
label Male:
menu:
"Are you male?":
$ gender1 = "male1"
"Yes":
jump name
"No":
jump gender
label Female:
menu:
"Are you female?":
$ gender1 = "female1"
"Yes":
jump name
"No":
jump gender
label name:
"Please enter your name."
$ name = renpy.input("What is your name?")
$ name = name.strip()
if name == "":
$ name="Explorer"
menu:
"Is [name] your name?"
"Yes":
jump go
"No":
jump name
label go:
scene bg black
with fade
play sound "WalkingDirt.mp3"
queue sound "Knocking.mp3"
$ renpy.pause(delay=10.0, hard=True, checkpoint=False)
"... ... ... ... ..."
"... ... ... ... ..."
None "Coming!"
"... ... ... ... ..."
None "Just... A Second..."
play sound "UnlockDoor.mp3"
$ renpy.pause(delay=5, hard=True, checkpoint=False)
"... ... ... ... ..."
play sound "DoorOpen.mp3"
scene bg White
with flash1
Goodwill "Ah! [name]! There you are! Glad you finally made it!"
Goodwill "It's been such a long time, let me take a good look at you..."
if gender1 == "male1":
Goodwill "You definetly got your dad's nose... not that there's anything wrong with that!"
if gender1 == "female1":
Goodwill "You definetly got your mom's eyes... they're beautiful!"
Goodwill "But enough of that now! Please, come in!"
play sound "DoorClose.mp3"
scene bg InteriorGoodwill
with flash2
show Goodwill
with dissolve
Goodwill "There we are!"
return
Code: Select all
I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.
File "game/script.rpy", line 40: Line is indented, but the preceding one-line python statement statement does not expect a block. Please check this line's indentation.
"Yes":
^
File "game/script.rpy", line 52: Line is indented, but the preceding one-line python statement statement does not expect a block. Please check this line's indentation.
"Yes":
^
Ren'Py Version: Ren'Py 6.99.12.4.2187
