Working on scripts, make game finished

This commit is contained in:
Vladislav Khorev 2026-06-05 22:02:40 +03:00
parent 8f7797789d
commit 1a00e3d4a2
3 changed files with 2202 additions and 2 deletions

File diff suppressed because it is too large Load Diff

View File

@ -257,11 +257,21 @@ function on_library_door_click()
game_api.start_dialogue("door_dialog001")
end]]
print("Library door step 1")
if (game_api.is_night()) then
print("Library door step 2")
print("morning_did_open_door_index")
print(morning_did_open_door_index)
print("game.is_dawn()")
print(game.is_dawn())
if (not game.is_dawn() or not (morning_did_open_door_index == 4)) then
print("Library door step 3")
game_api.start_dialogue("door_dialog001")
end
print("Library door step 4")
end
print("Library door step5")
--[[
if (game_api.is_night() and not game.is_dawn()) then
game_api.start_dialogue("door_dialog001")
@ -270,6 +280,7 @@ function on_library_door_click()
game_api.start_dialogue("door_dialog001")
end]]
end
print("Library door step 5")
end
function on_teachers_door_click()
@ -388,6 +399,8 @@ function on_s1_door_click()
if not (morning_did_open_door_index == 1) then
game_api.start_dialogue("door_dialog001")
end
else
game_api.start_dialogue("door_dialog001")
end
--[[
if (morning_can_open_door_index == 1) then
@ -417,6 +430,8 @@ function on_s2_door_click()
if not (morning_did_open_door_index == 2) then
game_api.start_dialogue("door_dialog001")
end
else
game_api.start_dialogue("door_dialog001")
end
--[[
@ -695,6 +710,20 @@ game_api.set_darklands_callbacks(
--All set before
morning_can_open_door_index = 0
end
if (morning_can_open_door_index == 0) or (morning_can_open_door_index==3) then
game_api.setIntValue("morning_player_can_leave", 1)
game_api.getIntValue("morning_aiperi_save_again", 0)
else
game_api.setIntValue("morning_player_can_leave", 0)
local morning_aiperi_talked = game_api.getIntValue("morning_aiperi_talked")
if (morning_aiperi_talked == 1) then
game_api.getIntValue("morning_aiperi_save_again", 1)
end
end
end
)

View File

@ -200,8 +200,7 @@ namespace ZL
LocationSetup uniInteriorParams;
uniInteriorParams.gameObjectsJsonPath = "resources/config2/gameobjects_uni_interior.json";
uniInteriorParams.npcsJsonPath = "resources/config2/npcs_uni_interior.json";
uniInteriorParams.dialoguesJsonPath = "resources/dialogue/uni_interior_dialogues_003.json";
uniInteriorParams.dialoguesJsonPath = "resources/dialogue/uni_interior_dialogues_004.json";
/*
uniInteriorParams.navigationJsonPaths = {