Mainly dialogues are completed

This commit is contained in:
Vladislav Khorev 2026-07-05 17:01:56 +03:00
parent 2d8f80b675
commit bd994a8690
14 changed files with 5009 additions and 1115 deletions

View File

@ -116,32 +116,6 @@
"positionY": 0.0,
"positionZ": 0.0,
"scale": 1.0
},
{
"name": "car001",
"texturePath": "resources/w/exterior/car_body001_002.png",
"textureDarkandsPath": "resources/w/exterior/car_body001_002.png",
"meshPath": "resources/w/exterior/car001.txt.bin",
"rotationX": 0.0,
"rotationY": 90.0,
"rotationZ": 0.0,
"positionX": -10.5,
"positionY": 0.0,
"positionZ": -14.4195,
"scale": 0.7
},
{
"name": "car001wheels",
"texturePath": "resources/w/exterior/Wheel_base002.png",
"textureDarkandsPath": "resources/w/exterior/Wheel_base002.png",
"meshPath": "resources/w/exterior/wheels002.txt.bin",
"rotationX": 0.0,
"rotationY": 90.0,
"rotationZ": 0.0,
"positionX": -10.5,
"positionY": 0.0,
"positionZ": -14.4195,
"scale": 0.7
},
{
"meshPath": "resources/w/exterior/DTree_Wood_3_001.txt.bin",

View File

@ -194,19 +194,6 @@
"positionY": -5.0,
"positionZ": 0.0,
"scale": 1.0
},
{
"name": "D_Cake_005",
"texturePath": "resources/w/exterior/texAtlas001.png",
"textureDarkandsPath": "resources/w/exterior/texAtlas001.png",
"meshPath": "resources/w/interior/D_Cake_005.txt.bin",
"rotationX": 0.0,
"rotationY": 0.0,
"rotationZ": 0.0,
"positionX": 0.0,
"positionY": -5.0,
"positionZ": 0.0,
"scale": 1.0
},
{
"name": "D_Folders_005",
@ -362,32 +349,6 @@
"positionY": -5.0,
"positionZ": 0.0,
"scale": 1.0
},
{
"name": "car001",
"texturePath": "resources/w/exterior/car_body001_002.png",
"textureDarkandsPath": "resources/w/exterior/car_body001_002.png",
"meshPath": "resources/w/exterior/car001.txt.bin",
"rotationX": 0.0,
"rotationY": 90.0,
"rotationZ": 0.0,
"positionX": -10.5,
"positionY": -5.0,
"positionZ": -14.4195,
"scale": 0.7
},
{
"name": "car001wheels",
"texturePath": "resources/w/exterior/Wheel_base002.png",
"textureDarkandsPath": "resources/w/exterior/Wheel_base002.png",
"meshPath": "resources/w/exterior/wheels002.txt.bin",
"rotationX": 0.0,
"rotationY": 90.0,
"rotationZ": 0.0,
"positionX": -10.5,
"positionY": -5.0,
"positionZ": -14.4195,
"scale": 0.7
},
{
"meshPath": "resources/w/exterior/DTree_Wood_3_001.txt.bin",

File diff suppressed because it is too large Load Diff

View File

@ -12,7 +12,7 @@
"positionZ": 9.11524,
"approachRadius": 1.5,
"boundsMaxX": 2.9518299102783203,
"boundsMaxY": 1.0,
"boundsMaxY": 0.5,
"boundsMaxZ": 2.6554784774780273,
"boundsMinX": -2.662546157836914,
"boundsMinY": 0.0,
@ -23,6 +23,55 @@
"scale": 1.0,
"interactionRadius": 0.0,
"activateFunction": "on_container_clicked"
},
{
"name": "car001",
"texturePath": "resources/w/exterior/car_body001_002.png",
"textureDarkandsPath": "resources/w/exterior/car_body001_002.png",
"meshPath": "resources/w/exterior/car001.txt.bin",
"rotationX": 0.0,
"rotationY": 90.0,
"rotationZ": 0.0,
"positionX": -10.5,
"positionY": 0.0,
"positionZ": -14.4195,
"approachRadius": 0.5,
"boundsMaxX": 0.8858480453491211,
"boundsMaxY": 0.7,
"boundsMaxZ": 2.433553695678711,
"boundsMinX": -1.0479888916015625,
"boundsMinY": 0.0,
"boundsMinZ": -2.539886474609375,
"interactionPositionX": -12.099324226379395,
"interactionPositionY": 0.0,
"interactionPositionZ": -14.766676902770996,
"interactionRadius": 0.0,
"activateFunction": "on_car_clicked",
"scale": 0.7
},
{
"name": "car001wheels",
"texturePath": "resources/w/exterior/Wheel_base002.png",
"textureDarkandsPath": "resources/w/exterior/Wheel_base002.png",
"meshPath": "resources/w/exterior/wheels002.txt.bin",
"rotationX": 0.0,
"rotationY": 90.0,
"rotationZ": 0.0,
"positionX": -10.5,
"positionY": 0.0,
"positionZ": -14.4195,
"approachRadius": 0.5,
"boundsMaxX": 0,
"boundsMaxY": 0.0,
"boundsMaxZ": 0,
"boundsMinX": 0,
"boundsMinY": 0.0,
"boundsMinZ": 0,
"interactionPositionX": 0,
"interactionPositionY": 0.0,
"interactionPositionZ": 0,
"interactionRadius": 0.0,
"scale": 0.7
}
]
}

View File

@ -1,5 +1,135 @@
{
"objects": [
{
"name": "Bookshelf002",
"texturePath": "resources/transparent.png",
"meshPath": "resources/w/Cube_001.txt.bin",
"rotationX": 0.0,
"rotationY": 0.0,
"rotationZ": 0.0,
"positionX": 1.84795,
"positionY": 0.0,
"positionZ": 2.90552,
"approachRadius": 0.6,
"boundsMaxX": 3.708925247192383,
"boundsMaxY": 1.0,
"boundsMaxZ": 4.948165416717529,
"boundsMinX": 0.16217541694641113,
"boundsMinY": 0.0,
"boundsMinZ": 4.459168910980225,
"interactionPositionX": 3.5937676429748535,
"interactionPositionY": 0.0,
"interactionPositionZ": 7.138526439666748,
"interactionRadius": 0.0,
"scale": 1.0,
"activateFunction": "on_bookshelf2_clicked",
"castShadowNight": false,
"castShadow": false
},
{
"name": "Bookshelf003",
"texturePath": "resources/transparent.png",
"meshPath": "resources/w/Cube_001.txt.bin",
"rotationX": 0.0,
"rotationY": 0.0,
"rotationZ": 0.0,
"positionX": 1.84795,
"positionY": 0.0,
"positionZ": 2.90552,
"approachRadius": 0.6,
"boundsMaxX": 3.982386589050293,
"boundsMaxY": 1.0,
"boundsMaxZ": 2.750509738922119,
"boundsMinX": 2.511354923248291,
"boundsMinY": 0.0,
"boundsMinZ": 2.361067295074463,
"interactionPositionX": 4.981931686401367,
"interactionPositionY": 0.0,
"interactionPositionZ": 4.993199825286865,
"scale": 1.0,
"interactionRadius": 0.0,
"activateFunction": "on_bookshelf3_clicked",
"castShadowNight": false,
"castShadow": false
},
{
"name": "Bookshelf004",
"texturePath": "resources/transparent.png",
"meshPath": "resources/w/Cube_001.txt.bin",
"rotationX": 0.0,
"rotationY": 0.0,
"rotationZ": 0.0,
"positionX": 1.84795,
"positionY": 0.0,
"positionZ": 2.90552,
"approachRadius": 0.6,
"boundsMaxX": 3.8227500915527344,
"boundsMaxY": 1.0,
"boundsMaxZ": 1.0283966064453125,
"boundsMinX": 2.343303680419922,
"boundsMinY": 0.0,
"boundsMinZ": 0.7164497375488281,
"interactionPositionX": 4.878894805908203,
"interactionPositionY": 0.0,
"interactionPositionZ": 3.2222743034362793,
"interactionRadius": 0.0,
"scale": 1.0,
"activateFunction": "on_bookshelf4_clicked",
"castShadowNight": false,
"castShadow": false
},
{
"name": "Bookshelf005",
"texturePath": "resources/transparent.png",
"meshPath": "resources/w/Cube_001.txt.bin",
"rotationX": 0.0,
"rotationY": 0.0,
"rotationZ": 0.0,
"positionX": 1.84795,
"positionY": 0.0,
"positionZ": 2.90552,
"approachRadius": 0.6,
"boundsMaxX": 0.20231842994689941,
"boundsMaxY": 1.0,
"boundsMaxZ": 2.681053638458252,
"boundsMinX": -0.12699377536773682,
"boundsMinY": 0.0,
"boundsMinZ": 1.2146377563476563,
"interactionPositionX": 2.2442009449005127,
"interactionPositionY": 0.0,
"interactionPositionZ": 4.7558722496032715,
"scale": 1.0,
"interactionRadius": 0.0,
"activateFunction": "on_bookshelf5_clicked",
"castShadowNight": false,
"castShadow": false
},
{
"name": "Cake001",
"texturePath": "resources/w/exterior/texAtlas001.png",
"meshPath": "resources/w/interior/D_Cake_005.txt.bin",
"rotationX": 0.0,
"rotationY": 0.0,
"rotationZ": 0.0,
"positionX": 0,
"positionY": -5.0,
"positionZ": 0,
"approachRadius": 0.6,
"boundsMaxX": 0.19605731964111328,
"boundsMaxY": 0.4,
"boundsMaxZ": 0.2009737491607666,
"boundsMinX": -0.24425506591796875,
"boundsMinY": 0.0,
"boundsMinZ": -0.2997410297393799,
"interactionPositionX": -5.078237533569336,
"interactionPositionY": 0.0,
"interactionPositionZ": 2.0980827808380127,
"interactionRadius": 0.0,
"scale": 1.0,
"activateFunction": "on_cake_clicked",
"castShadowNight": false,
"castShadow": false
},
{
"name": "Computer001",
"texturePath": "resources/w/interior/computer_texture002.png",
@ -94,7 +224,8 @@
"scale": 1.0,
"interactionRadius": 0.0,
"activateFunction": "on_bookshelf_clicked",
"castShadowNight" : false
"castShadowNight": false,
"castShadow": false
},
{
"name": "ReportCard001",
@ -143,6 +274,52 @@
"scale": 1.0,
"interactionRadius": 0.0,
"activateFunction": "on_note_pickup"
},
{
"name": "car001",
"texturePath": "resources/w/exterior/car_body001_002.png",
"meshPath": "resources/w/exterior/car001.txt.bin",
"rotationX": 0.0,
"rotationY": 90.0,
"rotationZ": 0.0,
"positionX": -10.5,
"positionY": -5.0,
"positionZ": -14.4195,
"approachRadius": 0.6,
"boundsMaxX": 0.0,
"boundsMaxY": 0.0,
"boundsMaxZ": 0.0,
"boundsMinX": 0.0,
"boundsMinY": 0.0,
"boundsMinZ": 0.0,
"interactionPositionX": 0.0,
"interactionPositionY": 0.0,
"interactionPositionZ": 0.0,
"interactionRadius": 0.0,
"scale": 0.7
},
{
"name": "car001wheels",
"texturePath": "resources/w/exterior/Wheel_base002.png",
"meshPath": "resources/w/exterior/wheels002.txt.bin",
"rotationX": 0.0,
"rotationY": 90.0,
"rotationZ": 0.0,
"positionX": -10.5,
"positionY": -5.0,
"positionZ": -14.4195,
"approachRadius": 0.6,
"boundsMaxX": 0.0,
"boundsMaxY": 0.0,
"boundsMaxZ": 0.0,
"boundsMinX": 0.0,
"boundsMinY": 0.0,
"boundsMinZ": 0.0,
"interactionPositionX": 0.0,
"interactionPositionY": 0.0,
"interactionPositionZ": 0.0,
"interactionRadius": 0.0,
"scale": 0.7
},
{
"name": "Room_N_2_Leaf001",

View File

@ -554,7 +554,7 @@
"type": "Condition",
"conditions": [
{
"flag": "player_alik_aware",
"flag": "alik_aware",
"op": "Equals",
"value": 1
}

View File

@ -0,0 +1,434 @@
{
"dialogues": [
{
"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": "dialog_contaier001",
"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_contaier003",
"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_contaier002",
"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": "Ага, нашел! Вот и она!",
"luaCallback": "dialog_contaier002_get_coursework",
"next": "end_1"
},
{
"id": "end_1",
"type": "End"
}
]
},
{
"id": "dialog_contaier003",
"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_taxi001",
"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_taxi002",
"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_taxi004",
"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": "dialog_chat_parents001",
"start": "line_1",
"nodes": [
{
"id": "line_1",
"type": "Line",
"speaker": "Отец",
"portrait": "resources/dialogue/portrait_phone.png",
"text": "Бекзат, сынок, мы c мамой тебе отправили немного денег, постарайся прожить на эти деньги до конца недели!",
"next": "line_2",
"chatBubble": "in"
},
{
"id": "line_2",
"type": "Line",
"speaker": "Бекзат",
"portrait": "resources/dialogue/portrait_phone.png",
"text": "Спасибо!",
"next": "end_1",
"chatBubble": "out"
},
{
"id": "end_1",
"type": "End"
}
]
},
{
"id": "dialog_chat_news001",
"start": "line_1",
"nodes": [
{
"id": "line_1",
"type": "Line",
"speaker": "Отец",
"portrait": "resources/dialogue/portrait_phone.png",
"text": "Жители Бишкека все чаще жалуются на депрессию и апатию. Смотрите свежее видео об этом на нашем канале!",
"next": "end_1",
"chatBubble": "in"
},
{
"id": "end_1",
"type": "End"
}
]
},
{
"id": "dialog_chat_aiperi001",
"start": "line_1",
"nodes": [
{
"id": "line_1",
"type": "Line",
"speaker": "Айпери",
"portrait": "resources/dialogue/portrait_phone.png",
"text": "Бекзат, помнишь мы скидывались на торт для Аиды Джаныбековой? Я тогда еще приносила скатерть, тарелки и нож для торта. И я до сих пор не получила назад ничего.",
"next": "line_2",
"chatBubble": "in"
},
{
"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": "out"
},
{
"id": "line_5",
"type": "Line",
"speaker": "Айпери",
"portrait": "resources/dialogue/portrait_phone.png",
"text": "А давай не \"наверное\"?",
"next": "line_6",
"chatBubble": "in"
},
{
"id": "line_6",
"type": "Line",
"speaker": "Айпери",
"portrait": "resources/dialogue/portrait_phone.png",
"text": "А давай ты приедешь в универ, зайдешь в учительскую, заберешь нож и отдашь мне?",
"next": "line_7",
"chatBubble": "in"
},
{
"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": "out"
},
{
"id": "line_9",
"type": "Line",
"speaker": "Айпери",
"portrait": "resources/dialogue/portrait_phone.png",
"text": "Ты же знаешь, если я встречу Аиду, она 100% даст мне какое-нибудь сложное задание.",
"next": "line_10",
"chatBubble": "in"
},
{
"id": "line_10",
"type": "Line",
"speaker": "Айпери",
"portrait": "resources/dialogue/portrait_phone.png",
"text": "И потом, это ты у меня брал нож, с чего я должна ходить искать его по всему универу?",
"next": "line_11",
"chatBubble": "in"
},
{
"id": "line_11",
"type": "Line",
"speaker": "Айпери",
"portrait": "resources/dialogue/portrait_phone.png",
"text": "Так что жду тебя в универе! Не вздумай прогулять!",
"next": "setflag_1",
"chatBubble": "in",
"questUnlock": "aiperi_knife"
},
{
"id": "setflag_1",
"type": "SetFlag",
"effects": [
{
"flag": "aiperi_knife_aware",
"value": 1
}
],
"next": "end_1"
},
{
"id": "end_1",
"luaCallback": "on_aiperi_dialog_over",
"type": "End"
}
]
},
{
"id": "dialog_chat_aiperi002",
"start": "line_1",
"nodes": [
{
"id": "line_1",
"type": "Line",
"speaker": "Айпери",
"portrait": "resources/dialogue/portrait_phone.png",
"text": "Бекзат, ты где? Я жду тебя возле лестницы.",
"next": "end_1",
"chatBubble": "in"
},
{
"id": "end_1",
"type": "End"
}
]
},
{
"id": "dialog_car001",
"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"
}
]
}
],
"cutscenes": []
}

