Fixing dorm script bugs
This commit is contained in:
1 parent
07f45ad1e1
commit
7dadfd8ed8
6 files changed
+45
-32
No files matched your search
@@ -25,6 +25,7 @@ function on_npc_interact(npc_index)
|
||||
else
|
||||
game_api.start_dialogue("dialog_alik001")
|
||||
end]]
|
||||
game_api.player_stop_and_rotate_to_npc(0)
|
||||
game_api.start_dialogue("dialog_alik002")
|
||||
end
|
||||
end
|
||||
@@ -35,6 +36,7 @@ function on_phone_pickup()
|
||||
game_api.start_dialogue("dialog_phone_pickup001")
|
||||
phone_picked_up = true
|
||||
game_api.quest_set_objective_completed("tutorial_take_items", "take_phone")
|
||||
game_api.player_stop()
|
||||
end
|
||||
|
||||
function on_journal_pickup()
|
||||
@@ -43,6 +45,7 @@ function on_journal_pickup()
|
||||
game_api.start_dialogue("dialog_journal_pickup001")
|
||||
journal_picked_up = true
|
||||
game_api.quest_set_objective_completed("tutorial_take_items", "take_journal")
|
||||
game_api.player_stop()
|
||||
end
|
||||
|
||||
function ladder_zone001_enter_callback()
|
||||
@@ -77,16 +80,19 @@ function on_bed_sleep()
|
||||
print("Setting to day 1----x")
|
||||
game_api.play_sound("audio/587036__antoineromo__bed-sheets.ogg")
|
||||
end
|
||||
game_api.player_stop()
|
||||
end
|
||||
|
||||
function on_alik_bathroom_click()
|
||||
game_api.start_dialogue("door_bathroom_alik_dialog001")
|
||||
game_api.player_stop()
|
||||
end
|
||||
|
||||
function on_locked_door_click()
|
||||
game_api.start_dialogue("door_locked_dialog001")
|
||||
game_api.play_sound("audio/398751__anthousai__door-lock-01.ogg")
|
||||
--game_api.play_sound("audio/702171__foxfire__door-opening.ogg")
|
||||
game_api.player_stop()
|
||||
end
|
||||
|
||||
function on_sleep_cutscene()
|
||||
@@ -103,6 +109,7 @@ function on_alik_door_click()
|
||||
game_api.start_dialogue("door_alik_dialog001")
|
||||
end
|
||||
end
|
||||
game_api.player_stop()
|
||||
end
|
||||
|
||||
function callback_deactivate_cover_alik_room()
|
||||
@@ -178,6 +185,8 @@ function on_player_bathroom_click()
|
||||
end
|
||||
|
||||
game_api.play_sound("audio/702171__foxfire__door-opening.ogg")
|
||||
|
||||
game_api.player_stop()
|
||||
end
|
||||
end
|
||||
|
||||
@@ -203,6 +212,7 @@ function on_player_door_click()
|
||||
game_api.switch_navigation(2) --ba
|
||||
end
|
||||
game_api.play_sound("audio/702171__foxfire__door-opening.ogg")
|
||||
game_api.player_stop()
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -270,38 +280,47 @@ end
|
||||
|
||||
function on_freezer_click()
|
||||
game_api.start_dialogue("dialog_freezer001")
|
||||
game_api.player_stop()
|
||||
end
|
||||
|
||||
function on_boombox_click()
|
||||
game_api.start_dialogue("dialog_boombox001")
|
||||
game_api.player_stop()
|
||||
end
|
||||
|
||||
function on_washing_machine1_click()
|
||||
game_api.start_dialogue("dialog_washing_machine001")
|
||||
game_api.player_stop()
|
||||
end
|
||||
|
||||
function on_shelf_click()
|
||||
game_api.start_dialogue("dialog_shelf001")
|
||||
game_api.player_stop()
|
||||
end
|
||||
|
||||
function on_stove1_click()
|
||||
game_api.start_dialogue("dialog_stove001")
|
||||
game_api.player_stop()
|
||||
end
|
||||
|
||||
function on_dryer1_click()
|
||||
game_api.start_dialogue("dialog_dryer001")
|
||||
game_api.player_stop()
|
||||
end
|
||||
|
||||
function on_sink1_click()
|
||||
game_api.start_dialogue("dialog_wash001")
|
||||
game_api.player_stop()
|
||||
end
|
||||
|
||||
function on_shower_click()
|
||||
game_api.start_dialogue("dialog_shower001")
|
||||
game_api.player_stop()
|
||||
end
|
||||
|
||||
function on_toilet_click()
|
||||
game_api.start_dialogue("dialog_toilet001")
|
||||
game_api.player_stop()
|
||||
end
|
||||
|
||||
function callback_enter_location()
|
||||
|
||||
@@ -655,7 +655,14 @@ end
|
||||
|
||||
function on_lection_cutscene_fadein_callback()
|
||||
print("Lection cutscene in progress!")
|
||||
game_api.player_set_position(-2.41002, 0, 10.375)
|
||||
-- -0.0234149 0 10.1139
|
||||
game_api.npc_set_position(0, 0.0, 0.0, 10.1139)
|
||||
|
||||
--4.91002 0 10.375
|
||||
--game_api.player_set_position(-2.41002, 0, 10.375)
|
||||
|
||||
game_api.player_set_position(-4.91, 0, 10.375)
|
||||
|
||||
game_api.player_set_rotation(180)
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user