Skip to content

Commit

Permalink
refactor(story): tidy variables
Browse files Browse the repository at this point in the history
  • Loading branch information
remarkablemark committed Sep 12, 2024
1 parent c708ff6 commit 8a69fd6
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion game/story/day_2_lord_intro.rpy
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
label day_2_lord_intro:

$ meet_lord_day_2 = True
$ day2_meet_lord = True

scene bg hallway day with dissolve

Expand Down
4 changes: 2 additions & 2 deletions game/story/inside/explore_inside_day.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ label explore_inside_day:
if not meet_lord:
jump meet_lord

if day == 2 and not night and not meet_lord_day_2:
if day == 2 and not night and not day2_meet_lord:
jump day_2_lord_intro

if night:
scene bg interior entrance night with dissolve
else:
scene bg interior entrance day with dissolve

if day == 1 and night and not whisper:
if day == 1 and night and not day1_whisper:
player "Why are the lights off?"
player "Are they trying to save electricity?"

Expand Down
4 changes: 2 additions & 2 deletions game/story/inside/kitchen.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ label kitchen:
jump explore_inside_day

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

player "Time to grab something to eat!"

Expand Down
2 changes: 1 addition & 1 deletion game/story/meet_lord.rpy
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
label meet_lord:

$ meet_lord = True
$ day1_meet_lord = True

play music the_old_castle

Expand Down
12 changes: 6 additions & 6 deletions game/story/variables.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
default player_name = "Morgan"
default surname = "Kasper"

# items
default item = Item()

# time
default day = 1
default night = False
Expand All @@ -11,10 +14,7 @@ default sleep = False
default basement_locked = True
default basement_visit = 0

# items
default item = Item()

# events
default meet_lord = False
default whisper = False
default meet_lord_day_2 = False
default day1_meet_lord = False
default day1_whisper = False
default day2_meet_lord = False

0 comments on commit 8a69fd6

Please sign in to comment.