Working on main menu and tutorials

This commit is contained in:
Vladislav Khorev committed 2026-06-09 17:20:03 +03:00
1 parent 0ed7021e90
commit 80133aa8c8
9 files changed
+43 -211

No files matched your search

+11 -6
View File
@@ -12,12 +12,9 @@ night_time = false
player_left_darklands = false
morning_can_open_door_index = 0
morning_did_open_door_index = 0
--player_ghost_aware = false
ghost_gone = false
function dialog_aiperi_give_key()
@@ -171,7 +168,7 @@ function on_npc_interact(npc_index)
end
end
if npc_index == 0 then
if (player_ghost_aware) then
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")
@@ -209,6 +206,8 @@ function on_quest_over()
game_api.set_npc_enabled(4, false)
game_api.set_npc_enabled(5, false)
game_api.quest_set_objective_completed("ghost_release", "ghost_release_show")
game_api.start_cutscene("game_complete_cutscene001")
end
--[[
@@ -605,7 +604,7 @@ end
function on_report_card_pickup()
local player_ghost_aware = game_api.getIntValue("ghost_aware")
if player_ghost_aware then
if player_ghost_aware == 1 then
local player_has_report_card = game_api.getIntValue("player_has_report_card")
local report_card_signed = game_api.getIntValue("report_card_signed")
@@ -1077,7 +1076,7 @@ function on_aiperi_opens_door()
end
function on_aiperi_morning_dialog_finished()
game_api.npc_walk_to(1, 0.764049, 0, -8.5, nil)
game_api.npc_walk_to(1, 0.98998, 0, -7.525, nil)
end
game_api.set_location_callbacks(
@@ -1127,6 +1126,12 @@ function debugAllOpen()
end
game_api.set_cutscene_callback("game_complete_cutscene001", function()
print("---Cutscene done!")
game_api.return_to_main_menu()
end)
setDay0setup()
game_api.switch_navigation(0)