Working on scripts, make game finished
This commit is contained in:
1 parent
8f7797789d
commit
1a00e3d4a2
3 files changed
+2202
-2
No files matched your search
@@ -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
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user