summaryrefslogtreecommitdiff
path: root/npc-07_lighthouse-family_v2.patch
blob: b9292aa3a2a49678c55dea0e3801ab4c1e6ec21e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
--- a/data/json/npcs/Lighthouse_Family/NPC_lighthouse_girl.json
+++ b/data/json/npcs/Lighthouse_Family/NPC_lighthouse_girl.json
@@ -0,0 +1,121 @@
+[
+  {
+    "type": "npc",
+    "id": "NPC_lighthouse_girl",
+    "name_unique": "Angelina Frolova",
+    "gender": "female",
+    "class": "NC_NONE",
+    "attitude": 1,
+    "mission": 8,
+    "chat": "TALK_lighthouse_girl_start",
+    "faction": "fisherman_family"
+  },
+  {
+    "type": "talk_topic",
+    "id": "TALK_lighthouse_girl_start",
+    "dynamic_line": "I'm scared.  Where is my papa?",
+    "speaker_effect": { "sentinel": "met", "effect": [ "follow_only", { "add_mission": "MISSION_lighthouse_girl_0" } ] },
+    "responses": [
+      {
+        "text": "I want you to use this item.",
+        "topic": "TALK_lighthouse_girl_start",
+        "condition": "npc_following",
+        "effect": "npc_gets_item_to_use"
+      },
+      {
+        "text": "We're here.",
+        "topic": "TALK_lighthouse_girl_safe",
+        "condition": { "npc_at_om_location": "lighthouse_ground" },
+        "effect": [
+          "mission_success",
+          "clear_mission",
+          "stop_following",
+          { "npc_first_topic": "TALK_lighthouse_girl_safe" },
+          { "u_add_var": "lighthouse_girl", "type": "flag", "context": "safe", "value": "yes" }
+        ]
+      },
+      { "text": "Let's go.", "topic": "TALK_DONE" }
+    ]
+  },
+  {
+    "type": "talk_topic",
+    "id": "TALK_lighthouse_girl_safe",
+    "dynamic_line": {
+      "u_has_mission": "MISSION_lighthouse_man_3",
+      "yes": {
+        "u_has_var": "lighthouse_woman_dead",
+        "type": "flag",
+        "context": "death",
+        "value": "yes",
+        "yes": "Thank you for saving me.  It's a shame my mother didn't make it… you did everything you could, and I don't blame you for it…",
+        "no": "Thank you!"
+      },
+      "no": {
+        "u_has_var": "lighthouse_woman_dead",
+        "type": "flag",
+        "context": "death",
+        "value": "yes",
+        "yes": "Poor, poor mama…",
+        "no": "Hello."
+      }
+    },
+    "responses": [
+      {
+        "text": "Hi.",
+        "condition": { "u_has_var": "lighthouse_family_safe", "type": "flag", "context": "help", "value": "yes" },
+        "topic": "TALK_lighthouse_girl_1",
+        "effect": { "npc_first_topic": "TALK_lighthouse_girl_1" },
+        "switch": true
+      },
+      {
+        "truefalsetext": {
+          "true": "I'm sorry…",
+          "false": "…",
+          "condition": { "u_has_var": "lighthouse_woman_dead", "type": "flag", "context": "death", "value": "yes" }
+        },
+        "topic": "TALK_DONE",
+        "switch": true
+      }
+    ]
+  },
+  {
+    "type": "talk_topic",
+    "id": [ "TALK_lighthouse_girl_1", "TALK_lighthouse_girl_Background" ],
+    "dynamic_line": "How are you today?",
+    "responses": [
+      { "text": "About that job…", "condition": "has_assigned_mission", "topic": "TALK_MISSION_INQUIRE" },
+      { "text": "<BGSS_intro_question>", "topic": "TALK_lighthouse_girl_Background" },
+      { "text": "Do you need any help?", "topic": "TALK_MISSION_LIST" },
+      { "text": "Goodbye.", "topic": "TALK_DONE" }
+    ]
+  },
+  {
+    "type": "talk_topic",
+    "id": "TALK_lighthouse_girl_Background",
+    "dynamic_line": "I don't have much to tell, sorry.  I'm busy with helping my mom, tiding this place to make it our new home.  You should talk to my dad, he doesn't look busy right now.  Or always…"
+  },
+  {
+    "id": "MISSION_lighthouse_girl_0",
+    "type": "mission_definition",
+    "has_generic_rewards": false,
+    "name": { "str": "Protect fisherman's daughter" },
+    "description": "She looks like a nice girl.  Maybe you should not let her die?",
+    "goal": "MGOAL_CONDITION",
+    "goal_condition": { "npc_has_var": "-", "type": "-", "context": "-", "value": "-" },
+    "difficulty": 0,
+    "value": 0,
+    "origins": [ "ORIGIN_SECONDARY" ],
+    "dialogue": {
+      "describe": "-",
+      "offer": "-",
+      "accepted": "-",
+      "rejected": "-",
+      "advice": "-",
+      "inquire": "-",
+      "success": "-",
+      "success_lie": "-",
+      "failure": "-"
+    },
+    "fail": { "effect": [ { "u_add_var": "lighthouse_girl_dead", "type": "flag", "context": "death", "value": "yes" } ] }
+  }
+]
--- a/data/json/npcs/Lighthouse_Family/NPC_lighthouse_man.json
+++ b/data/json/npcs/Lighthouse_Family/NPC_lighthouse_man.json
@@ -0,0 +1,487 @@
+[
+  {
+    "type": "npc",
+    "id": "NPC_lighthouse_man",
+    "gender": "male",
+    "class": "NC_NONE",
+    "name_unique": "Mikhail Frolov",
+    "name_suffix": "Fisherman",
+    "attitude": 0,
+    "mission": 8,
+    "chat": "TALK_lighthouse_man_1",
+    "faction": "fisherman_family",
+    "mission_offered": "MISSION_lighthouse_man_1"
+  },
+  {
+    "type": "npc_class",
+    "id": "NC_lighthouse_man",
+    "common": false,
+    "name": { "str": "Fisherman" },
+    "job_description": "I'm just wandering.",
+    "shopkeeper_item_group": "NPC_lighthouse_man_shop",
+    "traits": [ { "group": "NPC_starting_traits" }, { "group": "Appearance_Caucasian" } ],
+    "skills": [
+      { "skill": "ALL", "level": { "mul": [ { "one_in": 3 }, { "sum": [ { "dice": [ 4, 2 ] }, { "rng": [ -4, -1 ] } ] } ] } }
+    ]
+  },
+  {
+    "type": "item_group",
+    "id": "NPC_lighthouse_man_shop",
+    "subtype": "collection",
+    "items": [
+      { "item": "fish_bait", "count": [ 15, 35 ] },
+      { "item": "fish", "count": [ 5, 20 ] },
+      { "item": "fish_smoked", "count": [ 1, 4 ] },
+      { "item": "fish_cooked", "count": [ 4, 14 ] },
+      { "item": "salted_fish", "count": [ 2, 6 ] },
+      { "item": "fish_fried", "count": [ 2, 6 ] },
+      { "item": "soup_fish", "count": [ 35, 50 ], "container-item": "bottle_plastic" },
+      { "item": "fishspear", "prob": 20, "count": [ 4, 8 ] },
+      [ "doublespeargun", 20 ],
+      [ "fish_trap", 55 ],
+      [ "fishing_hook_bone", 100 ],
+      [ "fishing_rod_basic", 100 ]
+    ]
+  },
+  {
+    "type": "talk_topic",
+    "id": [
+      "TALK_lighthouse_man_1",
+      "TALK_lighthouse_man_Background",
+      "TALK_lighthouse_man_hay",
+      "TALK_lighthouse_man_survivors_yes",
+      "TALK_lighthouse_man_survivors_no"
+    ],
+    "dynamic_line": "<greet>",
+    "responses": [
+      { "text": "About that job…", "condition": "has_assigned_mission", "topic": "TALK_MISSION_INQUIRE" },
+      { "text": "<BGSS_intro_question>", "topic": "TALK_lighthouse_man_Background" },
+      {
+        "text": "How are you doing?",
+        "topic": "TALK_lighthouse_man_hay",
+        "condition": { "npc_has_var": "helped_lighthouse_man", "type": "flag", "context": "help", "value": "yes" }
+      },
+      { "text": "Do you need any help?", "topic": "TALK_MISSION_LIST" },
+      {
+        "text": "Care to trade?",
+        "topic": "TALK_lighthouse_man_1",
+        "condition": { "npc_has_var": "helped_lighthouse_man", "type": "flag", "context": "help", "value": "yes" },
+        "effect": "start_trade"
+      },
+      {
+        "text": "Has anyone come recently?",
+        "condition": { "u_has_var": "lighthouse_fixed", "type": "global", "context": "safe_space", "value": "yes" },
+        "trial": { "type": "CONDITION", "condition": { "not": { "npc_has_effect": "lighthouse_survivor_delay" } } },
+        "success": {
+          "topic": "TALK_lighthouse_man_survivors_yes",
+          "effect": [
+            { "npc_add_effect": "lighthouse_survivor_delay", "duration": 1209600 },
+            { "mapgen_update": "lighthouse_man_survivor", "om_terrain": "lighthouse_ground" }
+          ]
+        },
+        "failure": { "topic": "TALK_lighthouse_man_survivors_no" }
+      },
+      { "text": "Goodbye.", "topic": "TALK_DONE" }
+    ]
+  },
+  {
+    "type": "talk_topic",
+    "id": "TALK_lighthouse_man_Background",
+    "dynamic_line": "I'm just a simple man from a simple family.  Before <the_cataclysm> I had a fishing boat, and I went to sea on it, to catch fish and other marine life.  This is how my grandfather lived, my father lived, and I began to live like that.  I had a large family, 7 children, but not many survived, only my wife and daughter remained…"
+  },
+  {
+    "type": "talk_topic",
+    "id": "TALK_lighthouse_man_hay",
+    "dynamic_line": "You know, <very> good.  It is cozy here, there is a lot of space, and most importantly, it's safe.  We even started considering this place as our new home.  By the way, while I was fishing, a bottle with a piece of paper came to the shore of our island.  Here, take a look.\", he gave you a piece of paper, something was written on it: '0030045-0030045-35321700', with something similar to lightning scribbled nearby.  \"I wonder what it could mean…"
+  },
+  {
+    "type": "talk_topic",
+    "id": "TALK_lighthouse_man_survivors_yes",
+    "dynamic_line": "Good news, <name_g>.  One survivor sailed to us recently."
+  },
+  {
+    "type": "talk_topic",
+    "id": "TALK_lighthouse_man_survivors_no",
+    "dynamic_line": "Nobody came, <name_g>.  I'm beginning to doubt that anyone else has survived besides us…"
+  },
+  {
+    "type": "talk_topic",
+    "id": "TALK_lighthouse_man_lighthouse",
+    "dynamic_line": "Are we there yet, <name_g>?",
+    "responses": [
+      { "text": "I want you to use this item.", "topic": "TALK_lighthouse_man_lighthouse", "effect": "npc_gets_item_to_use" },
+      {
+        "text": "We're here.",
+        "topic": "TALK_MISSION_INQUIRE",
+        "condition": "mission_complete",
+        "effect": [ "stop_following", { "npc_first_topic": "TALK_lighthouse_man_1" } ]
+      },
+      { "text": "Almost.", "topic": "TALK_DONE" }
+    ]
+  },
+  {
+    "type": "talk_topic",
+    "id": "TALK_lighthouse_man_cleaning",
+    "dynamic_line": "Is it safe, my <name_g>?",
+    "responses": [
+      {
+        "text": "Yes.  Ground floor is clear.",
+        "topic": "TALK_lighthouse_man_cleaned",
+        "condition": {
+          "and": [
+            { "npc_has_var": "lighthouse_man", "type": "count", "context": "cleaning", "value": "0" },
+            "at_safe_space",
+            { "npc_at_om_location": "lighthouse_ground" }
+          ]
+        },
+        "effect": { "npc_adjust_var": "lighthouse_man", "type": "count", "context": "cleaning", "adjustment": 1 }
+      },
+      {
+        "text": "Yes.  First floor is clear.",
+        "topic": "TALK_lighthouse_man_cleaned",
+        "condition": {
+          "and": [
+            { "npc_has_var": "lighthouse_man", "type": "count", "context": "cleaning", "value": "1" },
+            "at_safe_space",
+            { "npc_at_om_location": "lighthouse_z1" }
+          ]
+        },
+        "effect": { "npc_adjust_var": "lighthouse_man", "type": "count", "context": "cleaning", "adjustment": 1 }
+      },
+      {
+        "text": "Yes.  Second floor is clear.",
+        "topic": "TALK_lighthouse_man_cleaned",
+        "condition": {
+          "and": [
+            { "npc_has_var": "lighthouse_man", "type": "count", "context": "cleaning", "value": "2" },
+            "at_safe_space",
+            { "npc_at_om_location": "lighthouse_z2" }
+          ]
+        },
+        "effect": { "npc_adjust_var": "lighthouse_man", "type": "count", "context": "cleaning", "adjustment": 1 }
+      },
+      {
+        "text": "Yes.  Third floor is clear.",
+        "topic": "TALK_lighthouse_man_cleaned",
+        "condition": {
+          "and": [
+            { "npc_has_var": "lighthouse_man", "type": "count", "context": "cleaning", "value": "3" },
+            "at_safe_space",
+            { "npc_at_om_location": "lighthouse_z3" }
+          ]
+        },
+        "effect": { "npc_adjust_var": "lighthouse_man", "type": "count", "context": "cleaning", "adjustment": 1 }
+      },
+      {
+        "text": "Yes.  Fourth floor is clear.",
+        "topic": "TALK_lighthouse_man_cleaned",
+        "condition": {
+          "and": [
+            { "npc_has_var": "lighthouse_man", "type": "count", "context": "cleaning", "value": "4" },
+            "at_safe_space",
+            { "npc_at_om_location": "lighthouse_z4" }
+          ]
+        },
+        "effect": { "npc_adjust_var": "lighthouse_man", "type": "count", "context": "cleaning", "adjustment": 1 }
+      },
+      {
+        "text": "Yes.  Top floor is clear.",
+        "condition": {
+          "and": [
+            { "npc_has_var": "lighthouse_man", "type": "count", "context": "cleaning", "value": "5" },
+            "at_safe_space",
+            { "npc_at_om_location": "lighthouse_z5" }
+          ]
+        },
+        "effect": { "npc_adjust_var": "lighthouse_man", "type": "count", "context": "cleaning", "adjustment": 1 },
+        "topic": "TALK_lighthouse_man_cleaned_done"
+      },
+      {
+        "text": "Looks like that's over.",
+        "condition": {
+          "and": [
+            { "npc_has_var": "lighthouse_man", "type": "count", "context": "cleaning", "value": "6" },
+            "at_safe_space",
+            { "npc_at_om_location": "lighthouse_ground" }
+          ]
+        },
+        "effect": { "npc_adjust_var": "lighthouse_man", "type": "count", "context": "cleaning", "adjustment": 1 },
+        "topic": "TALK_MISSION_INQUIRE"
+      },
+      { "text": "Not yet.", "topic": "TALK_DONE" }
+    ]
+  },
+  {
+    "type": "talk_topic",
+    "id": "TALK_lighthouse_man_cleaned",
+    "dynamic_line": "<its_safe>  Let's clean the next floor.",
+    "responses": [ { "text": "…", "topic": "TALK_DONE" } ]
+  },
+  {
+    "type": "talk_topic",
+    "id": "TALK_lighthouse_man_cleaned_done",
+    "dynamic_line": "<its_safe>  Let's return to the first floor.",
+    "responses": [ { "text": "…", "topic": "TALK_DONE" } ]
+  },
+  {
+    "type": "talk_topic",
+    "id": "TALK_lighthouse_man_family",
+    "dynamic_line": "Did you find them, <name_g>?",
+    "responses": [
+      {
+        "text": "We did it.  All safe.",
+        "topic": "TALK_MISSION_SUCCESS",
+        "condition": {
+          "and": [
+            { "u_has_mission": "MISSION_lighthouse_man_3" },
+            { "not": "mission_complete" },
+            { "u_has_var": "lighthouse_woman", "type": "flag", "context": "safe", "value": "yes" },
+            { "u_has_var": "lighthouse_girl", "type": "flag", "context": "safe", "value": "yes" }
+          ]
+        },
+        "effect": [ "mission_success", { "npc_first_topic": "TALK_lighthouse_man_1" } ]
+      },
+      {
+        "text": "I'm sorry, I failed you… I couldn't bring them alive…",
+        "topic": "TALK_lighthouse_man_fail",
+        "condition": {
+          "and": [
+            "mission_complete",
+            { "not": { "u_has_var": "lighthouse_woman", "type": "flag", "context": "safe", "value": "yes" } },
+            { "u_has_var": "lighthouse_girl_dead", "type": "flag", "context": "death", "value": "yes" }
+          ]
+        }
+      },
+      {
+        "text": "I'm sorry, I failed you… I couldn't bring your wife alive…",
+        "topic": "TALK_lighthouse_man_fail",
+        "condition": { "and": [ "mission_complete", { "u_has_var": "lighthouse_girl", "type": "flag", "context": "safe", "value": "yes" } ] }
+      },
+      {
+        "text": "I'm sorry, I failed you… I couldn't bring your daughter alive…",
+        "topic": "TALK_lighthouse_man_fail",
+        "condition": {
+          "and": [
+            { "not": "mission_complete" },
+            { "u_has_var": "lighthouse_woman", "type": "flag", "context": "safe", "value": "yes" },
+            { "u_has_var": "lighthouse_girl_dead", "type": "flag", "context": "death", "value": "yes" }
+          ]
+        }
+      },
+      { "text": "Nothing, really.", "topic": "TALK_DONE" }
+    ]
+  },
+  {
+    "type": "talk_topic",
+    "id": "TALK_lighthouse_man_fail",
+    "dynamic_line": "<name_g>… I entrusted you with the most valuable thing that I have left, and you…",
+    "responses": [
+      { "text": "I'm sorry…", "topic": "TALK_DONE", "effect": [ "mission_failure", "clear_mission", "end_conversation" ] }
+    ]
+  },
+  {
+    "id": "MISSION_lighthouse_man_1",
+    "type": "mission_definition",
+    "has_generic_rewards": false,
+    "name": { "str": "Lighthouse" },
+    "description": "Lead Mikhail to lighthouse.",
+    "goal": "MGOAL_GO_TO",
+    "difficulty": 0,
+    "value": 5000,
+    "start": {
+      "assign_mission_target": { "om_terrain": "lighthouse_ground", "om_special": "Lighthouse Island", "reveal_radius": 10, "search_range": 360 },
+      "update_mapgen": [
+        {
+          "om_terrain": "lighthouse_ground",
+          "place_monsters": [ { "monster": "GROUP_ZOMBIE", "x": [ 1, 22 ], "y": [ 1, 22 ], "density": 0.3 } ]
+        },
+        {
+          "om_terrain": "lighthouse_z1",
+          "place_monsters": [ { "monster": "GROUP_ZOMBIE", "x": [ 11, 16 ], "y": [ 8, 16 ], "density": 0.3 } ]
+        },
+        {
+          "om_terrain": "lighthouse_z2",
+          "place_monsters": [ { "monster": "GROUP_ZOMBIE", "x": [ 11, 16 ], "y": [ 8, 16 ], "density": 0.3 } ]
+        },
+        {
+          "om_terrain": "lighthouse_z3",
+          "place_monsters": [ { "monster": "GROUP_ZOMBIE", "x": [ 11, 16 ], "y": [ 8, 16 ], "density": 0.3 } ]
+        },
+        {
+          "om_terrain": "lighthouse_z4",
+          "place_monsters": [ { "monster": "GROUP_ZOMBIE", "x": [ 11, 16 ], "y": [ 8, 16 ], "density": 0.3 } ]
+        },
+        {
+          "om_terrain": "lighthouse_z5",
+          "place_monsters": [ { "monster": "GROUP_ZOMBIE", "x": [ 11, 16 ], "y": [ 8, 16 ], "density": 0.3 } ]
+        }
+      ],
+      "effect": [ "follow_only", { "npc_first_topic": "TALK_lighthouse_man_lighthouse" } ]
+    },
+    "end": { "opinion": { "trust": 3, "value": 3 } },
+    "origins": [ "ORIGIN_SECONDARY" ],
+    "followup": "MISSION_lighthouse_man_2",
+    "dialogue": {
+      "describe": "-",
+      "offer": "We've been wandering around the state with my family for a long time since <the_cataclysm>, and I realized that the safest hideout is the island.  I left my family in a shelter, and went to explore the area, looking for some island nearby, in a lake or in the ocean.  And you know, I found a sea map marked with navigational beacons near here.  If you want, you can help me get to one of these and take a good look at it.",
+      "accepted": "Good.  I'll be right behind you.",
+      "rejected": "Well, it's your choice.",
+      "advice": "First we need to find a transport to get there.",
+      "inquire": "We finally reached it.",
+      "success": "Looks nice, <name_g>.  Now I need to clean it from <zombies> somehow…",
+      "success_lie": "-",
+      "failure": "-"
+    }
+  },
+  {
+    "id": "MISSION_lighthouse_man_2",
+    "type": "mission_definition",
+    "has_generic_rewards": false,
+    "name": { "str": "House cleaning" },
+    "description": "Clean lighthouse from <zombies> with Mikhail.",
+    "goal": "MGOAL_CONDITION",
+    "goal_condition": { "npc_has_var": "lighthouse_man", "type": "count", "context": "cleaning", "value": "7" },
+    "difficulty": 0,
+    "value": 5000,
+    "start": {
+      "effect": [
+        "follow_only",
+        { "npc_first_topic": "TALK_lighthouse_man_cleaning" },
+        { "npc_add_var": "lighthouse_man", "type": "count", "context": "cleaning", "value": "0" }
+      ]
+    },
+    "end": {
+      "opinion": { "trust": 3, "value": 3 },
+      "update_mapgen": {
+        "om_terrain": "lighthouse_ground",
+        "faction_owner": [ { "id": "fisherman_family", "x": [ 0, 23 ], "y": [ 0, 23 ] } ],
+        "place_zones": [ { "type": "NPC_INVESTIGATE_ONLY", "faction": "fisherman_family", "x": [ 0, 23 ], "y": [ 0, 23 ] } ]
+      },
+      "effect": [
+        "stop_following",
+        { "npc_first_topic": "TALK_lighthouse_man_1" },
+        { "npc_lose_var": "lighthouse_man", "type": "count", "context": "cleaning" }
+      ]
+    },
+    "origins": [ "ORIGIN_SECONDARY" ],
+    "followup": "MISSION_lighthouse_man_3",
+    "dialogue": {
+      "describe": "-",
+      "offer": "So, we found the lighthouse.  Now, I need to clean it.  Want to help me with it?",
+      "accepted": "Great.  Let's do it together.  I'll be right behind you.  We will clean floor by floor.  If you decide that the floor is clean, tell me about it, and we will move on to the next, and so on to the very top.",
+      "rejected": "Well, it's your choice.",
+      "advice": "Be <very> careful.  These <name_b>s are most dangerous in tight spaces.",
+      "inquire": "<its_safe>",
+      "success": "Great, <very> great.  All that remains is to wash all the floors…",
+      "success_lie": "-",
+      "failure": "-"
+    }
+  },
+  {
+    "id": "MISSION_lighthouse_man_3",
+    "type": "mission_definition",
+    "name": { "str": "Fisherman's family" },
+    "description": "Mikhail asked you to bring back his family.",
+    "goal": "MGOAL_ASSASSINATE",
+    "difficulty": 0,
+    "value": 25000,
+    "start": {
+      "effect": { "npc_first_topic": "TALK_lighthouse_man_family" },
+      "assign_mission_target": { "om_terrain": "house_04_basement", "reveal_radius": 2 },
+      "update_mapgen": {
+        "place_npcs": [
+          { "class": "NPC_lighthouse_woman", "x": 4, "y": 8, "target": true },
+          { "class": "NPC_lighthouse_girl", "x": 3, "y": 8 }
+        ]
+      }
+    },
+    "end": {
+      "opinion": { "trust": 6, "value": 6 },
+      "effect": { "u_add_var": "lighthouse_family_safe", "type": "flag", "context": "help", "value": "yes" }
+    },
+    "origins": [ "ORIGIN_SECONDARY" ],
+    "followup": "MISSION_lighthouse_man_4",
+    "dialogue": {
+      "describe": "-",
+      "offer": "We found the lighthouse and cleared it of <zombies>.  Now, I need to bring my family here.  May I ask you for a favor?  Since you bring me here, can you go back, find my family and bring them here?",
+      "accepted": "You are my savior!  I'll take a look around here for a while, prepare everything here for their arrival.",
+      "rejected": "Well, it's your choice.",
+      "advice": "Please be very careful.  I don't want to lose them…",
+      "inquire": "-",
+      "success": "I don't even know how to thank you, <name_g>.  I am in eternal debt to you.",
+      "success_lie": "-",
+      "failure": "-"
+    }
+  },
+  {
+    "id": "MISSION_lighthouse_man_4",
+    "type": "mission_definition",
+    "name": { "str": "Fisherman's boat" },
+    "description": "Help Mikhail make a boat.  Bring 250 nails.",
+    "goal": "MGOAL_FIND_ITEM",
+    "item": "nail",
+    "count": 250,
+    "difficulty": 0,
+    "value": 10000,
+    "end": {
+      "opinion": { "trust": 3, "value": 3 },
+      "update_mapgen": {
+        "om_terrain": "lighthouse_ground",
+        "place_vehicles": [ { "vehicle": "canoe", "x": 3, "y": 3, "rotation": 0, "status": 0, "chance": 100 } ]
+      },
+      "effect": [ { "npc_add_var": "helped_lighthouse_man", "type": "flag", "context": "help", "value": "yes" } ]
+    },
+    "origins": [ "ORIGIN_SECONDARY" ],
+    "followup": "MISSION_lighthouse_man_5",
+    "dialogue": {
+      "describe": "-",
+      "offer": "The building has been cleared of <zombies>, my family is here, everything is going very well.  It remains only to provide ourselves with food, transport and we can not worry about the future.  You helped me and my family so much, can you help us with something else?  I need a boat for fishing, or just to explore the area.  Can you help me make a boat?",
+      "accepted": "Thank you, <name_g>.  I need only 250 nails.  I'll find the planks, the rest of the tools too, but the main problem is the nails.  Too much for one boat, but I want to have resources in reserve, just in case.",
+      "rejected": "Well, it's your choice.",
+      "advice": "Please, if you can, don't disassemble furniture here.  It can still be useful.",
+      "inquire": "Did you find it?",
+      "success": "<very> good, <name_g>, thank you!  Now we are not afraid of hunger, rain, or other bad weather, he-he.  By the way, I have a small supply of fish, tackle, baits and rods.  If you are interested, I can share some with you.",
+      "success_lie": "-",
+      "failure": "-"
+    }
+  },
+  {
+    "id": "MISSION_lighthouse_man_5",
+    "type": "mission_definition",
+    "name": { "str": "Fixing lighthouse" },
+    "description": "Mikhail asked you to find someone, who have enough expertise to fix the mechanism of lighthouse.",
+    "goal": "MGOAL_CONDITION",
+    "goal_condition": { "u_has_var": "lighthouse_fixed", "type": "global", "context": "safe_space", "value": "ready" },
+    "difficulty": 0,
+    "value": 100000,
+    "end": {
+      "opinion": { "trust": 3, "value": 3 },
+      "update_mapgen": {
+        "om_terrain": "lighthouse_z5",
+        "place_terrain": [ { "ter": "t_thconc_floor_olight", "x": 11, "y": 12 }, { "ter": "t_thconc_floor_olight", "x": 13, "y": 13 } ]
+      },
+      "effect": [
+        { "npc_add_effect": "lighthouse_survivor_delay", "duration": 1209600 },
+        { "u_add_var": "lighthouse_fixed", "type": "global", "context": "safe_space", "value": "yes" }
+      ]
+    },
+    "origins": [ "ORIGIN_SECONDARY" ],
+    "dialogue": {
+      "describe": "-",
+      "offer": "My family is here, we have food, water, boat and a roof over our heads, all thanks to you, <name_g>.  Now, I also want to help other survivors.  Here's what I thought: if I can get this old lighthouse up and running, other survivors will see its light from afar.  If they see it, they will think that there are living people here, and will try to get here.  Can you help me fix it?",
+      "accepted": "I knew you wouldn't refuse!  But there is one problem: I have no idea how to fix it.  Maybe if you met someone who have experience in electrical engineering, we can figure out how to start this old junk.",
+      "rejected": "Well, it's your choice.",
+      "advice": "I'm sure that not all burned in flames of <the_cataclysm> and you can find someone suitable.",
+      "inquire": "Well, have you fixed it?",
+      "success": "Splendid, <name_g>!  We can only wait now…",
+      "success_lie": "-",
+      "failure": "-"
+    }
+  },
+  {
+    "type": "mapgen",
+    "update_mapgen_id": "lighthouse_man_survivor",
+    "method": "json",
+    "object": { "place_npcs": [ { "class": "NPC_survivor_lighthouse", "x": [ 7, 17 ], "y": [ 10, 15 ] } ] }
+  }
+]
--- a/data/json/npcs/Lighthouse_Family/NPC_lighthouse_woman.json
+++ b/data/json/npcs/Lighthouse_Family/NPC_lighthouse_woman.json
@@ -0,0 +1,121 @@
+[
+  {
+    "type": "npc",
+    "id": "NPC_lighthouse_woman",
+    "name_unique": "Heather Frolova",
+    "gender": "female",
+    "class": "NC_NONE",
+    "attitude": 1,
+    "mission": 8,
+    "chat": "TALK_lighthouse_woman_start",
+    "faction": "fisherman_family"
+  },
+  {
+    "type": "talk_topic",
+    "id": "TALK_lighthouse_woman_start",
+    "dynamic_line": "I'm scared.  Where is my husband?",
+    "speaker_effect": { "sentinel": "met", "effect": [ "follow_only", { "add_mission": "MISSION_lighthouse_woman_0" } ] },
+    "responses": [
+      {
+        "text": "I want you to use this item.",
+        "topic": "TALK_lighthouse_woman_start",
+        "condition": "npc_following",
+        "effect": "npc_gets_item_to_use"
+      },
+      {
+        "text": "We're here.",
+        "topic": "TALK_lighthouse_woman_safe",
+        "condition": { "npc_at_om_location": "lighthouse_ground" },
+        "effect": [
+          "mission_success",
+          "clear_mission",
+          "stop_following",
+          { "npc_first_topic": "TALK_lighthouse_woman_safe" },
+          { "u_add_var": "lighthouse_woman", "type": "flag", "context": "safe", "value": "yes" }
+        ]
+      },
+      { "text": "Let's go.", "topic": "TALK_DONE" }
+    ]
+  },
+  {
+    "type": "talk_topic",
+    "id": "TALK_lighthouse_woman_safe",
+    "dynamic_line": {
+      "u_has_mission": "MISSION_lighthouse_man_3",
+      "yes": {
+        "u_has_var": "lighthouse_girl_dead",
+        "type": "flag",
+        "context": "death",
+        "value": "yes",
+        "yes": "Thank you for saving me.  It's a shame my Angelina didn't make it… you did everything you could, and I don't blame you for it…",
+        "no": "Thank you!"
+      },
+      "no": {
+        "u_has_var": "lighthouse_girl_dead",
+        "type": "flag",
+        "context": "death",
+        "value": "yes",
+        "yes": "Poor, poor Angelina…",
+        "no": "Hello."
+      }
+    },
+    "responses": [
+      {
+        "text": "Hi.",
+        "condition": { "u_has_var": "lighthouse_family_safe", "type": "flag", "context": "help", "value": "yes" },
+        "topic": "TALK_lighthouse_woman_1",
+        "effect": { "npc_first_topic": "TALK_lighthouse_woman_1" },
+        "switch": true
+      },
+      {
+        "truefalsetext": {
+          "true": "I'm sorry…",
+          "false": "…",
+          "condition": { "u_has_var": "lighthouse_girl_dead", "type": "flag", "context": "death", "value": "yes" }
+        },
+        "topic": "TALK_DONE",
+        "switch": true
+      }
+    ]
+  },
+  {
+    "type": "talk_topic",
+    "id": [ "TALK_lighthouse_woman_1", "TALK_lighthouse_woman_Background" ],
+    "dynamic_line": "How are you today?",
+    "responses": [
+      { "text": "About that job…", "condition": "has_assigned_mission", "topic": "TALK_MISSION_INQUIRE" },
+      { "text": "<BGSS_intro_question>", "topic": "TALK_lighthouse_woman_Background" },
+      { "text": "Do you need any help?", "topic": "TALK_MISSION_LIST" },
+      { "text": "Goodbye.", "topic": "TALK_DONE" }
+    ]
+  },
+  {
+    "type": "talk_topic",
+    "id": "TALK_lighthouse_woman_Background",
+    "dynamic_line": "I don't have much to tell, sorry.  I'm busy with tiding this place, making it our new home.  You should talk to my husband, he doesn't look busy right now.  Or always…"
+  },
+  {
+    "id": "MISSION_lighthouse_woman_0",
+    "type": "mission_definition",
+    "has_generic_rewards": false,
+    "name": { "str": "Protect fisherman's wife" },
+    "description": "She looks like a nice woman.  Maybe you should not let her die?",
+    "goal": "MGOAL_CONDITION",
+    "goal_condition": { "npc_has_var": "-", "type": "-", "context": "-", "value": "-" },
+    "difficulty": 0,
+    "value": 0,
+    "origins": [ "ORIGIN_SECONDARY" ],
+    "dialogue": {
+      "describe": "-",
+      "offer": "-",
+      "accepted": "-",
+      "rejected": "-",
+      "advice": "-",
+      "inquire": "-",
+      "success": "-",
+      "success_lie": "-",
+      "failure": "-"
+    },
+    "fail": { "effect": [ { "u_add_var": "lighthouse_wife_dead", "type": "flag", "context": "death", "value": "yes" } ] }
+  }
+]
--- a/data/json/npcs/Lighthouse_Family/TALK_fix_lighthouse.json
+++ b/data/json/npcs/Lighthouse_Family/TALK_fix_lighthouse.json
@@ -0,0 +1,79 @@
+[
+  {
+    "type": "talk_topic",
+    "id": [ "TALK_FRIEND", "TALK_GIVE_ITEM", "TALK_USE_ITEM", "TALK_RADIO" ],
+    "responses": [
+      {
+        "text": "You said that you have experience in electrical engineering…",
+        "topic": "TALK_ENG_LIGHTHOUSE",
+        "condition": {
+          "and": [ { "npc_has_skill": { "skill": "mechanics", "level": 6 } }, { "u_has_mission": "MISSION_lighthouse_man_5" } ]
+        }
+      }
+    ]
+  },
+  {
+    "type": "talk_topic",
+    "id": "TALK_ENG_LIGHTHOUSE",
+    "dynamic_line": "I did, actually.  Why are you asking?",
+    "responses": [
+      {
+        "text": "We're here.  Ready to start?",
+        "topic": "TALK_ENG_LIGHTHOUSE_2",
+        "condition": { "npc_at_om_location": "lighthouse_z4" },
+        "effect": [ "leave", "assign_guard" ]
+      },
+      { "text": "Can you repair the mechanism of the lighthouse?", "topic": "TALK_ENG_LIGHTHOUSE_1" },
+      { "text": "<done_conversation_section>", "topic": "TALK_NONE" }
+    ]
+  },
+  {
+    "type": "talk_topic",
+    "id": "TALK_ENG_LIGHTHOUSE_1",
+    "dynamic_line": "Sure thing, boss.  Take me there and in a few days it will be like new.",
+    "responses": [ { "text": "<done_conversation_section>", "topic": "TALK_DONE" } ]
+  },
+  {
+    "type": "talk_topic",
+    "id": "TALK_ENG_LIGHTHOUSE_2",
+    "dynamic_line": "Hmm, looks <shitty>.  I'll do my best.",
+    "responses": [
+      {
+        "text": "Start working.",
+        "topic": "TALK_DONE",
+        "effect": [
+          { "npc_first_topic": "TALK_ENG_LIGHTHOUSE_WORKING" },
+          { "npc_add_effect": "lighthouse_repairs_underway", "duration": 172800 }
+        ]
+      }
+    ]
+  },
+  {
+    "type": "talk_topic",
+    "id": "TALK_ENG_LIGHTHOUSE_WORKING",
+    "dynamic_line": {
+      "npc_has_effect": "lighthouse_repairs_underway",
+      "yes": "I'm still working, boss.",
+      "no": "All done, boss.  Tell that fisherman to try it in action."
+    },
+    "speaker_effect": {
+      "sentinel": "done",
+      "condition": { "not": { "npc_has_effect": "lighthouse_repairs_underway" } },
+      "effect": { "u_add_var": "lighthouse_fixed", "type": "global", "context": "safe_space", "value": "ready" }
+    },
+    "responses": [
+      {
+        "text": "We're done here.  <end_talking>",
+        "topic": "TALK_DONE",
+        "condition": {
+          "and": [
+            { "not": { "npc_has_effect": "lighthouse_repairs_underway" } },
+            { "not": { "u_has_mission": "MISSION_lighthouse_man_5" } }
+          ]
+        },
+        "effect": "follow"
+      },
+      { "text": "Good.", "topic": "TALK_DONE" }
+    ]
+  }
+]
--- a/data/json/npcs/Lighthouse_Family/npc_survivor.json
+++ b/data/json/npcs/Lighthouse_Family/npc_survivor.json
@@ -0,0 +1,43 @@
+[
+  {
+    "type": "npc",
+    "id": "NPC_survivor_lighthouse",
+    "//": "Generic random survivor related to lighthouse family",
+    "class": "NC_NONE",
+    "attitude": 0,
+    "mission": 7,
+    "chat": "TALK_LIGHTHOUSE_SURVIVOR",
+    "faction": "fisherman_family"
+  },
+  {
+    "type": "talk_topic",
+    "id": "TALK_LIGHTHOUSE_SURVIVOR",
+    "dynamic_line": "Hello!  Glad to meet another survivor.",
+    "responses": [ { "text": "Me too.  How did you manage to get here?", "topic": "TALK_LIGHTHOUSE_SURVIVOR1" } ]
+  },
+  {
+    "//": "Could use more variety.",
+    "type": "talk_topic",
+    "id": "TALK_LIGHTHOUSE_SURVIVOR1",
+    "dynamic_line": {
+      "and": [
+        [
+          "During one of my night searches of food and supplies, I noticed a bright glow that came from somewhere far away.  I thought that one of the survivors had lit it to indicate their location.  As you can see, I was right.  I managed to find a boat near the nearest shore, on which I set sail.",
+          "I have been sailing on my little boat from coast to coast for a long time.  In truth, the boat was not entirely mine, but it doesn't matter.  That way of life provided me with sufficient safety from the <zombies>, and I managed to get around the sea creatures deftly.  When I saw a distant light, at first, I could not believe my eyes.  Then, I decided to find out what it is."
+        ],
+        [
+          "  Unfortunately, during my 'voyage' to this lighthouse, luck turned away from me.  I was attacked by some <monster> from the underwater depths.  I couldn't fight off him and he dragged my ship to the bottom.  The waves brought me straight to the shore of this little island.  I still don't understand by what miracle I managed to survive, <name_g>.",
+          "  Unfortunately, when I arrived here, I forgot to tie my boat, and during yesterday's storm it was carried off somewhere.  Well, you don't always have to be lucky, right?",
+          "  I sailed here a few days ago.  Mikhail and his family are very hospitable.  Unfortunately, during our joint fishing, we were attacked by a swarm of underwater <monster>'s, and my boat was smashed to pieces.  It was <very> scary, we could barely sail away on Mikhail's ship."
+        ]
+      ]
+    },
+    "responses": [
+      {
+        "text": "I'm glad you are OK.",
+        "topic": "TALK_STRANGER_FRIENDLY",
+        "effect": { "npc_first_topic": "TALK_STRANGER_FRIENDLY" }
+      }
+    ]
+  }
+]
--- a/data/json/npcs/Lighthouse_Family/effects.json
+++ b/data/json/npcs/Lighthouse_Family/effects.json
@@ -0,0 +1,20 @@
+[
+  {
+    "type": "effect_type",
+    "id": "lighthouse_survivor_delay",
+    "name": [ "Asked about survivors" ],
+    "desc": [ "AI tag: for having recently asked an NPC about new people.  This is a bug if you have it." ],
+    "max_intensity": 1,
+    "int_dur_factor": "336 h",
+    "base_mods": { "per_mod": [ 0 ] }
+  },
+  {
+    "type": "effect_type",
+    "id": "lighthouse_repairs_underway",
+    "name": [ "Repairing lighthouse" ],
+    "desc": [ "AI tag: for repairing the lighthouse.  This is a bug if you have it." ],
+    "max_intensity": 1,
+    "int_dur_factor": "48 h",
+    "base_mods": { "per_mod": [ 0 ] }
+  }
+]
--- a/data/json/mapgen/dock.json
+++ b/data/json/mapgen/dock.json
@@ -74,7 +74,8 @@
         "      dddddddddddd      ",
         "      dddddddddddd      "
       ],
-      "palettes": [ "dock_small" ]
+      "palettes": [ "dock_small" ],
+      "place_nested": [ { "chunks": [ [ "NPC_lighthouse_man_spawn", 25 ], [ "null", 75 ] ], "x": 12, "y": 21 } ]
     }
   },
   {
--- a/data/json/mapgen/nested/npc_nested_spawns.json
+++ b/data/json/mapgen/nested/npc_nested_spawns.json
@@ -0,0 +1,8 @@
+[
+  {
+    "type": "mapgen",
+    "method": "json",
+    "nested_mapgen_id": "NPC_lighthouse_man_spawn",
+    "object": { "mapgensize": [ 1, 1 ], "place_npcs": [ { "class": "NPC_lighthouse_man", "x": 0, "y": 0 } ] }
+  }
+]