Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
To Do Break Down
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
breakdown
To Do Break Down
Commits
7d71704f
Commit
7d71704f
authored
Dec 06, 2021
by
Julia Santos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moxie can now only leave the front door if she has the trash, or has found Banana
parent
d6c5e0f3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
6 deletions
+15
-6
Event Handler.gd
Event Handler.gd
+14
-6
Balcony door.gd
Scripts/Movement scripts/Balcony door.gd
+1
-0
No files found.
Event Handler.gd
View file @
7d71704f
...
...
@@ -34,6 +34,7 @@ onready var lockedNotepad #if ur locked from certain areas bc u havent gotten th
onready var labNotes = 0
onready var clothes = 0
onready var bathroomClean = 0
onready var canFrontDoor = false
#items in the rooms that need access to the event handler
export(Array, NodePath) onready var eventItems
...
...
@@ -86,9 +87,9 @@ func _eaten(): # completing first "Eat" quest
func _start_lab(): # trying the lab the first time, adds the new quests
if !quests.hasQuest("Eat") and !quests.hasQuest("Do laundry"):
quests.add("Clean bathroom")
quests.add("
Take care of
plants")
quests.add("
Repot
plants")
quests.add("Figure out what's making that noise")
quests.add("Feed
N
ana")
quests.add("Feed
Ban
ana")
newQuests = true
func _add_quest(questName):
...
...
@@ -183,9 +184,16 @@ func _balcony_exit():
livingRoom.show()
func _living_to_hallway():
if ((inventory.hasItem("Trash") != -1) || (!quests.hasQuest("Find Banana") && quests.hasQuest("Feed Banana"))):
canFrontDoor = true
if canFrontDoor:
movementHandle.disableMovement()
livingRoom.hide()
hallway.show()
canFrontDoor = true
else:
dialogue.text = "You know, my philosophy has always been, 'If there's no reason to leave my apartment, why leave?'"
func _hallway_to_living():
movementHandle.enableMovement()
...
...
Scripts/Movement scripts/Balcony door.gd
View file @
7d71704f
...
...
@@ -3,6 +3,7 @@ onready var unlocked = false
signal enter
signal foundBanana
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment