Navigation adjusting
This commit is contained in:
1 parent
e618c91415
commit
b973d714cc
22 files changed
+6219
-64
No files matched your search
@@ -31,7 +31,7 @@ function knife_dialog_zone001_enter_callback()
|
||||
if (player_hold_knife == false) then
|
||||
if lection_is_over then
|
||||
game_api.start_dialogue("knife_dialog001")
|
||||
game_api.switch_navigation(0)
|
||||
game_api.switch_navigation(4)
|
||||
end
|
||||
else
|
||||
if (night_time == false) then
|
||||
@@ -43,7 +43,14 @@ end
|
||||
|
||||
function knife_dialog_zone001_exit_callback()
|
||||
print("knife_dialog_zone001_exit_callback--!")
|
||||
game_api.switch_navigation(0)
|
||||
if (lection_is_over) then
|
||||
if (teacher_door_opened) then
|
||||
game_api.switch_navigation(3)
|
||||
else
|
||||
game_api.switch_navigation(2)
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
game_api.set_trigger_zone_callbacks("knife_dialog_zone001",
|
||||
@@ -128,28 +135,30 @@ function on_library_door_click()
|
||||
end
|
||||
|
||||
function on_teachers_door_click()
|
||||
if (not teacher_arrived) then
|
||||
game_api.start_dialogue("door_dialog001")
|
||||
else
|
||||
if (not teacher_door_opened) then
|
||||
teacher_door_opened = true
|
||||
game_api.rotate_object("Room_S_2_Leaf001", 90, 0.5, nil)
|
||||
if (not teacher_arrived) then
|
||||
game_api.start_dialogue("door_dialog001")
|
||||
else
|
||||
if (not teacher_door_opened) then
|
||||
teacher_door_opened = true
|
||||
game_api.rotate_object("Room_S_2_Leaf001", 90, 0.5, nil)
|
||||
game_api.fade_object("Room_Cover_South_3_001", 0, 0.5, function()
|
||||
game_api.deactivate_interactive_object("Room_Cover_South_3_001")
|
||||
game_api.deactivate_interactive_object("Room_Cover_South_3_001")
|
||||
end)
|
||||
end
|
||||
end
|
||||
game_api.switch_navigation(3)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function on_hall_door_click()
|
||||
if (not hall_door_opened) then
|
||||
hall_door_opened = true
|
||||
game_api.rotate_object("Hall_Leaf001", 90, 0.5, nil)
|
||||
game_api.fade_object("Room_Cover_Main_Hall_001", 0, 0.5, function()
|
||||
game_api.deactivate_interactive_object("Room_Cover_Main_Hall_001")
|
||||
end)
|
||||
game_api.set_npc_enabled(0, true)
|
||||
end
|
||||
if (not hall_door_opened) then
|
||||
hall_door_opened = true
|
||||
game_api.switch_navigation(1)
|
||||
game_api.rotate_object("Hall_Leaf001", 90, 0.5, nil)
|
||||
game_api.fade_object("Room_Cover_Main_Hall_001", 0, 0.5, function()
|
||||
game_api.deactivate_interactive_object("Room_Cover_Main_Hall_001")
|
||||
end)
|
||||
game_api.set_npc_enabled(0, true)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -164,13 +173,17 @@ end
|
||||
function book_dialog_zone001_enter_callback()
|
||||
if (night_time == false) then
|
||||
game_api.start_dialogue("book_dialog001")
|
||||
game_api.switch_navigation(0)
|
||||
game_api.switch_navigation(5)
|
||||
end
|
||||
if (player_in_darklands) then
|
||||
game_api.start_dialogue("ghost_dialog001")
|
||||
game_api.set_trigger_zone_enabled(1, false)
|
||||
end
|
||||
end
|
||||
|
||||
function book_dialog_zone001_exit_callback()
|
||||
if (night_time == false) then
|
||||
game_api.switch_navigation(0)
|
||||
game_api.switch_navigation(3)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -190,6 +203,7 @@ game_api.rotate_object("Room_N_2_Leaf001", -90, 0.5, nil)
|
||||
game_api.fade_object("Room_Cover_North_3_001", 0, 0.5, function()
|
||||
game_api.deactivate_interactive_object("Room_Cover_North_3_001")
|
||||
end)
|
||||
game_api.switch_navigation(2)
|
||||
game_api.npc_walk_to(0, 3.19574, 0, 6.45595, on_teacher_arrived)
|
||||
teacher_arrived = true
|
||||
end
|
||||
@@ -198,18 +212,16 @@ end
|
||||
game_api.set_cutscene_callback("test_cutscene_01", function()
|
||||
print("Cutscene done!")
|
||||
lection_is_over = true
|
||||
if (player_hold_knife == false) then
|
||||
game_api.set_npc_enabled(1, true)
|
||||
end
|
||||
game_api.npc_walk_to(0, 0.916388, 0, 6.32083, on_teacher_arrived_intermediate)
|
||||
game_api.npc_walk_to(0, 0.758123, 0, 6.50063, on_teacher_arrived_intermediate)
|
||||
end)
|
||||
|
||||
game_api.set_cutscene_callback("test_cutscene_02", function()
|
||||
print("Cutscene 2 done!")
|
||||
night_time = true
|
||||
game_api.set_trigger_zone_enabled(1, false)
|
||||
--game_api.set_trigger_zone_enabled(1, false)
|
||||
game_api.set_npc_enabled(0, false)
|
||||
game_api.switch_navigation(0)
|
||||
game_api.switch_navigation(5)
|
||||
game_api.rotate_object("Room_N_2_Leaf001", 90, 0.01, nil)
|
||||
game_api.activate_interactive_object("Room_Cover_Corridor_001")
|
||||
game_api.activate_interactive_object("Room_Cover_Main_Hall_001")
|
||||
@@ -310,7 +322,7 @@ game_api.deactivate_interactive_object("Note001")
|
||||
|
||||
|
||||
game_api.set_npc_enabled(0, false)
|
||||
|
||||
game_api.set_npc_enabled(1, false)
|
||||
game_api.set_npc_enabled(2, false)
|
||||
game_api.set_npc_enabled(3, false)
|
||||
game_api.set_npc_enabled(4, false)
|
||||
|
||||
Reference in new issue
Block a user