Working on dialog editor, on dialogs, on phone
This commit is contained in:
1 parent
0e27521bea
commit
8f7797789d
63 files changed
+9502
-1459
No files matched your search
@@ -25,7 +25,7 @@ journal_picked_up = false
|
||||
|
||||
function on_npc_interact(npc_index)
|
||||
if npc_index == 2 then
|
||||
local player_alik_aware = game_api.getIntValue("player_alik_aware")
|
||||
local player_alik_aware = game_api.getIntValue("alik_aware")
|
||||
local player_container_aware = game_api.getIntValue("player_container_aware")
|
||||
if player_container_aware == 1 then
|
||||
game_api.start_dialogue("dialog_alik003")
|
||||
@@ -198,6 +198,37 @@ 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")
|
||||
end
|
||||
end,
|
||||
function()
|
||||
if not chat1_opened then
|
||||
chat1_opened = true
|
||||
game_api.start_dialogue("dialog_chat_parents001")
|
||||
end
|
||||
end,
|
||||
function()
|
||||
if not chat2_opened then
|
||||
chat2_opened = true
|
||||
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
|
||||
|
||||
game_api.set_location_callbacks(
|
||||
function()
|
||||
print("Enter location dorm")
|
||||
|
||||
Reference in new issue
Block a user