Skip to content

Commit

Permalink
refactor(story): whisper once
Browse files Browse the repository at this point in the history
  • Loading branch information
remarkablemark committed Sep 11, 2024
1 parent dea7277 commit 894f538
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
19 changes: 13 additions & 6 deletions game/story/inside/kitchen.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,7 @@ label kitchen:
if item.show("key"):
show screen basement_key

if day == 1 and night:
player "Time to grab something to eat!"

unknown "{sc}Find...{/sc}{w=0.3} {sc}Treasure...{/sc}{w=0.3} {sc}Go...{/sc}{w=0.3} {sc}Basement...{/sc}"

player "What...{w=0.2} in the world{w=0.2} was that?"
call kitchen_dialogue

menu:
"What do you want to do?"
Expand All @@ -26,6 +21,18 @@ label kitchen:

jump explore_inside_day

label kitchen_dialogue:
if day == 1 and night and not whisper:
$ whisper = True

player "Time to grab something to eat!"

unknown "{sc}Find...{w=0.3} Treasure...{w=0.3} Basement..."

player "What...{w=0.2} in the world was that?"

return

screen explore_kitchen():
use back("kitchen")

Expand Down
1 change: 1 addition & 0 deletions game/story/variables.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ default item = Item()

# events
default meet_lord = False
default whisper = False

0 comments on commit 894f538

Please sign in to comment.