Mainly dialogues are completed
This commit is contained in:
1 parent
2d8f80b675
commit
bd994a8690
14 files changed
+5009
-1115
No files matched your search
@@ -156,6 +156,63 @@ function on_bookshelf_clicked()
|
||||
on_book_pickup()
|
||||
end
|
||||
|
||||
function on_bookshelf2_clicked()
|
||||
local day = game_api.getIntValue("day")
|
||||
if (game_api.is_night()) or (day >= 1) then
|
||||
game_api.start_dialogue("book_dialog007")
|
||||
else
|
||||
if (teacher_told_about_book and (player_hold_book==false)) then
|
||||
game_api.start_dialogue("book_dialog010")
|
||||
else
|
||||
game_api.start_dialogue("book_dialog007")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function on_bookshelf3_clicked()
|
||||
local day = game_api.getIntValue("day")
|
||||
if (game_api.is_night()) or (day >= 1) then
|
||||
game_api.start_dialogue("book_dialog008")
|
||||
else
|
||||
if (teacher_told_about_book and (player_hold_book==false)) then
|
||||
game_api.start_dialogue("book_dialog011")
|
||||
else
|
||||
game_api.start_dialogue("book_dialog008")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function on_bookshelf4_clicked()
|
||||
local day = game_api.getIntValue("day")
|
||||
if (game_api.is_night()) or (day >= 1) then
|
||||
game_api.start_dialogue("book_dialog009")
|
||||
else
|
||||
if (teacher_told_about_book and (player_hold_book==false)) then
|
||||
game_api.start_dialogue("book_dialog012")
|
||||
else
|
||||
game_api.start_dialogue("book_dialog009")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function on_bookshelf5_clicked()
|
||||
local day = game_api.getIntValue("day")
|
||||
if (game_api.is_night()) or (day >= 1) then
|
||||
game_api.start_dialogue("book_dialog013")
|
||||
else
|
||||
if (teacher_told_about_book and (player_hold_book==false)) then
|
||||
game_api.start_dialogue("book_dialog014")
|
||||
else
|
||||
game_api.start_dialogue("book_dialog013")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function on_cake_clicked()
|
||||
game_api.start_dialogue("cake_dialog001")
|
||||
end
|
||||
|
||||
|
||||
function on_npc_interact(npc_index)
|
||||
local player_ghost_aware = game_api.getIntValue("ghost_aware")
|
||||
local player_hold_key = game_api.getIntValue("player_hold_key")
|
||||
@@ -429,6 +486,7 @@ function on_hall_door_click()
|
||||
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")
|
||||
else
|
||||
@@ -443,6 +501,7 @@ function on_s1_door_click()
|
||||
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")
|
||||
else
|
||||
@@ -457,6 +516,7 @@ function on_s2_door_click()
|
||||
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")
|
||||
else
|
||||
@@ -563,6 +623,9 @@ function on_sleep_cutscene()
|
||||
game_api.set_object_alpha("Room_Cover_South_3_001", 1)
|
||||
game_api.set_object_alpha("Room_Cover_Main_Hall_001", 1)
|
||||
game_api.activate_interactive_object("Note001")
|
||||
|
||||
game_api.deactivate_interactive_object("car001")
|
||||
game_api.deactivate_interactive_object("car001wheels")
|
||||
teacher_door_opened = false
|
||||
end
|
||||
|
||||
@@ -606,8 +669,8 @@ function on_note_pickup()
|
||||
end
|
||||
|
||||
function on_report_card_pickup()
|
||||
local player_ghost_aware = game_api.getIntValue("ghost_aware")
|
||||
if player_ghost_aware == 1 then
|
||||
local player_repord_card_discussed = game_api.getIntValue("player_repord_card_discussed")
|
||||
if player_repord_card_discussed == 1 then
|
||||
local player_has_report_card = game_api.getIntValue("player_has_report_card")
|
||||
--local report_card_signed = game_api.getIntValue("report_card_signed")
|
||||
|
||||
@@ -795,6 +858,9 @@ function setDay0setup()
|
||||
game_api.set_npc_enabled(5, false)
|
||||
game_api.set_npc_enabled(6, false)
|
||||
|
||||
game_api.activate_interactive_object("car001")
|
||||
game_api.activate_interactive_object("car001wheels")
|
||||
|
||||
end
|
||||
|
||||
function setDay1setup()
|
||||
@@ -832,6 +898,11 @@ function setDay1setup()
|
||||
game_api.set_npc_enabled(6, true)
|
||||
|
||||
game_api.npc_set_position(1, 0.98998, 0, -7.525)
|
||||
|
||||
game_api.deactivate_interactive_object("Cake001")
|
||||
|
||||
game_api.activate_interactive_object("car001")
|
||||
game_api.activate_interactive_object("car001wheels")
|
||||
end
|
||||
|
||||
function setDay1MorningSetup()
|
||||
@@ -865,6 +936,9 @@ function setDay1MorningSetup()
|
||||
game_api.set_object_alpha("Room_Cover_South_3_001", 1)
|
||||
game_api.set_object_alpha("Room_Cover_Corridor_001", 1)
|
||||
game_api.set_object_alpha("Room_Cover_Main_Hall_001", 1)
|
||||
|
||||
game_api.deactivate_interactive_object("car001")
|
||||
game_api.deactivate_interactive_object("car001wheels")
|
||||
|
||||
-- TODO: Make check for teacher_door_opened false or true
|
||||
|
||||
@@ -970,6 +1044,9 @@ function setDay1NightSetup()
|
||||
game_api.set_npc_enabled(4, false)
|
||||
game_api.set_npc_enabled(5, false)
|
||||
game_api.set_npc_enabled(6, false)
|
||||
|
||||
game_api.deactivate_interactive_object("car001")
|
||||
game_api.deactivate_interactive_object("car001wheels")
|
||||
|
||||
local px = game_api.get_player_x()
|
||||
local pz = game_api.get_player_z()
|
||||
|
||||
Reference in new issue
Block a user