Fixing dialogues and cutscenes, minor bug fixing

This commit is contained in:
Vladislav Khorev committed 2026-06-13 15:07:09 +03:00
1 parent 2b32fce5e0
commit fff5a9d4aa
18 files changed
+4010 -2208

No files matched your search

+29 -14
View File
@@ -107,7 +107,7 @@ function on_bed_sleep()
game_api.set_player_hp(200)
--game_api.set_day() - done in cutscene
local day = game_api.getIntValue("day")
game_api.setIntValue("day", day+1)
game_api.setIntValue("day", day + 1)
print("Setting to day 1----x")
end
end
@@ -204,34 +204,49 @@ game_api.set_enter_night_callback(
end
)
local chat0_opened = false
local chat1_opened = false
local chat2_opened = false
game_api.set_chat_callbacks(
function()
if not chat0_opened then
chat0_opened = true
game_api.start_dialogue("dialog_chat_aiperi001")
if (not game_api.is_night()) and (not game_api.is_dawn()) then
local aiperi_chat_opened = game_api.getIntValue("aiperi_chat_opened")
if aiperi_chat_opened == 0 then
game_api.setIntValue("aiperi_chat_opened", 1)
local aiperi_knife_aware = game_api.getIntValue("aiperi_knife_aware")
local aiperi_talked_after_knife = game_api.getIntValue("aiperi_talked_after_knife")
if (player_hold_knife) and (aiperi_talked_after_knife == 0) then
game_api.start_dialogue("dialog_chat_aiperi003")
game_api.setIntValue("aiperi_talked_after_knife", 1)
else
if aiperi_knife_aware == 0 then
local lection_is_over = game_api.getIntValue("lection_is_over")
if (lection_is_over == 1) then
game_api.start_dialogue("dialog_chat_aiperi002")
else
game_api.start_dialogue("dialog_chat_aiperi001")
end
end
end
end
end
end,
function()
if not chat1_opened then
chat1_opened = true
local parents_chat_opened = game_api.getIntValue("parents_chat_opened")
if parents_chat_opened == 0 then
game_api.setIntValue("parents_chat_opened", 1)
game_api.start_dialogue("dialog_chat_parents001")
end
end,
function()
if not chat2_opened then
chat2_opened = true
local news_chat_opened = game_api.getIntValue("news_chat_opened")
if news_chat_opened == 0 then
game_api.setIntValue("news_chat_opened", 1)
game_api.start_dialogue("dialog_chat_news001")
end
end
)
function on_aiperi_dialog_over()
print("on_aiperi_dialog_over called")
game_api.close_phone()
end