Added sounds
This commit is contained in:
1 parent
c6ba8bd008
commit
124208f2a4
26 files changed
+210
-36
No files matched your search
@@ -76,6 +76,7 @@ function on_bed_sleep()
|
||||
local day = game_api.getIntValue("day")
|
||||
game_api.setIntValue("day", day + 1)
|
||||
print("Setting to day 1----x")
|
||||
game_api.play_sound("audio/587036__antoineromo__bed-sheets.ogg")
|
||||
end
|
||||
end
|
||||
|
||||
@@ -85,6 +86,8 @@ 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")
|
||||
end
|
||||
|
||||
function on_sleep_cutscene()
|
||||
@@ -118,6 +121,8 @@ function alik_door_open_callback()
|
||||
else
|
||||
game_api.switch_navigation(4) --b
|
||||
end
|
||||
|
||||
game_api.play_sound("audio/702171__foxfire__door-opening.ogg")
|
||||
end
|
||||
end
|
||||
|
||||
@@ -156,6 +161,8 @@ function on_player_bathroom_click()
|
||||
else
|
||||
game_api.switch_navigation(1) --ca
|
||||
end
|
||||
|
||||
game_api.play_sound("audio/702171__foxfire__door-opening.ogg")
|
||||
end
|
||||
end
|
||||
|
||||
@@ -186,7 +193,9 @@ function on_player_door_click()
|
||||
else
|
||||
game_api.switch_navigation(2) --ba
|
||||
end
|
||||
game_api.play_sound("audio/702171__foxfire__door-opening.ogg")
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -63,6 +63,14 @@ game_api.set_darklands_callbacks(
|
||||
end
|
||||
)
|
||||
|
||||
game_api.set_enter_night_callback(
|
||||
function()
|
||||
game_api.deactivate_interactive_object("car001")
|
||||
game_api.deactivate_interactive_object("car001wheels")
|
||||
game_api.switch_navigation(1)
|
||||
end
|
||||
)
|
||||
|
||||
|
||||
game_api.set_location_callbacks(
|
||||
function()
|
||||
|
||||
@@ -257,25 +257,6 @@ function on_npc_interact(npc_index)
|
||||
game_api.start_dialogue("teacher_dialog007")
|
||||
end
|
||||
end
|
||||
--[[
|
||||
if (player_ghost_aware == 1) then
|
||||
--game_api.setIntValue("player_has_coursework", 1)
|
||||
local player_has_coursework = game_api.getIntValue("player_has_coursework")
|
||||
local player_has_report_card = game_api.getIntValue("player_has_report_card")
|
||||
local report_card_signed = game_api.getIntValue("report_card_signed")
|
||||
|
||||
if (report_card_signed == 1) then
|
||||
game_api.start_dialogue("teacher_dialog004")
|
||||
elseif (player_has_coursework == 1 and player_has_report_card == 1) then
|
||||
game_api.start_dialogue("teacher_dialog005")
|
||||
game_api.remove_item("coursework")
|
||||
game_api.setIntValue("report_card_signed", 1)
|
||||
else
|
||||
game_api.start_dialogue("teacher_dialog007")
|
||||
end
|
||||
else
|
||||
game_api.start_dialogue("teacher_dialog001")
|
||||
end]]
|
||||
end
|
||||
if npc_index == 2 then
|
||||
local report_card_signed = game_api.getIntValue("report_card_signed")
|
||||
@@ -320,12 +301,17 @@ function on_library_door_click()
|
||||
|
||||
if (day == 0) then
|
||||
if game_api.is_dawn() then
|
||||
game_api.start_dialogue("door_dialog007")
|
||||
if not (morning_did_open_door_index == 5) then
|
||||
game_api.start_dialogue("door_dialog007")
|
||||
game_api.play_sound("audio/398751__anthousai__door-lock-01.ogg")
|
||||
end
|
||||
elseif game_api.is_night() then
|
||||
game_api.start_dialogue("door_night_dialog001")
|
||||
game_api.play_sound("audio/398751__anthousai__door-lock-01.ogg")
|
||||
else
|
||||
if (lection_is_over == 0) then
|
||||
game_api.start_dialogue("door_dialog003")
|
||||
game_api.play_sound("audio/398751__anthousai__door-lock-01.ogg")
|
||||
end
|
||||
end
|
||||
else
|
||||
@@ -366,9 +352,11 @@ function on_teachers_door_click()
|
||||
game_api.deactivate_interactive_object("Room_Cover_South_3_001")
|
||||
end)
|
||||
game_api.switch_navigation(3)
|
||||
game_api.play_sound("audio/702171__foxfire__door-opening.ogg")
|
||||
end
|
||||
else
|
||||
game_api.start_dialogue("door_dialog004")
|
||||
game_api.play_sound("audio/398751__anthousai__door-lock-01.ogg")
|
||||
end
|
||||
else
|
||||
if (game_api.is_dawn()) then
|
||||
@@ -384,6 +372,7 @@ function on_teachers_door_click()
|
||||
game_api.deactivate_interactive_object("Room_Cover_Corridor_001")
|
||||
end)
|
||||
game_api.switch_navigation(10)
|
||||
game_api.play_sound("audio/702171__foxfire__door-opening.ogg")
|
||||
else
|
||||
if (morning_did_open_door_index == 1) then
|
||||
--s1 + s3
|
||||
@@ -393,6 +382,7 @@ function on_teachers_door_click()
|
||||
game_api.deactivate_interactive_object("Room_Cover_South_3_001")
|
||||
end)
|
||||
game_api.switch_navigation(11)
|
||||
game_api.play_sound("audio/702171__foxfire__door-opening.ogg")
|
||||
elseif (morning_did_open_door_index == 2) then
|
||||
--s2 + s3
|
||||
|
||||
@@ -401,6 +391,7 @@ function on_teachers_door_click()
|
||||
game_api.deactivate_interactive_object("Room_Cover_South_3_001")
|
||||
end)
|
||||
game_api.switch_navigation(15)
|
||||
game_api.play_sound("audio/702171__foxfire__door-opening.ogg")
|
||||
elseif (morning_did_open_door_index == 5) then
|
||||
--n3 + s3
|
||||
|
||||
@@ -409,6 +400,7 @@ function on_teachers_door_click()
|
||||
game_api.deactivate_interactive_object("Room_Cover_South_3_001")
|
||||
end)
|
||||
game_api.switch_navigation(13)
|
||||
game_api.play_sound("audio/702171__foxfire__door-opening.ogg")
|
||||
elseif (morning_did_open_door_index == 4) then
|
||||
--n2 + s3
|
||||
|
||||
@@ -417,6 +409,7 @@ function on_teachers_door_click()
|
||||
game_api.deactivate_interactive_object("Room_Cover_South_3_001")
|
||||
end)
|
||||
game_api.switch_navigation(14)
|
||||
game_api.play_sound("audio/702171__foxfire__door-opening.ogg")
|
||||
elseif (morning_did_open_door_index == 6) then
|
||||
--hall + s3
|
||||
|
||||
@@ -425,6 +418,7 @@ function on_teachers_door_click()
|
||||
game_api.deactivate_interactive_object("Room_Cover_South_3_001")
|
||||
end)
|
||||
game_api.switch_navigation(12)
|
||||
game_api.play_sound("audio/702171__foxfire__door-opening.ogg")
|
||||
else
|
||||
--Player was in corridor, but tries to open the teacher's door
|
||||
--s3 only
|
||||
@@ -433,6 +427,7 @@ function on_teachers_door_click()
|
||||
game_api.deactivate_interactive_object("Room_Cover_South_3_001")
|
||||
end)
|
||||
game_api.switch_navigation(10)
|
||||
game_api.play_sound("audio/702171__foxfire__door-opening.ogg")
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -454,6 +449,7 @@ function on_teachers_door_click()
|
||||
end
|
||||
|
||||
game_api.switch_navigation(10)
|
||||
game_api.play_sound("audio/702171__foxfire__door-opening.ogg")
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -466,7 +462,10 @@ function on_hall_door_click()
|
||||
|
||||
if (day == 0) then
|
||||
if (game_api.is_dawn()) then
|
||||
game_api.start_dialogue("door_dialog007")
|
||||
if not (morning_did_open_door_index == 6) then
|
||||
game_api.start_dialogue("door_dialog007")
|
||||
game_api.play_sound("audio/398751__anthousai__door-lock-01.ogg")
|
||||
end
|
||||
else
|
||||
if (not hall_door_opened) then
|
||||
hall_door_opened = true
|
||||
@@ -478,12 +477,14 @@ function on_hall_door_click()
|
||||
game_api.set_npc_enabled(0, true)
|
||||
game_api.set_npc_enabled(6, true)
|
||||
game_api.npc_rotate_to(6, 180)
|
||||
game_api.play_sound("audio/702171__foxfire__door-opening.ogg")
|
||||
end
|
||||
end
|
||||
else
|
||||
if (game_api.is_night()) then
|
||||
if not (morning_did_open_door_index == 6) then
|
||||
game_api.start_dialogue("door_dialog001")
|
||||
game_api.play_sound("audio/398751__anthousai__door-lock-01.ogg")
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -492,14 +493,19 @@ end
|
||||
function on_s1_door_click()
|
||||
local day = game_api.getIntValue("day")
|
||||
if (day == 0) and(game_api.is_dawn()) then
|
||||
game_api.start_dialogue("door_dialog007")
|
||||
if not (morning_did_open_door_index == 1) then
|
||||
game_api.start_dialogue("door_dialog007")
|
||||
game_api.play_sound("audio/398751__anthousai__door-lock-01.ogg")
|
||||
end
|
||||
else
|
||||
if (game_api.is_night()) then
|
||||
if not (morning_did_open_door_index == 1) then
|
||||
game_api.start_dialogue("door_dialog001")
|
||||
game_api.play_sound("audio/398751__anthousai__door-lock-01.ogg")
|
||||
end
|
||||
else
|
||||
game_api.start_dialogue("door_dialog006")
|
||||
game_api.play_sound("audio/398751__anthousai__door-lock-01.ogg")
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -507,14 +513,19 @@ end
|
||||
function on_s2_door_click()
|
||||
local day = game_api.getIntValue("day")
|
||||
if (day == 0) and(game_api.is_dawn()) then
|
||||
game_api.start_dialogue("door_dialog007")
|
||||
if not (morning_did_open_door_index == 2) then
|
||||
game_api.start_dialogue("door_dialog007")
|
||||
game_api.play_sound("audio/398751__anthousai__door-lock-01.ogg")
|
||||
end
|
||||
else
|
||||
if (game_api.is_night()) then
|
||||
if not (morning_did_open_door_index == 2) then
|
||||
game_api.start_dialogue("door_dialog001")
|
||||
game_api.play_sound("audio/398751__anthousai__door-lock-01.ogg")
|
||||
end
|
||||
else
|
||||
game_api.start_dialogue("door_dialog006")
|
||||
game_api.play_sound("audio/398751__anthousai__door-lock-01.ogg")
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -522,11 +533,15 @@ end
|
||||
function on_n2_door_click()
|
||||
local day = game_api.getIntValue("day")
|
||||
if (day == 0) and(game_api.is_dawn()) then
|
||||
game_api.start_dialogue("door_dialog007")
|
||||
if not (morning_did_open_door_index == 4) then
|
||||
game_api.start_dialogue("door_dialog007")
|
||||
game_api.play_sound("audio/398751__anthousai__door-lock-01.ogg")
|
||||
end
|
||||
else
|
||||
if (game_api.is_night()) then
|
||||
if not (morning_did_open_door_index == 4) then
|
||||
game_api.start_dialogue("door_dialog001")
|
||||
game_api.play_sound("audio/398751__anthousai__door-lock-01.ogg")
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -641,6 +656,7 @@ function on_teacher_arrived_intermediate()
|
||||
game_api.switch_navigation(2)
|
||||
game_api.npc_walk_to(0, 4.94194, 0, 6.64111, on_teacher_arrived)
|
||||
teacher_arrived = true
|
||||
game_api.play_sound("audio/702171__foxfire__door-opening.ogg")
|
||||
end
|
||||
|
||||
function on_lection_cutscene_fadein_callback()
|
||||
@@ -1226,6 +1242,8 @@ function on_aiperi_opens_door()
|
||||
game_api.start_dialogue("dialog_aiperi_morning001")
|
||||
end)
|
||||
game_api.player_walk_to(0.0, 0.0, 10.0, nil)
|
||||
|
||||
game_api.play_sound("audio/702171__foxfire__door-opening.ogg")
|
||||
end
|
||||
elseif (morning_can_open_door_index == 5) then
|
||||
if (morning_did_open_door_index == 0) then
|
||||
@@ -1252,6 +1270,8 @@ function on_aiperi_opens_door()
|
||||
game_api.start_dialogue("dialog_aiperi_morning001")
|
||||
end)
|
||||
game_api.player_walk_to(3.52174, 0, 6.28993, nil)
|
||||
|
||||
game_api.play_sound("audio/702171__foxfire__door-opening.ogg")
|
||||
end
|
||||
elseif (morning_can_open_door_index == 4) then
|
||||
if (morning_did_open_door_index == 0) then
|
||||
@@ -1278,6 +1298,8 @@ function on_aiperi_opens_door()
|
||||
game_api.start_dialogue("dialog_aiperi_morning001")
|
||||
end)
|
||||
game_api.player_walk_to(3.36055, 0, -2.0345, nil)
|
||||
|
||||
game_api.play_sound("audio/702171__foxfire__door-opening.ogg")
|
||||
end
|
||||
elseif (morning_can_open_door_index == 2) then
|
||||
if (morning_did_open_door_index == 0) then
|
||||
@@ -1304,6 +1326,8 @@ function on_aiperi_opens_door()
|
||||
game_api.start_dialogue("dialog_aiperi_morning001")
|
||||
end)
|
||||
game_api.player_walk_to(-3.63363, 0, -1.50727, nil)
|
||||
|
||||
game_api.play_sound("audio/702171__foxfire__door-opening.ogg")
|
||||
end
|
||||
elseif (morning_can_open_door_index == 1) then
|
||||
if (morning_did_open_door_index == 0) then
|
||||
@@ -1330,6 +1354,8 @@ function on_aiperi_opens_door()
|
||||
game_api.start_dialogue("dialog_aiperi_morning001")
|
||||
end)
|
||||
game_api.player_walk_to(-3.64494, 0, -9.66711, nil)
|
||||
|
||||
game_api.play_sound("audio/702171__foxfire__door-opening.ogg")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user