View File

@ -4137,6 +4137,32 @@
"next": "line_77"
}
]
},
{
"id": "cake_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"
}
]
}
],
"cutscenes": []

File diff suppressed because it is too large Load Diff

View File

@ -51,7 +51,7 @@
"title": "Манасоведение",
"status": "Available",
"autoComplete": true,
"description": "Скоро будет модуль по Манасоведению, а я еще ни разу не ходил на лекции. Сегодня у нас лекция по Манасоведению, надо ее посетить и получить у преподавательницы задание на модуль.",
"description": "Скоро будет модуль по Манасоведению, а я еще ни разу не ходил на лекции. Сегодня у нас лекция по Манасоведению, надо ее посетить и получить у преподавательницы Аиды Дженибековной задание на модуль.",
"objectives": [
{ "id": "study_beginning_lecture", "text": "Посетить лекцию", "completed": false },
{ "id": "study_beginning_task", "text": "Получить задание на модуль", "completed": false }

View File

@ -32,6 +32,10 @@ function on_container_clicked()
end
end
function on_car_clicked()
game_api.start_dialogue("dialog_car001")
end
function dialog_contaier002_get_coursework()
game_api.pickup_item("coursework")
game_api.quest_set_objective_completed("ghost_coursework", "ghost_coursework_find")
@ -66,6 +70,15 @@ game_api.set_location_callbacks(
local hp = game_api.getFloatValue("player_hp")
game_api.set_player_hp(hp)
game_api.set_teleport_active(0, false)
if (game_api.is_night()) then
game_api.deactivate_interactive_object("car001")
game_api.deactivate_interactive_object("car001wheels")
game_api.switch_navigation(1)
else
game_api.activate_interactive_object("car001")
game_api.activate_interactive_object("car001wheels")
game_api.switch_navigation(0)
end
end,
function()
print("Exit location uni exterior")

View File

@ -156,6 +156,63 @@ function on_bookshelf_clicked()
on_book_pickup()
end
function on_bookshelf2_clicked()
local day = game_api.getIntValue("day")
if (game_api.is_night()) or (day >= 1) then
game_api.start_dialogue("book_dialog007")
else
if (teacher_told_about_book and (player_hold_book==false)) then
game_api.start_dialogue("book_dialog010")
else
game_api.start_dialogue("book_dialog007")
end
end
end
function on_bookshelf3_clicked()
local day = game_api.getIntValue("day")
if (game_api.is_night()) or (day >= 1) then
game_api.start_dialogue("book_dialog008")
else
if (teacher_told_about_book and (player_hold_book==false)) then
game_api.start_dialogue("book_dialog011")
else
game_api.start_dialogue("book_dialog008")
end
end
end
function on_bookshelf4_clicked()
local day = game_api.getIntValue("day")
if (game_api.is_night()) or (day >= 1) then
game_api.start_dialogue("book_dialog009")
else
if (teacher_told_about_book and (player_hold_book==false)) then
game_api.start_dialogue("book_dialog012")
else
game_api.start_dialogue("book_dialog009")
end
end
end
function on_bookshelf5_clicked()
local day = game_api.getIntValue("day")
if (game_api.is_night()) or (day >= 1) then
game_api.start_dialogue("book_dialog013")
else
if (teacher_told_about_book and (player_hold_book==false)) then
game_api.start_dialogue("book_dialog014")
else
game_api.start_dialogue("book_dialog013")
end
end
end
function on_cake_clicked()
game_api.start_dialogue("cake_dialog001")
end
function on_npc_interact(npc_index)
local player_ghost_aware = game_api.getIntValue("ghost_aware")
local player_hold_key = game_api.getIntValue("player_hold_key")
@ -429,6 +486,7 @@ function on_hall_door_click()
end
function on_s1_door_click()
local day = game_api.getIntValue("day")
if (day == 0) and(game_api.is_dawn()) then
game_api.start_dialogue("door_dialog007")
else
@ -443,6 +501,7 @@ function on_s1_door_click()
end
function on_s2_door_click()
local day = game_api.getIntValue("day")
if (day == 0) and(game_api.is_dawn()) then
game_api.start_dialogue("door_dialog007")
else
@ -457,6 +516,7 @@ function on_s2_door_click()
end
function on_n2_door_click()
local day = game_api.getIntValue("day")
if (day == 0) and(game_api.is_dawn()) then
game_api.start_dialogue("door_dialog007")
else
@ -563,6 +623,9 @@ function on_sleep_cutscene()
game_api.set_object_alpha("Room_Cover_South_3_001", 1)
game_api.set_object_alpha("Room_Cover_Main_Hall_001", 1)
game_api.activate_interactive_object("Note001")
game_api.deactivate_interactive_object("car001")
game_api.deactivate_interactive_object("car001wheels")
teacher_door_opened = false
end
@ -606,8 +669,8 @@ function on_note_pickup()
end
function on_report_card_pickup()
local player_ghost_aware = game_api.getIntValue("ghost_aware")
if player_ghost_aware == 1 then
local player_repord_card_discussed = game_api.getIntValue("player_repord_card_discussed")
if player_repord_card_discussed == 1 then
local player_has_report_card = game_api.getIntValue("player_has_report_card")
--local report_card_signed = game_api.getIntValue("report_card_signed")
@ -795,6 +858,9 @@ function setDay0setup()
game_api.set_npc_enabled(5, false)
game_api.set_npc_enabled(6, false)
game_api.activate_interactive_object("car001")
game_api.activate_interactive_object("car001wheels")
end
function setDay1setup()
@ -832,6 +898,11 @@ function setDay1setup()
game_api.set_npc_enabled(6, true)
game_api.npc_set_position(1, 0.98998, 0, -7.525)
game_api.deactivate_interactive_object("Cake001")
game_api.activate_interactive_object("car001")
game_api.activate_interactive_object("car001wheels")
end
function setDay1MorningSetup()
@ -866,6 +937,9 @@ function setDay1MorningSetup()
game_api.set_object_alpha("Room_Cover_Corridor_001", 1)
game_api.set_object_alpha("Room_Cover_Main_Hall_001", 1)
game_api.deactivate_interactive_object("car001")
game_api.deactivate_interactive_object("car001wheels")
-- TODO: Make check for teacher_door_opened false or true
game_api.set_npc_enabled(0, false)
@ -971,6 +1045,9 @@ function setDay1NightSetup()
game_api.set_npc_enabled(5, false)
game_api.set_npc_enabled(6, false)
game_api.deactivate_interactive_object("car001")
game_api.deactivate_interactive_object("car001wheels")
local px = game_api.get_player_x()
local pz = game_api.get_player_z()

View File

@ -1 +1 @@
АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдеёжзийклмнопрстуфхцчшщъыьэюяӨөҢңҮү"
ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrtsuvwxyzАБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдеёжзийклмнопрстуфхцчшщъыьэюяӨөҢңҮү"

View File

@ -362,7 +362,7 @@ namespace ZL
LocationSetup uniInteriorParams;
uniInteriorParams.gameObjectsJsonPath = "resources/config2/gameobjects_uni_interior_x.json";
uniInteriorParams.npcsJsonPath = "resources/config2/npcs_uni_interior.json";
uniInteriorParams.dialoguesJsonPath = "resources/dialogue/uni_interior_dialogues_008.json";
uniInteriorParams.dialoguesJsonPath = "resources/dialogue/uni_interior_dialogues_009.json";
uniInteriorParams.navigationJsonPaths = {
"resources/navigation/uni_interior4_unlocked_n2.txt", //0
@ -465,14 +465,24 @@ namespace ZL
uniExteriorParams.gameObjectsJsonPath = "resources/config2/gameobjects_uni_exterior_x.json";
uniExteriorParams.interactiveObjectsJsonPath = "resources/config2/interactive_objects_uni_exterior_x.json";
//uniExteriorParams.navigationJsonPaths = {"resources/navigation/uni_exterior3_all.json"};
uniExteriorParams.navigationJsonPaths = { "resources/navigation/uni_exterior3_trees_car.txt" };
uniExteriorParams.navigationJsonPaths = {
"resources/navigation/uni_exterior3_trees_car.json",
"resources/navigation/uni_exterior3_trees.json",
};
/*
uniExteriorParams.navigationJsonPaths = {
"resources/navigation/uni_exterior3_trees_car.txt",
"resources/navigation/uni_exterior3_trees.txt",
};*/
uniExteriorParams.teleportsJsonPath = "resources/config2/teleports_uni_exterior.json";
uniExteriorParams.triggerZonesJsonPath = "resources/config2/trigger_zones_uni_exterior.json";
uniExteriorParams.lightsJsonPath = "resources/config2/lights_uni_exterior.json";
uniExteriorParams.scriptPath = "resources/start_uni_exterior.lua";
uniExteriorParams.playerPosition = Eigen::Vector3f(5, 0, -18.4);
uniExteriorParams.npcsJsonPath = "resources/config2/npcs_uni_exterior.json";
uniExteriorParams.dialoguesJsonPath = "resources/dialogue/uni_exterior_dialogues.json";
uniExteriorParams.dialoguesJsonPath = "resources/dialogue/uni_exterior_dialogues002.json";
gameState.locations["uni_exterior"] = std::make_shared<Location>(renderer, gameState.inventory);