Working on scripts
This commit is contained in:
1 parent
c086fe1ef0
commit
4044acefb2
35 files changed
+107190
-185
No files matched your search
@@ -107,6 +107,9 @@ function on_npc_interact(npc_index)
|
||||
game_api.start_dialogue("teacher_dialog001")
|
||||
--game_api.set_trigger_zone_enabled(2, false)
|
||||
end
|
||||
if npc_index == 2 then
|
||||
game_api.start_dialogue("dialog_with_ghost001")
|
||||
end
|
||||
end
|
||||
|
||||
function teacher_zone001_enter_callback()
|
||||
@@ -176,7 +179,7 @@ game_api.start_dialogue("book_dialog001")
|
||||
game_api.switch_navigation(5)
|
||||
end
|
||||
if (player_in_darklands) then
|
||||
game_api.start_dialogue("ghost_dialog001")
|
||||
game_api.start_dialogue("ghost_dialog002")
|
||||
game_api.set_trigger_zone_enabled(3, false)
|
||||
end
|
||||
end
|
||||
@@ -242,71 +245,43 @@ function on_note_pickup()
|
||||
game_api.start_dialogue("note_dialog001")
|
||||
game_api.pickup_item("note_spell")
|
||||
game_api.deactivate_interactive_object("Note001")
|
||||
|
||||
-- After the moving to darklands:
|
||||
player_in_darklands = true
|
||||
darklands_fadein = 2.0
|
||||
|
||||
game_api.fade_object("Room_Cover_Corridor_001", 0, darklands_fadein, function()
|
||||
game_api.deactivate_interactive_object("Room_Cover_Corridor_001")
|
||||
end)
|
||||
|
||||
game_api.fade_object("Room_Cover_South_1_001", 0, darklands_fadein, function()
|
||||
game_api.deactivate_interactive_object("Room_Cover_South_1_001")
|
||||
end)
|
||||
|
||||
game_api.fade_object("Room_Cover_South_2_001", 0, darklands_fadein, function()
|
||||
game_api.deactivate_interactive_object("Room_Cover_South_2_001")
|
||||
end)
|
||||
|
||||
game_api.fade_object("Room_Cover_South_3_001", 0, darklands_fadein, function()
|
||||
game_api.deactivate_interactive_object("Room_Cover_South_3_001")
|
||||
end)
|
||||
|
||||
game_api.fade_object("Room_Cover_North_1_001", 0, darklands_fadein, function()
|
||||
game_api.deactivate_interactive_object("Room_Cover_North_1_001")
|
||||
end)
|
||||
|
||||
game_api.fade_object("Room_Cover_North_2_001", 0, darklands_fadein, function()
|
||||
game_api.deactivate_interactive_object("Room_Cover_North_2_001")
|
||||
end)
|
||||
|
||||
game_api.fade_object("Room_Cover_North_3_001", 0, darklands_fadein, function()
|
||||
game_api.deactivate_interactive_object("Room_Cover_North_3_001")
|
||||
end)
|
||||
|
||||
game_api.fade_object("Room_Cover_Main_Hall_001", 0, darklands_fadein, function()
|
||||
game_api.deactivate_interactive_object("Room_Cover_Main_Hall_001")
|
||||
end)
|
||||
|
||||
game_api.fade_object("Room_S_0_Leaf001", 0, darklands_fadein, function()
|
||||
game_api.deactivate_interactive_object("Room_S_0_Leaf001")
|
||||
end)
|
||||
game_api.fade_object("Room_S_1_Leaf001", 0, darklands_fadein, function()
|
||||
game_api.deactivate_interactive_object("Room_S_1_Leaf001")
|
||||
end)
|
||||
game_api.fade_object("Room_S_2_Leaf001", 0, darklands_fadein, function()
|
||||
game_api.deactivate_interactive_object("Room_S_2_Leaf001")
|
||||
end)
|
||||
game_api.fade_object("Room_N_1_Leaf001", 0, darklands_fadein, function()
|
||||
game_api.deactivate_interactive_object("Room_N_1_Leaf001")
|
||||
end)
|
||||
game_api.fade_object("Room_N_2_Leaf001", 0, darklands_fadein, function()
|
||||
game_api.deactivate_interactive_object("Room_N_2_Leaf001")
|
||||
end)
|
||||
game_api.fade_object("Hall_Leaf001", 0, darklands_fadein, function()
|
||||
game_api.deactivate_interactive_object("Hall_Leaf001")
|
||||
end)
|
||||
|
||||
game_api.set_npc_enabled(2, true)
|
||||
game_api.set_npc_enabled(3, true)
|
||||
game_api.set_npc_enabled(4, true)
|
||||
game_api.set_npc_enabled(5, true)
|
||||
|
||||
game_api.switch_navigation(6)
|
||||
|
||||
end
|
||||
|
||||
function on_report_card_pickup()
|
||||
game_api.start_dialogue("dialog_report_card001")
|
||||
end
|
||||
function on_bookshelf_teacher_clicked()
|
||||
game_api.start_dialogue("dialog_report_card001")
|
||||
end
|
||||
|
||||
|
||||
game_api.set_darklands_callbacks(
|
||||
function()
|
||||
game_api.start_dialogue("ghost_dialog001")
|
||||
game_api.set_npc_enabled(2, true)
|
||||
game_api.set_npc_enabled(3, true)
|
||||
game_api.set_npc_enabled(4, true)
|
||||
game_api.set_npc_enabled(5, true)
|
||||
|
||||
game_api.switch_navigation(6)
|
||||
player_in_darklands = true
|
||||
|
||||
end,
|
||||
function()
|
||||
player_in_darklands = false
|
||||
game_api.start_cutscene("test_cutscene_03")
|
||||
game_api.set_npc_enabled(2, false)
|
||||
game_api.set_npc_enabled(2, false)
|
||||
game_api.set_npc_enabled(3, false)
|
||||
game_api.set_npc_enabled(4, false)
|
||||
game_api.set_npc_enabled(5, false)
|
||||
game_api.switch_navigation(3)
|
||||
game_api.setIntValue("day", 1)
|
||||
game_api.setIntValue("need_sleep", 1)
|
||||
game_api.set_player_hp(10)
|
||||
end
|
||||
)
|
||||
|
||||
|
||||
game_api.set_trigger_zone_callbacks("teacher_dialog_zone001",
|
||||
teacher_zone001_enter_callback,
|
||||
|
||||
Reference in new issue
Block a user