From 1a00e3d4a20f7337e8f9a8f41d13f9ec042c3af1 Mon Sep 17 00:00:00 2001 From: Vladislav Khorev Date: Fri, 5 Jun 2026 22:02:40 +0300 Subject: [PATCH] Working on scripts, make game finished --- .../dialogue/uni_interior_dialogues_004.json | 2172 +++++++++++++++++ resources/start_uni_interior.lua | 29 + src/Game.cpp | 3 +- 3 files changed, 2202 insertions(+), 2 deletions(-) create mode 100644 resources/dialogue/uni_interior_dialogues_004.json diff --git a/resources/dialogue/uni_interior_dialogues_004.json b/resources/dialogue/uni_interior_dialogues_004.json new file mode 100644 index 0000000..c06d136 --- /dev/null +++ b/resources/dialogue/uni_interior_dialogues_004.json @@ -0,0 +1,2172 @@ +{ + "dialogues": [ + { + "id": "knife_dialog001", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Айпери", + "portrait": "resources/dialogue/portrait_aiperi.png", + "text": "Ты куда собрался, Бекзат?", + "next": "line_2" + }, + { + "id": "line_2", + "type": "Line", + "speaker": "Айпери", + "portrait": "resources/dialogue/portrait_aiperi.png", + "text": "Вот тебе ключ от учительской. Иди туда и забери нож.", + "next": "line_3", + "luaCallback": "dialog_aiperi_give_key" + }, + { + "id": "line_3", + "type": "Line", + "speaker": "Айпери", + "portrait": "resources/dialogue/portrait_aiperi.png", + "text": "Пока ты не принесешь мне нож из учительской, никуда я тебя не выпущу.", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "knife_dialog002", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Айпери", + "portrait": "resources/dialogue/portrait_aiperi.png", + "text": "Ты куда собрался, Бекзат?", + "next": "line_2" + }, + { + "id": "line_2", + "type": "Line", + "speaker": "Айпери", + "portrait": "resources/dialogue/portrait_aiperi.png", + "text": "Пока ты не принесешь мне нож из учительской, никуда я тебя не выпущу.", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "knife_dialog_second001", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Куда Айпери убежала?", + "next": "line_2" + }, + { + "id": "line_2", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Ладно, я отдам ей нож завтра.", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "aiperi_dialog001", + "start": "line_1", + "uninterruptible": true, + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Айпери", + "portrait": "resources/dialogue/portrait_aiperi.png", + "text": "Так где нож, Бекзат? Ты мне его когда вернешь?", + "next": "line_2" + }, + { + "id": "line_2", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Извини, но этот нож внезапно мне очень нужен.", + "next": "line_3" + }, + { + "id": "line_3", + "type": "Line", + "speaker": "Айпери", + "portrait": "resources/dialogue/portrait_aiperi.png", + "text": "Бекзат, какого черта?", + "next": "line_4" + }, + { + "id": "line_4", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "У меня вопрос, ты знаешь про Бегимай с прошлого курса?", + "next": "line_5" + }, + { + "id": "line_5", + "type": "Line", + "speaker": "Айпери", + "portrait": "resources/dialogue/portrait_aiperi.png", + "text": "Я слышала она не смогла сдать курсовую, прыгнула с окна и разбилась насмерть.", + "next": "line_6" + }, + { + "id": "line_6", + "type": "Line", + "speaker": "Айпери", + "portrait": "resources/dialogue/portrait_aiperi.png", + "text": "Менты приезжали, следователи допрашивали ректора, такой скандал был.", + "next": "line_7" + }, + { + "id": "line_7", + "type": "Line", + "speaker": "Айпери", + "portrait": "resources/dialogue/portrait_aiperi.png", + "text": "А зачем тебе?", + "next": "line_8" + }, + { + "id": "line_8", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Ты не знаешь кого-нибудь, кто с ней был знаком?", + "next": "line_9" + }, + { + "id": "line_9", + "type": "Line", + "speaker": "Айпери", + "portrait": "resources/dialogue/portrait_aiperi.png", + "text": "У тебя в общаге живет Алик, в комнате напротив тебя.", + "next": "line_10" + }, + { + "id": "line_10", + "type": "Line", + "speaker": "Айпери", + "portrait": "resources/dialogue/portrait_aiperi.png", + "text": "Он с того же курса. Можешь у него поспрашивать.", + "next": "line_11" + }, + { + "id": "line_11", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Хорошо, спасибо!", + "objectiveComplete": "ghost_lore.ghost_lore_aiperi", + "questUnlock": "ghost_release", + "objectiveVisible": "ghost_lore.ghost_lore_alik", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "aiperi_dialog002", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Айпери", + "portrait": "resources/dialogue/portrait_aiperi.png", + "text": "Я не знаю какие у тебя там дела, Бекзат,", + "next": "line_2" + }, + { + "id": "line_2", + "type": "Line", + "speaker": "Айпери", + "portrait": "resources/dialogue/portrait_aiperi.png", + "text": "Но ты должен вернуть мне нож поскорее, а то я тебе голову оторву!", + "next": "line_3" + }, + { + "id": "line_3", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Я обещаю, сейчас я один вопрос решу и верну тебе нож.", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "aiperi_dialog003", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Айпери", + "portrait": "resources/dialogue/portrait_aiperi.png", + "text": "Так где нож, Бекзат? Ты мне его когда вернешь?", + "next": "line_2" + }, + { + "id": "line_2", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Я не могу дать тебе нож, он мне нужен чтобы убивать призраков.", + "next": "line_3" + }, + { + "id": "line_3", + "type": "Line", + "speaker": "Айпери", + "portrait": "resources/dialogue/portrait_aiperi.png", + "text": "Что за чушь? Ты со своими компьютерными играми совсем крышей поехал?", + "next": "line_4" + }, + { + "id": "line_4", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Я обещаю, сейчас я один вопрос решу и верну тебе нож.", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "door_dialog001", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Дверь закрыта на ключ.", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "door_teacher_dialog001", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Это дверь в учительскую, и она закрыта. Мне нужно взять ключи у Айпери.", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "door_unlock_dialog001", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Хорошо что эти двери открываются изнутри.", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "door_night_dialog001", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Дверь закрыта на ключ.", + "next": "line_2" + }, + { + "id": "line_2", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Видимо когда я спал, охранник запер дверь.", + "next": "line_3" + }, + { + "id": "line_3", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Это уже не смешно, как я отсюда выберусь?", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "teacher_dialog001", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Аида Дженибековна", + "portrait": "resources/dialogue/portrait_teacher.png", + "text": "Бекзат, не мешай, я занята.", + "next": "line_2" + }, + { + "id": "line_2", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Ладно...", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "teacher_dialog002", + "start": "line_1", + "uninterruptible": true, + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Аида Дженибековна", + "portrait": "resources/dialogue/portrait_teacher.png", + "text": "Бекзат, тебе отдельное задание на модуль.", + "next": "line_2" + }, + { + "id": "line_2", + "type": "Line", + "speaker": "Аида Дженибековна", + "portrait": "resources/dialogue/portrait_teacher.png", + "text": "Подготовь презентацию по теме \"Манас в изложении Жусупа Мамая\".", + "next": "line_3" + }, + { + "id": "line_3", + "type": "Line", + "speaker": "Аида Дженибековна", + "portrait": "resources/dialogue/portrait_teacher.png", + "text": "Книга лежит в библиотеке, но забирать ее из библиотеки нельзя.", + "next": "line_4" + }, + { + "id": "line_4", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Как же я буду готовиться к презентации, если книгу забирать нельзя?", + "next": "line_5" + }, + { + "id": "line_5", + "type": "Line", + "speaker": "Аида Дженибековна", + "portrait": "resources/dialogue/portrait_teacher.png", + "text": "Там в библиотеке есть компьютер, напиши презентацию прямо на нем.", + "next": "line_6" + }, + { + "id": "line_6", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Ладно...", + "objectiveComplete": "study_beginning.study_beginning_task", + "questUnlock": "study_project", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "teacher_dialog003", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Аида Дженибековна, вы помните Бегимай? Она вам курсовую хотела сдать.", + "objectiveComplete": "ghost_lore.ghost_lore_teacher", + "next": "line_2" + }, + { + "id": "line_2", + "type": "Line", + "speaker": "Аида Дженибековна", + "portrait": "resources/dialogue/portrait_teacher.png", + "text": "Да, она говорила что приносила курсовую, но у меня ее нигде нет.", + "next": "line_3" + }, + { + "id": "line_3", + "type": "Line", + "speaker": "Аида Дженибековна", + "portrait": "resources/dialogue/portrait_teacher.png", + "text": "Если ты найдешь и покажешь мне ее курсовую работу, я выставлю ей оценку.", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "teacher_dialog004", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Аида Дженибековна, Бегимай хотела вам курсовую сдать, вы помните?", + "objectiveComplete": "ghost_lore.ghost_lore_teacher", + "next": "line_2" + }, + { + "id": "line_1", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Я принес вам ее курсовую, можете посмотреть?", + "next": "line_2" + }, + { + "id": "line_2", + "type": "Line", + "speaker": "Аида Дженибековна", + "portrait": "resources/dialogue/portrait_teacher.png", + "text": "Хорошо, давай посмотрим.", + "next": "line_3" + }, + { + "id": "line_3", + "type": "Line", + "speaker": "Аида Дженибековна", + "portrait": "resources/dialogue/portrait_teacher.png", + "text": "Да, это ее курсовая работа, я вижу.", + "next": "line_4" + }, + { + "id": "line_4", + "type": "Line", + "speaker": "Аида Дженибековна", + "portrait": "resources/dialogue/portrait_teacher.png", + "text": "Там в шкафу лежат зачетки, найди мне зачетку и принеси мне.", + "next": "line_5" + }, + { + "id": "line_5", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Хорошо!", + "objectiveComplete": "ghost_coursework.ghost_coursework_mark", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "teacher_dialog005", + "start": "line_1", + "uninterruptible": true, + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Аида Дженибековна, Бегимай хотела вам курсовую сдать, вы помните?", + "objectiveComplete": "ghost_lore.ghost_lore_teacher", + "next": "line_2" + }, + { + "id": "line_2", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Я принес вам ее зачетку и ее курсовую работу, посмотрите пожалуйста.", + "next": "line_3" + }, + { + "id": "line_3", + "type": "Line", + "speaker": "Аида Дженибековна", + "portrait": "resources/dialogue/portrait_teacher.png", + "text": "Хорошо, давай посмотрим.", + "next": "line_4" + }, + { + "id": "line_4", + "type": "Line", + "speaker": "Аида Дженибековна", + "portrait": "resources/dialogue/portrait_teacher.png", + "text": "Да, я вижу что курсовая написана хорошо, я ставлю ей максимальный балл.", + "objectiveComplete": "ghost_coursework.ghost_coursework_mark", + "next": "line_5" + }, + { + "id": "line_5", + "type": "Line", + "speaker": "Аида Дженибековна", + "portrait": "resources/dialogue/portrait_teacher.png", + "text": "Вот держи зачетку с оценкой.", + "objectiveComplete": "ghost_release.ghost_release_mark", + "next": "line_6" + }, + { + "id": "line_6", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Спасибо!", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "book_dialog001", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Мне стоит вернуть книгу на место, прежде чем уходить из библиотеки.", + "next": "line_2" + }, + { + "id": "line_2", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Иначе Аида Дженибековна меня убъет.", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "ghost_dialog001", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Куда я попал?", + "next": "line_2" + }, + { + "id": "line_2", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Я что, сплю?", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "ghost_dialog002", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Я вижу какие-то тени!", + "next": "line_2" + }, + { + "id": "line_2", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Мне лучше держать нож наготове.", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "dialog_with_ghost001", + "uninterruptible": true, + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Призрак", + "portrait": "resources/dialogue/portrait_ghost.png", + "text": "Ты посмел заговорить со мной?", + "next": "condition_1" + }, + { + "id": "condition_1", + "type": "Condition", + "conditions": [ + { + "flag": "ghost_aware", + "op": "Equals", + "value": 1 + } + ], + "trueNext": "line_9", + "falseNext": "line_2" + }, + { + "id": "line_9", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Напомни пожалуйста, кто ты?", + "next": "line_10" + }, + { + "id": "line_2", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Ты кто?", + "next": "line_3" + }, + { + "id": "line_3", + "type": "Line", + "speaker": "Бегимай", + "portrait": "resources/dialogue/portrait_ghost.png", + "text": "Меня зовут Бегимай, мне нужно сдать курсовую по манасоведению.", + "next": "line_4" + }, + { + "id": "line_4", + "type": "Line", + "speaker": "Бегимай", + "portrait": "resources/dialogue/portrait_ghost.png", + "text": "Я появляюсь здесь каждую ночь, чтобы сдать курсовую.", + "next": "line_5" + }, + { + "id": "line_5", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "И как я могу заставить тебя уйти отсюда?", + "next": "line_6" + }, + { + "id": "line_6", + "type": "Line", + "speaker": "Бегимай", + "portrait": "resources/dialogue/portrait_ghost.png", + "text": "Я уйду на покой только когда увиду оценку по курсовой в своей зачетке.", + "next": "line_7" + }, + { + "id": "line_7", + "type": "Line", + "speaker": "Бегимай", + "portrait": "resources/dialogue/portrait_ghost.png", + "text": "А до тех пор, я буду появлятся здесь каждую ночь.", + "next": "line_8" + }, + { + "id": "line_8", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Ладно, я что-нибудь придумаю.", + "luaCallback": "", + "next": "setflag_1", + "questUnlock": "ghost_lore" + }, + { + "id": "setflag_1", + "type": "SetFlag", + "effects": [ + { + "flag": "ghost_aware", + "value": 1 + } + ], + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + }, + { + "id": "line_10", + "type": "Line", + "speaker": "Бегимай", + "portrait": "resources/dialogue/portrait_ghost.png", + "text": "Меня зовут Бегимай, мне нужно сдать курсовую по манасоведению.", + "next": "line_11" + }, + { + "id": "line_11", + "type": "Line", + "speaker": "Бегимай", + "portrait": "resources/dialogue/portrait_ghost.png", + "text": "Я появляюсь здесь каждую ночь, чтобы сдать курсовую.", + "next": "line_6" + } + ] + }, + { + "id": "dialog_with_ghost002", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Бегимай", + "portrait": "resources/dialogue/portrait_ghost.png", + "text": "Я Бегимай, мне нужно сдать курсовую по манасоведению.", + "next": "line_2" + }, + { + "id": "line_2", + "type": "Line", + "speaker": "Бегимай", + "portrait": "resources/dialogue/portrait_ghost.png", + "text": "Я появляюсь здесь каждую ночь, чтобы сдать курсовую.", + "next": "line_3" + }, + { + "id": "line_3", + "type": "Line", + "speaker": "Бегимай", + "portrait": "resources/dialogue/portrait_ghost.png", + "text": "Я уйду на покой только когда увиду оценку по курсовой в своей зачетке.", + "next": "line_4" + }, + { + "id": "line_4", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Ладно, я что-нибудь придумаю.", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "dialog_with_ghost003", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Эй простыня, посмотри сюда.", + "next": "line_2" + }, + { + "id": "line_2", + "type": "Line", + "speaker": "Бегимай", + "portrait": "resources/dialogue/portrait_ghost.png", + "text": "Что это?", + "next": "line_3" + }, + { + "id": "line_3", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Это твоя зачетка.", + "next": "line_4" + }, + { + "id": "line_4", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Тебе поставили за курсовую максимальный балл!", + "next": "line_5" + }, + { + "id": "line_5", + "type": "Line", + "speaker": "Бегимай", + "portrait": "resources/dialogue/portrait_ghost.png", + "text": "Неужели! Наконец-то, мое предназначение исполнено.", + "next": "line_6" + }, + { + "id": "line_6", + "type": "Line", + "speaker": "Бегимай", + "portrait": "resources/dialogue/portrait_ghost.png", + "text": "Теперь я могу уйти на покой.", + "next": "line_7" + }, + { + "id": "line_7", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Давай, иди отдыхай.", + "luaCallback": "on_quest_over", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "note_dialog001", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Здесь написано: прочитай меня вслух.", + "next": "line_2" + }, + { + "id": "line_2", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "[Читает].", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "book_dialog002", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Сначала мне нужно найти книку в библиотеке.", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "book_dialog003", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Да, вот эта книга! Я возьму ее.", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "book_dialog004", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Я вернул книгу на место.", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "book_dialog005", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "На этой полке лежат самые скучные книги в этом кабинете.", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "book_dialog006", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Я надеюсь, мне эта книга больше не пригодится.", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "computer_dialog001", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Это старый библиотечный компьютер, он даже не подключен к интернету.", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "computer_dialog002", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "От этого компьютера сейчас не будет никакого толку.", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "computer_dialog003", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Надеюсь мне больше не придется притрагиваться к этому компьютеру.", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "dialog_report_card001", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Тут лежат зачетные книжки студентов.", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "dialog_report_card002", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Здесь лежит зачетка Бегимай. Я пожалуй, возьму ее.", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "dialog_report_card003", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Мне еще рано возвращать зачетку Бегимай обратно в шкаф.", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "dialog_taxi003", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Чтобы заказать такси, я сначала должен выйти на улицу.", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "dialog_video001", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Ого, пока я залипал в приложении, уже наступила ночь!", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "dialog_video002", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Я не буду сейчас смотреть видеоролики, давай лучше вернемся в общагу и пойдем спать.", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "dialog_video003", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Мне некогда деградировать сейчас!", + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "phone_night_aiperi001", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_think.png", + "text": "Стоит ли написать Айпери?", + "next": "choice_1" + }, + { + "id": "choice_1", + "type": "Choice", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_think.png", + "text": "", + "choices": [ + { + "id": "choice_1780657177062", + "kind": "Main", + "text": "Попросить помощь", + "next": "line_2" + }, + { + "id": "choice_1780657211405", + "kind": "Optional", + "text": "Неважно", + "next": "end_1" + } + ] + }, + { + "id": "line_2", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_phone.png", + "text": "Айпери, ты в сети?", + "next": "line_11", + "chatBubble": "out" + }, + { + "id": "line_11", + "type": "Line", + "speaker": "Айпери", + "portrait": "resources/dialogue/portrait_phone.png", + "text": "Я уже спать собираюсь. Что случилось?", + "next": "line_3", + "chatBubble": "in" + }, + { + "id": "line_3", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_phone.png", + "text": "Я уснул в универе, и меня заперли тут!", + "next": "line_4", + "chatBubble": "out" + }, + { + "id": "line_4", + "type": "Line", + "speaker": "Айпери", + "portrait": "resources/dialogue/portrait_phone.png", + "text": "Пхахахх лашара", + "next": "line_5", + "chatBubble": "in" + }, + { + "id": "line_5", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_phone.png", + "text": "Это не смешно!", + "next": "line_6", + "chatBubble": "out" + }, + { + "id": "line_6", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_phone.png", + "text": "Я знаю у тебя есть ключи от всех кабинетов. Ты можешь приехать, открыть библиотеку и выпустить меня?", + "next": "line_7", + "chatBubble": "out" + }, + { + "id": "line_7", + "type": "Line", + "speaker": "Айпери", + "portrait": "resources/dialogue/portrait_phone.png", + "text": "Время уже позднее.", + "next": "line_8", + "chatBubble": "in" + }, + { + "id": "line_8", + "type": "Line", + "speaker": "Айпери", + "portrait": "resources/dialogue/portrait_phone.png", + "text": "Там в библиотеке есть мягкий диван. Ляг поспи, а я приеду утром и выпущу тебя.", + "next": "line_9", + "chatBubble": "in" + }, + { + "id": "line_9", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_phone.png", + "text": "Айпери, ну пожалуйста!", + "next": "line_10", + "chatBubble": "out" + }, + { + "id": "line_10", + "type": "Line", + "speaker": "Айпери", + "portrait": "resources/dialogue/portrait_phone.png", + "text": "Я пойду спать. Доброй ночи!", + "next": "setflag_1", + "chatBubble": "in" + }, + { + "id": "setflag_1", + "type": "SetFlag", + "effects": [ + { + "flag": "asked_help_locked", + "value": 1 + } + ], + "next": "end_1" + }, + { + "id": "end_1", + "type": "End" + } + ] + }, + { + "id": "phone_dialog_night_parents001", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_phone.png", + "text": "Стоит ли написать родителям?", + "next": "choice_1", + "chatBubble": "out" + }, + { + "id": "choice_1", + "type": "Choice", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_phone.png", + "text": "", + "choices": [ + { + "id": "choice_1780657619319", + "kind": "Main", + "text": "Попросить помощь", + "next": "line_2" + }, + { + "id": "choice_1780657645270", + "kind": "Optional", + "text": "Неважно", + "next": "end_1" + } + ] + }, + { + "id": "end_1", + "type": "End" + }, + { + "id": "line_2", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_phone.png", + "text": "Привет, ата! Меня заперли в универе ночью!", + "next": "line_3", + "chatBubble": "out" + }, + { + "id": "line_3", + "type": "Line", + "speaker": "Отец", + "portrait": "resources/dialogue/portrait_phone.png", + "text": "Сынок, ты же знаешь я живу далеко", + "next": "line_4", + "chatBubble": "in" + }, + { + "id": "line_4", + "type": "Line", + "speaker": "Отец", + "portrait": "resources/dialogue/portrait_phone.png", + "text": "Пока мы приедем, настанет утро!", + "next": "line_5", + "chatBubble": "in" + }, + { + "id": "line_5", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_phone.png", + "text": "Да, точно, извнините", + "next": "line_6", + "chatBubble": "out" + }, + { + "id": "line_6", + "type": "Line", + "speaker": "Отец", + "portrait": "resources/dialogue/portrait_phone.png", + "text": "Напиши своей стартосте, может она придумает что сделать?", + "next": "end_1", + "chatBubble": "in" + } + ] + }, + { + "id": "phone_morning_aiperi001", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_phone.png", + "text": "Айпери! Ты где сейчас?", + "next": "condition_1", + "chatBubble": "out" + }, + { + "id": "condition_1", + "type": "Condition", + "conditions": [ + { + "flag": "asked_help_locked", + "op": "Equals", + "value": 1 + } + ], + "trueNext": "line_7", + "falseNext": "line_2" + }, + { + "id": "line_7", + "type": "Line", + "speaker": "Айпери", + "portrait": "resources/dialogue/portrait_phone.png", + "text": "Я приехала в универститет чтобы тебя освободить.", + "next": "line_8", + "chatBubble": "in" + }, + { + "id": "line_2", + "type": "Line", + "speaker": "Айпери", + "portrait": "resources/dialogue/portrait_phone.png", + "text": "Я только что приехала в универ. Что случилось?", + "next": "condition_2", + "chatBubble": "in" + }, + { + "id": "condition_2", + "type": "Condition", + "conditions": [ + { + "flag": "morning_aiperi_save_again", + "op": "Equals", + "value": 1 + } + ], + "trueNext": "line_9", + "falseNext": "line_3" + }, + { + "id": "line_9", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_phone.png", + "text": "Ты будешь смеяться, но мне снова нужна помощь. Открой дверь и выпусти меня из кабинета пожалуйста!", + "next": "line_10", + "chatBubble": "out" + }, + { + "id": "line_10", + "type": "Line", + "speaker": "Айпери", + "portrait": "resources/dialogue/portrait_phone.png", + "text": "Твое счастье что я всегда прихожу в универ раньше всех.", + "next": "line_6", + "chatBubble": "in" + }, + { + "id": "line_3", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_phone.png", + "text": "Я заперт в кабинете. Открой мне дверь пожалуйста!", + "next": "line_4", + "chatBubble": "out" + }, + { + "id": "line_4", + "type": "Line", + "speaker": "Айпери", + "portrait": "resources/dialogue/portrait_phone.png", + "text": "Как ты там оказался?", + "next": "line_5", + "chatBubble": "in" + }, + { + "id": "line_5", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_phone.png", + "text": "Это долгая история...", + "next": "line_6", + "chatBubble": "out" + }, + { + "id": "line_6", + "type": "Line", + "speaker": "Айпери", + "portrait": "resources/dialogue/portrait_phone.png", + "text": "Отойди от двери, я сейчас тебя освобожу!", + "next": "end_1", + "chatBubble": "in" + }, + { + "id": "end_1", + "luaCallback": "on_aiperi_opens_door", + "type": "End" + }, + { + "id": "line_8", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_phone.png", + "text": "Спасибо большое!", + "next": "line_6", + "chatBubble": "out" + } + ] + }, + { + "id": "dialog_aiperi_morning001", + "start": "line_1", + "nodes": [ + { + "id": "line_1", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Айпери!", + "next": "condition_3" + }, + { + "id": "condition_3", + "type": "Condition", + "conditions": [ + { + "flag": "morning_aiperi_talked", + "op": "Equals", + "value": 1 + } + ], + "trueNext": "condition_6", + "falseNext": "condition_5" + }, + { + "id": "condition_6", + "type": "Condition", + "conditions": [ + { + "flag": "morning_aiperi_save_again", + "op": "Equals", + "value": 1 + } + ], + "trueNext": "line_32", + "falseNext": "line_26" + }, + { + "id": "line_32", + "type": "Line", + "speaker": "Айпери", + "portrait": "resources/dialogue/portrait_aiperi.png", + "text": "Ты опять застрял в универе ночью, потому что решаешь свои дела?", + "next": "line_33" + }, + { + "id": "line_33", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Дааа, спасибо что вытащила меня снова", + "next": "line_26" + }, + { + "id": "condition_5", + "type": "Condition", + "conditions": [ + { + "flag": "morning_player_can_leave", + "op": "Equals", + "value": 1 + } + ], + "trueNext": "line_31", + "falseNext": "line_27" + }, + { + "id": "line_31", + "type": "Line", + "speaker": "Айпери", + "portrait": "resources/dialogue/portrait_aiperi.png", + "text": "Ого, Бекзат! Как хорошо, что я тебя встретила!", + "next": "line_12" + }, + { + "id": "line_27", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Спасибо большое!", + "next": "line_2" + }, + { + "id": "line_26", + "type": "Line", + "speaker": "Айпери", + "portrait": "resources/dialogue/portrait_aiperi.png", + "text": "Я не знаю какие у тебя там дела, Бекзат, но ты должен вернуть мне нож как можно скорее!", + "next": "condition_4" + }, + { + "id": "condition_4", + "type": "Condition", + "conditions": [ + { + "flag": "ghost_aware", + "op": "Equals", + "value": 1 + }, + { + "flag": "alik_aware", + "op": "NotEquals", + "value": 1 + } + ], + "trueNext": "line_30", + "falseNext": "line_28" + }, + { + "id": "line_30", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "У меня есть один вопрос.", + "next": "line_29" + }, + { + "id": "line_28", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Хорошо, я скоро верну тебе твой нож.", + "next": "end_1" + }, + { + "id": "line_2", + "type": "Line", + "speaker": "Айпери", + "portrait": "resources/dialogue/portrait_aiperi.png", + "text": "Во-первых, постарайся сделать так, чтобы этого больше не повторялось. Мне вовсе не в кайф вытаскивать твою задницу из проблем.", + "luaCallback": "", + "next": "line_3" + }, + { + "id": "line_3", + "type": "Line", + "speaker": "Айпери", + "portrait": "resources/dialogue/portrait_aiperi.png", + "text": "Во-вторых, какого хрена ты в универе делаешь ночью?", + "next": "choice_1" + }, + { + "id": "choice_1", + "type": "Choice", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "", + "choices": [ + { + "id": "choice_1780659320965", + "kind": "Main", + "text": "Рассказать про записку", + "next": "line_4" + }, + { + "id": "choice_1780659326945", + "kind": "Optional", + "text": "Умолчать", + "next": "line_8" + } + ] + }, + { + "id": "line_4", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Ко мне попала странная записка, где было написано заклинание. Я прочитал его, и попал в потусторонний мир.", + "next": "line_5" + }, + { + "id": "line_5", + "type": "Line", + "speaker": "Айпери", + "portrait": "resources/dialogue/portrait_aiperi.png", + "text": "Ты что опять в свои игры переиграл? Какой потусторонний мир?", + "next": "line_6" + }, + { + "id": "line_6", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Но это правда! Там все было по-другому, и я видел призраков...", + "next": "line_7" + }, + { + "id": "line_7", + "type": "Line", + "speaker": "Айпери", + "portrait": "resources/dialogue/portrait_aiperi.png", + "text": "Тебе еще и не такое привидется. Езжай в общагу и выспись.", + "next": "setflag_1" + }, + { + "id": "setflag_1", + "type": "SetFlag", + "effects": [ + { + "flag": "told_aiperi_ghost", + "value": 1 + } + ], + "next": "line_11" + }, + { + "id": "end_1", + "luaCallback": "on_aiperi_morning_dialog_finished", + "type": "End" + }, + { + "id": "line_8", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Аида Джаныбекова увидела меня в учительской, и заставила писать эссе по этой тупой книге.", + "next": "line_9" + }, + { + "id": "line_9", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Я писал, писал и уснул.", + "next": "line_10" + }, + { + "id": "line_10", + "type": "Line", + "speaker": "Айпери", + "portrait": "resources/dialogue/portrait_aiperi.png", + "text": "Дааа, она такая. Видишь как хорошо, что именно ты пошел за ножом, а не я.", + "next": "line_11" + }, + { + "id": "line_11", + "type": "Line", + "speaker": "Айпери", + "portrait": "resources/dialogue/portrait_aiperi.png", + "text": "Да, кстати.", + "next": "line_12" + }, + { + "id": "line_12", + "type": "Line", + "speaker": "Айпери", + "portrait": "resources/dialogue/portrait_aiperi.png", + "text": "Отдавай нож.", + "next": "line_13" + }, + { + "id": "line_13", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Да, насчет этого. Боюсь, что я не могу тебе пока что отдать нож.", + "next": "line_14" + }, + { + "id": "line_14", + "type": "Line", + "speaker": "Айпери", + "portrait": "resources/dialogue/portrait_aiperi.png", + "text": "Какого черта?", + "next": "condition_1" + }, + { + "id": "condition_1", + "type": "Condition", + "conditions": [ + { + "flag": "told_aiperi_ghost", + "op": "Equals", + "value": 1 + } + ], + "trueNext": "line_16", + "falseNext": "line_15" + }, + { + "id": "line_16", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Оказывается, я могу убивать призраков только этим ножом, без него я буду беззащитен.", + "next": "line_17" + }, + { + "id": "line_17", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Но ты не переживай, я сделаю кое-какое дело и верну тебе этот нож.", + "next": "line_18" + }, + { + "id": "line_18", + "type": "Line", + "speaker": "Айпери", + "portrait": "resources/dialogue/portrait_aiperi.png", + "text": "Постарайся сделать свои дела быстрее, иначе это я тебе голову оторву!", + "next": "setflag_3" + }, + { + "id": "setflag_3", + "type": "SetFlag", + "effects": [ + { + "flag": "morning_aiperi_talked", + "value": 1 + } + ], + "next": "condition_2" + }, + { + "id": "condition_2", + "type": "Condition", + "conditions": [ + { + "flag": "ghost_aware", + "op": "Equals", + "value": 1 + } + ], + "trueNext": "line_20", + "falseNext": "end_1" + }, + { + "id": "line_20", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Да, и еще кое что.", + "next": "line_29" + }, + { + "id": "line_29", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Ты знаешь про студентку Бегимай с прошлого курса?", + "next": "line_19" + }, + { + "id": "line_19", + "type": "Line", + "speaker": "Айпери", + "portrait": "resources/dialogue/portrait_aiperi.png", + "text": "Я слышала она не смогла сдать курсовую по манасоведению, прыгнула с окна и разбилась насмерть.", + "next": "line_21" + }, + { + "id": "line_21", + "type": "Line", + "speaker": "Айпери", + "portrait": "resources/dialogue/portrait_aiperi.png", + "text": "Менты приезжали, следователи допрашивали ректора, такой скандал был. Прежнего преподавателя по манасоведению отстранили.", + "next": "line_22" + }, + { + "id": "line_22", + "type": "Line", + "speaker": "Айпери", + "portrait": "resources/dialogue/portrait_aiperi.png", + "text": "Поэтому, с этого года у нас этот предмет ведет Аида Дженибековна.", + "next": "line_23" + }, + { + "id": "line_23", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Ты не знаешь кого-нибудь, кто был знаком с Бегимай?", + "next": "line_24" + }, + { + "id": "line_24", + "type": "Line", + "speaker": "Айпери", + "portrait": "resources/dialogue/portrait_aiperi.png", + "text": "У тебя в общаге живет Алик, в комнате напротив тебя. Он с того же курса. Можешь у него поспрашивать.", + "next": "line_25" + }, + { + "id": "line_25", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Спасибо!", + "next": "setflag_2" + }, + { + "id": "setflag_2", + "type": "SetFlag", + "effects": [ + { + "flag": "alik_aware", + "value": 1 + } + ], + "next": "end_1" + }, + { + "id": "line_15", + "type": "Line", + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Нож мне нужен для кое-каких дел.", + "next": "line_17" + } + ] + } + ], + "cutscenes": [ + { + "id": "test_cutscene_01", + "background": "resources/test_cutscene001.png", + "durationMs": 5000, + "fadeOutMs": 500, + "fadeInMs": 500, + "endFadeOutMs": 500, + "endFadeInMs": 500, + "cameraTrack": [ + { + "durationMs": 3000, + "from": { + "focusX": 0.3, + "focusY": 0.5, + "zoom": 1.1, + "rotationDeg": 0 + }, + "to": { + "focusX": 0.7, + "focusY": 0.5, + "zoom": 1, + "rotationDeg": 0 + }, + "easing": "EaseInOutSine" + }, + { + "durationMs": 3000, + "from": { + "focusX": 0.3, + "focusY": 0.5, + "zoom": 1, + "rotationDeg": 0 + }, + "to": { + "focusX": 0.7, + "focusY": 0.5, + "zoom": 1.1, + "rotationDeg": 0 + }, + "easing": "EaseInOutCubic" + } + ], + "lines": [ + { + "speaker": "Аида Дженибековна", + "portrait": "resources/dialogue/portrait_teacher.png", + "text": "Здравствуйте, студенты. Кого я вижу, где вы были весь семестр?", + "durationMs": 3000 + }, + { + "speaker": "Аида Дженибековна", + "portrait": "resources/dialogue/portrait_teacher.png", + "text": "В эпизоде \"Семетей\" трилогии \"Манас\", изменники Канчоро и Кыяз захватывают власть над кыргызами.", + "durationMs": 3000 + }, + { + "speaker": "Аида Дженибековна", + "portrait": "resources/dialogue/portrait_teacher.png", + "text": "На сегодня лекция завершена. Домашнее задание - к практическому занятию вы должны подготовить презентации, каждый по своей теме.", + "durationMs": 2000, + "background": "resources/test_cutscene001.png" + } + ] + }, + { + "id": "computer_cutscene001", + "onFadeInCallback": "on_sleep_cutscene", + "background": "resources/test_cutscene001.png", + "durationMs": 5000, + "fadeOutMs": 500, + "fadeInMs": 500, + "endFadeOutMs": 500, + "endFadeInMs": 500, + "cameraTrack": [ + { + "durationMs": 3000, + "from": { + "focusX": 0.3, + "focusY": 0.5, + "zoom": 1.1, + "rotationDeg": 0 + }, + "to": { + "focusX": 0.7, + "focusY": 0.5, + "zoom": 1, + "rotationDeg": 0 + }, + "easing": "EaseInOutSine" + }, + { + "durationMs": 3000, + "from": { + "focusX": 0.3, + "focusY": 0.5, + "zoom": 1, + "rotationDeg": 0 + }, + "to": { + "focusX": 0.7, + "focusY": 0.5, + "zoom": 1.1, + "rotationDeg": 0 + }, + "easing": "EaseInOutCubic" + } + ], + "lines": [ + { + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Я начал делать презентацию по книге.", + "durationMs": 3000 + }, + { + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Книга была такая скучная что я уснул.", + "durationMs": 3000 + }, + { + "speaker": "Бекзат", + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "И я проснулся уже ночью", + "durationMs": 2000, + "background": "resources/test_cutscene001.png" + } + ] + }, + { + "id": "darklands_exit001", + "onFadeInCallback": "on_darklands_over", + "background": "resources/test_cutscene001.png", + "durationMs": 5000, + "fadeOutMs": 0, + "fadeInMs": 500, + "endFadeOutMs": 500, + "endFadeInMs": 500, + "cameraTrack": [ + { + "durationMs": 3000, + "from": { + "focusX": 0.3, + "focusY": 0.5, + "zoom": 1.1, + "rotationDeg": 0 + }, + "to": { + "focusX": 0.7, + "focusY": 0.5, + "zoom": 1, + "rotationDeg": 0 + }, + "easing": "EaseInOutSine" + }, + { + "durationMs": 3000, + "from": { + "focusX": 0.3, + "focusY": 0.5, + "zoom": 1, + "rotationDeg": 0 + }, + "to": { + "focusX": 0.7, + "focusY": 0.5, + "zoom": 1.1, + "rotationDeg": 0 + }, + "easing": "EaseInOutCubic" + } + ], + "lines": [ + { + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Мгновенно как я упал без сил, что-то сверкнуло.", + "durationMs": 3000 + }, + { + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Я открыл глаза и понял, что я по-прежнему в универе.", + "durationMs": 3000 + }, + { + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "Все тело болело, как будто я всю ночь таскал мешки с цементом.", + "durationMs": 3000 + }, + { + "portrait": "resources/dialogue/portrait_hero_neutral.png", + "text": "А еще мне сильно хотелось спать...", + "durationMs": 2000, + "background": "resources/test_cutscene001.png" + } + ] + } + ] +} \ No newline at end of file diff --git a/resources/start_uni_interior.lua b/resources/start_uni_interior.lua index 8a3989b..5f71ff3 100644 --- a/resources/start_uni_interior.lua +++ b/resources/start_uni_interior.lua @@ -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 ) diff --git a/src/Game.cpp b/src/Game.cpp index f031742..15354c5 100644 --- a/src/Game.cpp +++ b/src/Game.cpp @@ -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 = {