Skip to content

Commit

Permalink
fix(item): add variable
Browse files Browse the repository at this point in the history
  • Loading branch information
rmacohen committed Sep 8, 2024
1 parent 3f2b3d0 commit d4680fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
9 changes: 5 additions & 4 deletions game/story/outside/pond.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ label pond:

scene bg pond day with dissolve

show screen necklace
if not necklace:
show screen necklace

menu:
"What do you want to do?"
Expand Down Expand Up @@ -60,11 +61,11 @@ screen necklace():
ypos 775
idle "items/necklace.png"
hover "items/necklace.png"
action Jump("necklace")
action Jump("necklace_found")
at scale(0.1)

label necklace:
$ basement_key = True
label necklace_found:
$ necklace = True
hide screen necklace
player "Wow, this is stunning! I wonder who lost this."
jump pond
1 change: 1 addition & 0 deletions game/story/variables.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ default surname = "Kasper"
# rooms
default basement_key = False
default basement_locked = True
default necklace = False

# events
default meet_lord = False

0 comments on commit d4680fc

Please sign in to comment.