forked from historicalsource/shogun
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcast.zil
2265 lines (2182 loc) · 71.4 KB
/
cast.zil
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
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
"CAST for
SHOGUN
(c) Copyright 1988 Infocom, Inc. All Rights Reserved."
<FILE-FLAGS SENTENCE-ENDS?>
<BEGIN-SEGMENT 0>
<CONSTANT J-HEAD 1>
<CONSTANT J-KILL-MARIKO 2>
<CONSTANT J-SEPPUKU 3>
<CONSTANT J-CALL-YABU 4>
<CONSTANT J-SHOOT-YABU 5>
<CONSTANT J-ATTACK-ISHIDO 6>
<CONSTANT J-LAUGH-AT-TORANAGA 7>
<CONSTANT J-SWITCH 8>
<CONSTANT J-WRONG-ANSWER 9>
<ROUTINE NEW-SDESC (OBJ STR "OPT" (IMPROPER? <>))
<COND (.IMPROPER?
<FSET .OBJ ,THE>
<FCLEAR .OBJ ,NOTHEBIT>
<FCLEAR .OBJ ,NOABIT>)
(ELSE
<FCLEAR .OBJ ,THE>
<FSET .OBJ ,NOTHEBIT>
<FSET .OBJ ,NOABIT>)>
<PUTP .OBJ ,P?SDESC .STR>>
<ROUTINE YABU-WAKARIMASEN ()
<TELL
"\""I"Wakarimasen, Anjin-san"",\" Yabu replies gruffly." CR>>
<ROUTINE WAKARIMASEN ()
<COND (<OR <P? KONNICHI-WA ROOMS>
<P? KONBANWA>>
<TELL
"\""I"Domo, genki desu"",\" " THE ,WINNER " answers politely." CR>)
(<P? NIHON-GO-GA HANASE-MASEN>
<TELL
CTHE ,WINNER " seems to understand, but is at a loss what to say next." CR>)
(<JAPANESE-VERB?>
<TELL
CTHE ,WINNER " seems impressed that you know some Japanese, but apparently
isn't sure what you are getting at." CR>)
(ELSE
<TELL
"\""I"Wakarimasen, Anjin-san.""\" " CTHE ,WINNER " doesn't appear to
understand you." CR>)>>
<VOC "ANJIN" NOUN>
<VOC "ANJIN-SAN" NOUN>
<OBJECT BLACKTHORNE
(LOC BRIDGE-OF-ERASMUS)
(OWNER LG-ERASMUS)
(DESC "Blackthorne")
(SYNONYM JOHN BLACKTHORNE
PILOT PILOT-MAJOR
PILOT ;ANJIN PILOT-MAJOR ;ANJIN-SAN)
(ADJECTIVE JOHN)
(FLAGS PERSON ENGLISHBIT NOABIT NOTHEBIT OPENBIT CONTBIT SEARCHBIT)
(HEALTH 3) ;"0=ERASMUS, 1=ANJIRO, 2=ANJIRO, 3 otherwise"
(GENERIC GENERIC-PILOT-F)
(ACTION BLACKTHORNE-F)>
<ROUTINE GENERIC-PILOT-F (R F)
<COND (<SCENE? ,S-RODRIGUES> ,RODRIGUES)
(ELSE ,BLACKTHORNE)>>
<ROUTINE BLACKTHORNE-F ("OPT" (RARG <>))
<COND (<RARG? <>>
<COND (<P? (BE BE?) (ME BLACKTHORNE)>
<COND (<PRSI? BLACKTHORNE>
<TELL
"That's correct." CR>)
(<PRSI? ENGLISH>
<TELL
"That's right, although your mother was Dutch." CR>)>)
(<VERB? BE? BE WHERE HOW>
<RFALSE>)
(<PRSO? BLACKTHORNE>
<PERFORM ,PRSA ,ME ,PRSI>
<RTRUE>)>)
(<RARG? WINNER>
<COND (<AND <B-NOT-STANDING?>
<OR <MOTION-VERB?>
<VERB? STAND>
<AND <HOSTILE-VERB?>
,OPPONENT
<EQUAL? ,OPPONENT ,PRSO ,PRSI>>
<AND <VERB? OPEN CLOSE>
<FSET? ,PRSO ,DOORBIT>>>
<NOT <PAST-TENSE?>>>
<COND (<HERE? ,MURA-HOUSE> <RFALSE>)
(<FSET? <LOC ,WINNER> ,VEHBIT>
<RFALSE>)
(<AND <SCENE? ,S-NINJA>
<FSET? ,MARIKO ,RMUNGBIT>>
<COND (<NOT <IN? ,YABU ,SECRET-REDOUBT>>
<TELL
"You are too shaken to stand." CR>)
(ELSE
<B-STAND>
<FCLEAR ,BLACKTHORNE ,RMUNGBIT>
<TELL
"You lurch up, Yabu helping you, and painfully approach Mariko." CR>)>)
(<SCENE? ,S-TORANAGA> <RFALSE>)
(<AND <SCENE? ,S-QUAKE>
<OR ,QUAKE?
<QUEUED? I-CRAWL>>>
<RFALSE>)
(ELSE
<B-STAND>
<TELL "You stand up">
<COND (<OR <P? STAND> <P? WALK ,P?UP>>
<TELL "." CR>)
(ELSE
<TELL " first." CR>)>)>)
(<AND <FSET? ,WINNER ,RMUNGBIT>
<SCENE? ,S-NINJA>>
<COND (<GAME-VERB?> <RFALSE>)
(<AND <NOT <ABSTRACT-VERB?>>
<OR <PRSO? MARIKO>
<PRSI? MARIKO>>>
<YOULL-HAVE-TO "get closer to her">)
(<NOT <PASSIVE-VERB?>>
<TELL
"The explosion has left you too dazed to do anything." CR>)>)>)>>
<ROUTINE I-DONT-KNOW? ()
<AND <VERB? KNOW>
<EQUAL? ,PRSS ,ME>
<EQUAL? ,PRSQ ,V?DO?>
<NOT <BTST <PARSE-FLAGS ,PARSE-RESULT> ,PARSE-QUESTION>>
<BTST <PARSE-FLAGS ,PARSE-RESULT> ,PARSE-NOT>>>
<OBJECT BOOTS
(OWNER BLACKTHORNE)
(DESC "your boots")
(FDESC "Sitting at the bottom of the steps are your boots.")
(SYNONYM BOOTS PAIR)
(FLAGS TAKEBIT WEARABLE PLURAL NOTHEBIT NOABIT)
(ACTION BOOTS-F)>
<ROUTINE BOOTS-F ()
<COND (<VERB? EXAMINE>
<COND (<SCENE? ,S-ERASMUS>
<TELL
"They are salt-encrusted and worn." CR>)
(ELSE
<TELL
"They have been cleaned and shined." CR>)>)
(<VERB? LOOK-INSIDE SMELL>
<TELL
"They are the same boots you've been wearing for two years now. Let's
just say they aren't in perfect condition any more." CR>)
(<AND <VERB? TAKE-OFF>
<FSET? ,BOOTS ,WEARBIT>>
<COND (<SCENE? S-ERASMUS>
<TELL
"You'd be crazy to remove your boots in this weather!" CR>)>)
(<VERB? WEAR>
<COND (<AND <NOT <HELD? ,PRSO>>
<NOT <EQUAL? <ITAKE> T>>>
<RTRUE>)
(<NOT <FSET? ,BOOTS ,WEARBIT>>
<FSET ,BOOTS ,WEARBIT>
<TELL
"You put on your boots." CR>)>)>>
<OBJECT CLOTHES
(OWNER BLACKTHORNE)
(DESC "your clothes")
(SYNONYM CLOTHES)
(ADJECTIVE ;MY PILE)
(FLAGS TAKEBIT WEARABLE PLURAL NOTHEBIT NOABIT)
(ACTION CLOTHES-F)>
<ROUTINE CLOTHES-F ()
<COND (<VERB? EXAMINE>
<COND (<SCENE? ,S-ERASMUS>
<TELL
"They are filthy, torn, and wet." CR>)
(<NOT <FSET? ,CLOTHES ,TOUCHBIT>>
<TELL
"They are in a neat pile, washed and pressed and mended with tiny,
exquisite stitching. But your knife is gone, and so are your
keys. Your boots are nowhere to be found. Worst of all, there is no sign
of your precious rutters!" CR>)>)
(<VERB? TAKE>
<COND (<AND <SCENE? ,S-ANJIRO>
<L? <GETP ,WINNER ,P?HEALTH> 3>>
<QUEUE I-COLLAPSE 4>
<TELL
"You are still too weak to stand and go over to the clothes." CR>)>)
(<VERB? WEAR>
<COND (<AND <NOT <HELD? ,PRSO>>
<L? <GETP ,WINNER ,P?HEALTH> 3>>
<PERFORM ,V?TAKE ,CLOTHES>
<RTRUE>)
(<AND <NOT <FSET? ,CLOTHES ,WEARBIT>>
<OR <IN? ,CLOTHES ,WINNER>
<ITAKE>>>
<FSET ,CLOTHES ,WEARBIT>
<TELL "You ">
<COND (<IN? ,WINNER ,QUILT>
<MOVE ,WINNER ,HERE>)>
<COND (<B-NOT-STANDING?>
<B-STAND>
<TELL "stand shakily and ">)>
<TELL "put on your clothes">
<COND (<NOT <HELD? ,BOOTS>>
<TELL ", feeling strange without your boots">)>
<TELL "." CR>)>)
(<VERB? TAKE-OFF>
<COND (<SCENE? S-ERASMUS>
<TELL
"You would freeze, or at least take a terrible chill." CR>)
(<FSET? ,BOOTS ,WEARBIT>
<YOULL-HAVE-TO "take off your boots">)
(<AND <VERB? TAKE-OFF> <FORMAL-SCENE?>>
<TELL
"You would expose yourself to ridicule." CR>)
(ELSE
<FCLEAR ,CLOTHES ,WEARBIT>
<TELL
"You remove your clothes." CR>)>)
(<VERB? TEAR>
<COND (<SCENE? ,S-ERASMUS>
<TELL
"You are in desperate straits, but rending your garments seems like an odd
reaction." CR>)
(ELSE
<TELL
"Your clothes are thick, strong European fabrics and don't tear at all
easily." CR>)>)>>
<OBJECT KIMONO
(OWNER BLACKTHORNE)
(DESC "kimono")
(SYNONYM KIMONO CLOTHES)
(ADJECTIVE SILK)
(FLAGS TAKEBIT WEARABLE)
(ACTION KIMONO-F)>
<ROUTINE KIMONO-F ()
<COND (<AND <VERB? TAKE-OFF> <FORMAL-SCENE?>>
<TELL
"You would expose yourself to ridicule." CR>)
(<AND <VERB? WEAR>
<NOUN-USED? ,PRSO ,W?CLOTHES>
<NOT <FSET? ,PRSO ,RMUNGBIT>>>
<PERFORM ,V?DRESS>
<RTRUE>)
(<AND <VERB? TAKE-OFF>
<NOUN-USED? ,PRSO ,W?CLOTHES>
<NOT <FSET? ,PRSO ,RMUNGBIT>>>
<PERFORM ,V?STRIP>
<RTRUE>)
(<VERB? TEAR>
<TELL
"Your kimono would tear easily, but it would be silly to do so." CR>)>>
<OBJECT SANDALS
(OWNER BLACKTHORNE)
(DESC "pair of sandals")
(SYNONYM SANDALS SLIPPERS THONG THONGS)
(FLAGS TAKEBIT WEARABLE PLURAL)>
<OBJECT SOCKS
(OWNER BLACKTHORNE)
(DESC "socks")
(SYNONYM SOCKS TABIS)
(ADJECTIVE TABI)
(FLAGS TAKEBIT WEARABLE PLURAL NOABIT)
(ACTION SOCKS-F)>
<ROUTINE SOCKS-F ()
<COND (<VERB? EXAMINE>
<TELL
"These are tabi socks. They are different from European socks in that
there is a notch for the thong of a sandal. They remind you of mittens." CR>)
(<AND <VERB? TAKE-OFF WEAR>
<FSET? ,SANDALS ,WEARBIT>>
<HAVE-TO-TAKE-OFF ,SANDALS>)>>
<OBJECT SWORDS
(OWNER BLACKTHORNE)
(DESC "swords")
(SYNONYM SWORDS SWORD SELLER)
(ADJECTIVE PAIR KILLING STABBING OIL LONG SHORT)
(FLAGS TAKEBIT WEARABLE WEAPONBIT NOABIT SCOREBIT PLURAL)
(GENERIC GENERIC-SWORD-F)
(ACTION SWORDS-F)>
<ROUTINE SWORDS-F ()
<COND (<VERB? EXAMINE>
<COND (<FSET? ,SWORDS ,RMUNGBIT>
<FCLEAR ,SWORDS ,RMUNGBIT>
<FSET ,SWORDS ,SCOREBIT>
<SCORE-OBJECT ,SWORDS>
<TELL
"You quickly check your sword belt. It's loose, almost ready to fall
off! What a stroke of luck you checked it! How embarrassing if it had
fallen off!" CR>)
(ELSE
<TELL
"You have a pair of samurai swords, one the long killing sword">
<COND (<G? ,SCENE ,S-QUAKE>
<TELL
" named 'Oil Seller'">)>
<TELL ", and
the other the shorter stabbing sword." CR>)>)
(<AND <VERB? WHO WHAT>
<NOUN-USED? ,PRSO ,W?SELLER>>
<TELL
"The name comes from an experience you would rather forget. One day
hunting with Toranaga, your path had been blocked by a weather-beaten
old oil
seller. Cursing, you commanded him to move, and he cursed you
back. Toranaga pointed to one of his bodyguards, asked you to give him
your sword, and before you realized what was happening, the samurai
lunged at the peddler. He walked on a pace before falling, divided
in two at the waist. Toranaga suggested you call your sword 'Oil
Seller' in honor of the incident. \"Your sword has now become legend.\"" CR>)
(<VERB? WEAR>
<COND (<NOT <FSET? ,PRSO ,WEARBIT>>
<FSET ,PRSO ,WEARBIT>
<TELL
"You shove the sword into your sash." CR>)
(ELSE
<TELL "The sword is already in your sash." CR>)>)
(<AND <VERB? TAKE>
<NOT <HELD? ,PRSO>>>
<COND (<EQUAL? <ITAKE> T>
<FSET ,SWORDS ,WEARBIT>
<TELL
"You take the sword and shove it into your sash." CR>)
(ELSE <RTRUE>)>)
(<OR <AND <VERB? DRAW PICK USE TAKE>
<HELD? ,PRSO>>
<P? PUT * HANDS>>
<COND (<FSET? ,PRSO ,WEARBIT>
<FCLEAR ,PRSO ,WEARBIT>
<TELL
"Your skill with the sword is not great, but you are now as ready as
you will ever be!" CR>)
(ELSE
<TELL "You've already drawn your sword." CR>)>)>>
<OBJECT SEBASTIO
(SDESC "priest")
;(DESC "Father Sebastio")
(SYNONYM PRIEST SEBASTIO MAN FATHER JESUIT EUROPEAN)
(ADJECTIVE FATHER TONSURED)
(FLAGS PERSON PORTUGUESEBIT OPENBIT CONTBIT SEARCHBIT NOABIT
THE)
(ACTION SEBASTIO-F)>
<ROUTINE SEBASTIO-F ("OPT" (RARG <>) "AUX" OW)
<COND (<RARG? SUBJ>
<RFALSE>)
(<RARG? WINNER>
<COND (<P? HELP ME>
<TELL
"\"Ah, help!\" he says with icy contempt. \"Help a heretic pirate!\"" CR>)
(<VERB? HELLO>
<TELL
CTHE ,SEBASTIO " ignores your greeting." CR>)
(<P? FIND ;WHERE (ME THIS)>
<COND (,YABU-QUESTION
<SPEAK-ONLY-TO-YABU>)
(ELSE
<TELL
"\"The Japans, pirate.\" the priest says angrily." CR>)>)
(<P? BE THIS JAPAN>
<COND (,YABU-QUESTION
<SPEAK-ONLY-TO-YABU>)
(ELSE
<TELL
"\"Yes, Japan. Nippon,\" the priest says impatiently." CR>)>)
(<VERB? WHO>
<COND (<PRSO? YOU>
<COND (,YABU-QUESTION <SPEAK-ONLY-TO-YABU>)
(ELSE
<NEW-SDESC ,SEBASTIO "Father Sebastio">
<TELL
"\"Father Sebastio. I'm from Portugal. I'm a Jesuit.\"" CR>)>)
(<AND <PRSO? ,YABU ,GLOBAL-DAIMYO>
<NOUN-USED? ,PRSO ,W?DAIMYO>>
<TELL
"\"The "I"daimyo"" is Kasigi Yabu."G" He owns this whole province.\"" CR>)
(<PRSO? ,OMI>
<COND (,YABU-QUESTION <SPEAK-ONLY-TO-YABU>)
(ELSE
<TELL "\"">
<COND (<NOT <FSET? ,OMI ,NOTHEBIT>>
<TELL
"Who told you about Kasigi Omi-san? ">)>
<TELL
"Kasigi Omi-san is the samurai in charge of this village. He is
the Lord Yabu's nephew.\"" CR>)>)
(<PRSO? ,MURA>
<COND (,YABU-QUESTION <SPEAK-ONLY-TO-YABU>)
(ELSE
<TELL
"\"He is the headman of this village. He, at least, is a good
Christian.\"" CR>)>)
(ELSE
<TELL
G"\"I'm not here to answer your questions, pirate!\"" CR>)>)
(<VERB? WHAT>
<COND (<PRSO? YOU>
<PERFORM ,V?WHO ,YOU>
<RTRUE>)
(<PRSO? ,GLOBAL-DAIMYO ,YABU>
<COND (<NOUN-USED? ,PRSO ,W?DAIMYO>
<TELL
"\"The "I"daimyo"" is a feudal lord."G" He owns this whole province.\"" CR>)
(ELSE
<TELL
"\"Who told you about " D ,YABU "?\"" CR>)>)
(<PRSO? ,GLOBAL-SAMURAI>
<TELL
"\"Warriors -- soldiers -- members of the warrior caste.\"" CR>)
(ELSE
<TELL
G"\"I'm not here to answer your questions, pirate!\"" CR>)>)
(,OMI-QUESTION
<SET OW ,WINNER>
<SETG WINNER ,OMI>
<PERFORM ,PRSA ,PRSO ,PRSI>
<SETG WINNER .OW>
<RTRUE>)
(,YABU-QUESTION
<COND (<VERB? TRANSLATE>
<TELL
"You harden your voice. \""I"Que va!"" First translate what I
said. Now!\" The priest reddens, and you see that the exchange has not gone
unnoticed by the "I"daimyo""." CR>)
(ELSE
<SET OW ,WINNER>
<SETG WINNER ,YABU>
<PERFORM ,PRSA ,PRSO ,PRSI>
<SETG WINNER .OW>
<RTRUE>)>)
(<VERB? TRANSLATE>
<TELL
"\"It's not your place to command me, heretic!\"" CR>)
(<P? BE ME>
<COND (<AND <PRSI? ,HERETIC ,PIRATE>
<P-NEGATIVE?>>
<TELL
"\"Liar!\" storms the priest." CR>)
(<PRSI? ,BLACKTHORNE>
<TELL
"He doesn't seem to have heard of you before." CR>)
(ELSE
<TELL
"\"I'll know who and what you are soon enough!\"" CR>)>)
(ELSE
<TELL
CTHE ,SEBASTIO " looks at you with contempt." CR>)>)
(<VERB? EXAMINE>
<TELL
CTHE ,SEBASTIO " is a short, thick man with dark hair and a long
beard. His robe is travel-stained and his boots are besmirched with
mud. He is
obviously a Portuguese or Spanish priest, and though his flowing robe is
orange, there is no mistaking the ">
<COND (<IN? ,SEBASTIO-CRUCIFIX ,PRSO>
<TELL "crucifix and ">)>
<TELL "rosary at his
belt, or the cold hostility on his face." CR>)
(<AND <P? TELL-ABOUT SEBASTIO STRAIT-OF-MAGELLAN>
<EQUAL? ,YABU-QUESTION 4>>
<PERFORM ,PRSA ,YABU ,PRSI>
<RTRUE>)
(<VERB? ANSWER REPLY>
<TELL
"\"That's no response, pirate!\" rages " THE ,SEBASTIO "." CR>)
(<VERB? BOW>
<TELL
"\"You learn fast, pirate!\" he says, surprised, but he doesn't return
your bow." CR>)
(<P? THROW SEBASTIO-CRUCIFIX SEBASTIO>
<RFALSE>)
(<HOSTILE-VERB?>
<TELL "You ">
<COND (<B-NOT-STANDING?>
<B-STAND>
<TELL "storm to your feet, ">)>
<COND (<VERB? THROW>
<MOVE ,PRSO ,HERE>
<TELL "throw " THE ,PRSO " at">)
(<VERB? SPIT>
<TELL "spit at">)
(<VERB? KICK>
<TELL "kick">)
(<VERB? PISS>
<TELL "piss on">)
(ELSE
<TELL "strike">)>
<TELL " " THE ,SEBASTIO ", and he curses at you
but turns the other cheek." CR>
<COND (<AND <IN? ,OMI ,HERE> <IN? ,YABU ,HERE>>
<QUEUE I-BOW? 2>
<TELL CR
"Omi and Yabu look at each other in surprise." CR>)>
<RTRUE>)>>
<OBJECT OMI
;(SDESC "Omi")
(SDESC "young man")
(SYNONYM MAN OMI OMI-SAN SAMURAI)
(ADJECTIVE YOUNG KASIGI)
(PICTURE P-OMI)
(FLAGS PERSON JAPANESEBIT SCOREBIT THE ;NOTHEBIT)
(GENERIC GENERIC-SAMURAI-F)
(ACTION OMI-F)>
<CONSTANT OMI-NAME "Omi">
<ROUTINE OMI-F ("OPT" (RARG <>))
<COND (<RARG? SUBJ>
<RFALSE>)
(<RARG? WINNER>
<COND (<OR <VERB? PISS CURSE FUCK>
<AND <VERB? NO IYE>
<QUEUED? I-TAKE-CROOCQ>>>
<SETG WINNER ,PLAYER>
<PERFORM ,V?CURSE ,OMI>
<RTRUE>)
(<OR <QUESTION-VERB?>
<VERB? ASK-ABOUT TELL-ME-ABOUT>>
<TELL
CTHE ,SEBASTIO " snaps, \"You're to answer questions, not ask
them.\" He says something to the samurai, who scowls." CR>)
(<AND ,OMI-QUESTION
<I-DONT-KNOW?>>
<TELL
"\"Liar!\" screams " THE ,SEBASTIO ". \"They use torture here. They can
find out anything!\"" CR>)
(<AND <EQUAL? ,OMI-QUESTION 1>
<P? BE (ME BLACKTHORNE)> ,PRSI>
<COND (<AND <OR <ENGLISH?> <DUTCH?>>
<NOT <P-NEGATIVE?>>>
<SETG QCONTEXT <>>
<SETG OMI-QUESTION 0>
<TELL CTHE ,SEBASTIO>
<COND (<ENGLISH?>
<TELL
" steps back as though struck. \"English! England">)
(ELSE
<TELL
" nods suspiciously. \"Dutch! Holland">)>
<TELL
"!\"He begins to explain to Omi but the samurai cuts him short." CR>)
(ELSE
<SETUP-ANSWER "i am">
<SEBASTIO-SCREAMS>
<COND (<PRSI? ,BLACKTHORNE>
<TELL
"I want to know your nationality, not your name, heretic!\"" CR>)
(ELSE
<TELL
"I know you aren't what you say you are!\"" CR>)>)>)
(<AND <EQUAL? ,OMI-QUESTION 2>
<OR <P? BE (BLACKTHORNE ME) INTPP>
<P? COME-FROM>>>
<COND (<OR <P? COME-FROM HOLLAND>
<PP? ,W?FROM ,HOLLAND>>
<SETG QCONTEXT <>>
<SETG OMI-QUESTION 0>
<TELL
CTHE ,SEBASTIO "'s anger is obvious. \"A Dutch pirate ship!\" he
gasps. He says something haltingly to Omi-san." CR>)
(ELSE
<SEBASTIO-SCREAMS>
<TELL "That's a
Dutch pirate ship! Admit you're a heretic, murdering Dutchman!\"" CR>)>)
(<AND <EQUAL? ,OMI-QUESTION 3>
<VERB? YES NO IYE BE HAI>>
<COND (<OR <VERB? YES HAI>
<AND <P? BE (BLACKTHORNE ME) LEADER>
<NOT <P-NEGATIVE?>>>>
<SETG QCONTEXT <>>
<SETG OMI-QUESTION 0>
<SETG ORPHAN-ANSWER <>>
<TELL CTHE ,SEBASTIO>
<COND (<VERB? HAI>
<TELL
" looks surprised at your knowledge of Japanese, and
speaks rapidly and excitedly to Omi." CR>)
(ELSE
<TELL
" translates for Omi, still digesting what you have
told him." CR>)>
<SCORE-OBJECT ,OMI>)
(ELSE
<SETUP-ANSWER "i am">
<TELL
CTHE ,SEBASTIO " screams, \"Coward, I know you're the leader! The
villagers have already told me so!\"" CR>)>)
(,OMI-QUESTION
<COND (<VERB? SAY REPLY>
<PERFORM ,V?BE ,ME ,PRSO>
<RTRUE>)
(ELSE
<TELL
CTHE ,OMI " doesn't respond, but the priest says, \"You'd better learn to be
polite -- and find some manners quickly. Here they don't tolerate lack
of manners.\" His voice edges. \"Hurry up and answer!\"" CR>)>)
(<AND <VERB? STOP>
<NOT ,ANSWER-HAI?>
<HERE? ,VILLAGE-SQUARE>
<QUEUED? I-TAKE-CROOCQ>>
<SETG QCONTEXT ,OMI>
<TELL
"\"Omi-san says, you agree to behave? You will obey all orders?\"" CR>)
(<AND <VERB? HAI YES>
<NOT ,ANSWER-HAI?>
<HERE? ,VILLAGE-SQUARE>
<QUEUED? I-TAKE-CROOCQ>>
<COND (<VERB? YES>
<TELL
"\"You must speak to him in Japanese, heretic! You must say 'hai.'\" "
D ,SEBASTIO " is sweating and nervous." CR>)
(ELSE
<SETG ANSWER-HAI? T>
<SETG DELAY-CNT 0>
<THIS-IS-IT ,ORDERS>
<TELL
"\"Omi-san says, lie down. Immediately.\"" CR>
<SCORE-OBJECT ,VILLAGE-SQUARE>)>)
(ELSE
<TELL
CTHE ,OMI " ignores you, for now." CR>)>)
(<VERB? EXAMINE>
<TELL
"The young man is a head shorter and much younger than you, his
handsome face slightly pockmarked though. He wears breeches and clogs
and a light kimono with two scabbarded swords stuck into the belt. One
is daggerlike, the other, a two-handed killing sword, is long and
slightly curved." CR>)
(<VERB? WHO>
<TELL
CTHE ,OMI " is an ambitious young man. He serves his masters well, but
himself better." CR>)
(<VERB? THANK>
<COND (<IN? ,SEBASTIO ,HERE>
<TELL
CTHE ,SEBASTIO " translates. Omi seems pleased by your politeness." CR>)
(ELSE
<TELL
"Omi responds with a curt bow, and says \"Domo.\"" CR>)>)
(<OR <VERB? PISS CURSE FUCK>
<AND <OR <VERB? NO IYE> <HOSTILE-VERB?>>
<QUEUED? I-TAKE-CROOCQ>>>
<COND (<SCENE? S-PIT>
<CURSE-OMI>)>)
(<OR <HOSTILE-VERB?> <VERB? STOP>>
<REMOVES-YOUR-HEAD ,OMI>)>>
<ROUTINE SEBASTIO-SCREAMS ()
<TELL
CTHE ,SEBASTIO " screams, \"Lying pig of a heretic! ">>
<ROUTINE REMOVES-YOUR-HEAD (WHO)
<COND (<JIGS-UP? ,J-HEAD>
<TELL
CTHE .WHO " responds to your feeble attack by removing your head." CR>
<JIGS-UP>)
(ELSE <RTRUE>)>>
<OBJECT MURA
(LOC GENERIC-OBJECTS)
(DESC "Mura")
(SYNONYM MURA HEADMAN MAN)
(FLAGS PERSON JAPANESEBIT NOABIT NOTHEBIT OPENBIT CONTBIT SEARCHBIT)
(GENERIC GENERIC-MAN-F)
(ACTION MURA-F)>
<ROUTINE GENERIC-MAN-F (R F)
<COND ;(<GLOBAL-IN? ,LG-MEN ,HERE>
,LG-MEN)
(ELSE
<TELL "You'll have to be more specific." CR>
,ROOMS ;"means 'handled'")>>
<ROUTINE MURA-F ("OPT" (RARG <>))
<COND ;(<RARG? SUBJ>
<RFALSE>)
(<RARG? WINNER>
<COND (<AND <VERB? TAKE>
<IN? ,PRSO ,PLAYER>
<NOT <FSET? ,PRSO ,WEARBIT>>>
<SETG WINNER ,PLAYER>
<PERFORM ,V?GIVE ,PRSO ,MURA>)
(<AND <VERB? NO IYE>
<EQUAL? ,QCONTEXT ,MURA>
<SCENE? ,S-RODRIGUES>>
<TELL
"Mura replies in halting Portuguese, \"So sorry, Anjin-san, you must
go.\"" CR>)
(<P? (TELL-ME-ABOUT FIND) ONNA>
<NEW-SDESC ,ONNA "Haku">
<REPLACE-SYNONYM ,ONNA ,W?ONNA ,W?HAKU>
<TELL
"\"Where's Onna?\" you ask. \"I want Onna!\" Mura replies in heavily-accented
Portuguese, \""I"Onna"" mean 'woman.' Her name Haku.\"" CR>)
(ELSE
<WAKARIMASEN>)>)
(<RARG? <>>
<COND (<VERB? EXAMINE>
<TELL
"Mura is a short, wiry, middle-aged man. You realize there's more
to him than the simple fisherman he appears to be." CR>)
(<AND <P? GIVE * MURA>
<HERE? ,BATH-HOUSE>
<NOT <FSET? ,PRSO ,WEARBIT>>>
<MOVE ,PRSO ,MURA>
<TELL
"Mura takes " THE ,PRSO "." CR>)
(<VERB? ATTACK HIT>
<TELL
"Mura is unarmed, but the moment you get within reach, he chops your
elbow with the side of his hand and your arm hangs down, momentarily
paralyzed. \"Please excuse me, Captain-san,\" he says in very
bad Portuguese." CR>)
(<VERB? WHO>
<TELL
"Mura is the headman of the village of Anjiro." CR>)>)>>
<OBJECT BROWNS
(DESC "Brown-uniformed samurai")
(SYNONYM BROWNS BROWN SAMURAI)
(ADJECTIVE BROWNS BROWN BROWN-UNIFORMED)
(FLAGS PERSON JAPANESEBIT NOABIT)
(COUNT 20)
(GENERIC GENERIC-SAMURAI-F)
(ACTION BROWNS-F)>
<ROUTINE BROWNS-F ("OPT" (RARG <>))
<COND (<RARG? SUBJ>
<RFALSE>)
(<RARG? WINNER>
<COND (<AND <HERE? ,MAIN-DECK-2>
<SCENE? ,S-ESCAPE>>
<SETG WINNER ,PLAYER>
<PERFORM ,V?MIZU>
<RTRUE>)
(ELSE
<TELL
"The Browns are not under your orders." CR>)>
<END-QUOTE>)
(ELSE
<COND (<VERB? WHO>
<TELL
"The Browns are Toranaga's samurai." CR>)
(<VERB? EXAMINE>
<TELL
"They are all dressed in the Brown uniform." CR>)>)>>
<OBJECT GRAYS
(DESC "Gray-uniformed samurai")
(SYNONYM GRAYS GRAY SAMURAI ESCORT GUARDS GUARDSMEN)
(ADJECTIVE GRAY GRAY-UNIFORMED)
(FLAGS PERSON JAPANESEBIT NOABIT)
(GENERIC GENERIC-SAMURAI-F)
(ACTION GRAYS-F)>
<ROUTINE GRAYS-F ("OPT" (RARG <>))
<COND (<RARG? SUBJ>
<RFALSE>)
(<RARG? WINNER>
<TELL
"The Grays ignore you." CR>
<END-QUOTE>)
(ELSE
<COND (<VERB? WHO>
<TELL
"The Grays are Ishido's samurai." CR>)
(<VERB? EXAMINE>
<COND (<SCENE? ,S-PRISON>
<TELL
"They are behaving more like escorts than guards." CR>)
(ELSE
<TELL
"They are all dressed in the Gray uniform." CR>)>)>)>>
<OBJECT MARIKO
;(DESC "Mariko")
(SDESC "Mariko")
(PICTURE P-MARIKO)
(SYNONYM MARIKO TODA WOMAN)
(ADJECTIVE LADY TODA)
(FLAGS PERSON JAPANESEBIT FEMALE NOABIT NOTHEBIT
OPENBIT CONTBIT SEARCHBIT SCOREBIT)
(DESCFCN MARIKO-DESC)
(ACTION MARIKO-F)>
<ROUTINE MARIKO-DESC (RARG OBJ)
<COND (<RARG? OBJDESC?>
<COND (<AND <SCENE? ,S-SEPPUKU>
<HERE? ,TEA-HOUSE ,FORECOURT>>
<RTRUE>)
(<AND <SCENE? ,S-NINJA>
<OR <FSET? ,MARIKO ,DEAD>
<FSET? ,MARIKO ,RMUNGBIT>>>
<RTRUE>)>)
(<RARG? OBJDESC>
<TELL "Mariko ">
<COND (<HERE? ,TEA-HOUSE>
<TELL
"kneels here, facing the doorway.">)
(<HERE? ,FORECOURT>
<COND (<FSET? ,MARIKO ,SITTING>
<TELL
"kneels serenely in the center of the crimson coverlet.">)
(ELSE
<TELL
"is standing in the center of the main gate.">)>)
(<SCENE? ,S-NINJA>
<TELL "lies ">
<COND (<FSET? ,MARIKO ,DEAD>
<TELL "dead">)
(ELSE
<TELL "dying">)>
<TELL " on the floor.">)>)>>
<ROUTINE MARIKO-F ("OPT" (RARG <>))
<COND (<RARG? SUBJ>
<RFALSE>)
(<RARG? WINNER>
<COND (<OR <FSET? ,MARIKO ,DEAD>
<FSET? ,MARIKO ,RMUNGBIT>>
<TELL
"Mariko can no longer respond." CR>)
(<P? (WHO TELL-ME-ABOUT) (YOU MARIKO)>
<TELL
"\"I am Lady Toda Mariko-noh-Buntaro. The priests know me as Lady Maria,
as I am Christian.\"" CR>)
(<P? (WHAT TELL-ME-ABOUT) PROPHECY>
<COND (<HERE? ,MAPLE-GLADE>
<TELL
"Mariko asks permission of Toranaga, who nods. ">)>
<TELL
"\"Six years ago a Chinese embassy came to the Taiko to try to settle the
Japanese-Chinese-Korean war. A famous astrologer was among them. He forecast
many things which have since come true. The Taiko asked him to predict the
deaths of certain of his counselors. The astrologer said that Toranaga would
die by the sword when he was middle-aged. Ishido, the famous conqueror of
Korea, would die undiseased, an old man, his feet firm in the earth, the
most famous man of his day. The Taiko himself would die in his bed, respected,
revered, of old age, leaving a healthy son to follow him. At this time Yaemon
had not yet been born, so that part of the prophecy has already come to
pass.\"" CR>
<SCORE-OBJECT ,PROPHECY>)
(<SCENE? ,S-MARIKO>
<COND (<OR <P? KONNICHI-WA ROOMS>
<P? NIHON-GO-GA HANASE-MASEN>>
<COND (<FSET? ,MAPLE-GLADE ,SCOREBIT>
<SETG WINNER ,PLAYER>
<PERFORM ,V?KONNICHI-WA ,MARIKO>
<RTRUE>)>)
(<AND <EQUAL? ,QCONTEXT ,MARIKO>
<VERB? LEARN TRAIN TEACH>
<PAST-TENSE?>>
<COND (<OR <AND <EQUAL? ,PRSS ,DOMINGO>
<PRSO? ME>>
<PRSO? PRISON DOMINGO>>
<HOW-I-LEARNED>)
(ELSE
<TELL
"She doesn't seem to believe you." CR>)>)
(<P? TEACH ME JAPANESE>
<TELL
"\"If my master wishes,\" she answers, turning to Toranaga. They converse
for a while. \"My Master says that only a few bar -- foreigners have been
able to learn our language, and these are all priests. But he would like to
be able to talk to you directly, without the need for an interpreter. He will
consider this request.\"" CR>)
(<P? (WHO TELL-ME-ABOUT) YAEMON>
<NEW-SDESC ,YAEMON "Yaemon">
<TELL
"\"This is the Heir, the only son of the Taiko. His name is Yaemon.\"" CR>)
(<P? (WHO TELL-ME-ABOUT) (YOU MARIKO)>
<TELL
"\"My name is Toda Mariko noh-Buntaro. I am a 'senhora,' not a 'senhorita,'
if you please.\"" CR>)
(<OR <QUESTION-VERB?>
<VERB? ASK-ABOUT TELL-ME-ABOUT>>
<TELL
"\"Lord Toranaga has instructed me to say that ">
<COND (<EQUAL? ,LG-CREWMEN ,PRSO ,PRSI>
<TELL
"your crewmen are being treated well. They will given a place to live, and
to learn to be civilized.\"" CR>)
(ELSE
<TELL
"you will please confine yourself
to answering questions only, for the moment.\" Then she says, \"I'm sure, if
you are patient, Pilot-Captain B'ackthon, that you'll be given an opportunity
to ask anything you wish later.\"" CR>)>)
(<JAPANESE-VERB?>
<TELL
"\"If you will excuse me, senhor, my Master orders me to say your accent is a
little wrong.\" She repeats the word several times slowly, showing you how to
say it." CR>)
(ELSE
<I-DONT-UNDERSTAND>)>)
(<VERB? THOU>
<I-LOVE-YOU>)
(<VERB? TELL-ME-ABOUT>
<COND (<PRSO? ,SUICIDE>
<TELL
"\"If the shame is too great, or if our liege Lord commands, we
take our lives. I have been trained to do so, as have all samurai.\"" CR>
<RTRUE>)
(<PRSO? ,KIYAMA>
<TELL
"\"Lord Kiyama is a member of the Council of Regents, and the most powerful
of the Christian daimyos.\"" CR>)
(<SCENE? ,S-NINJA>
<COND (<PRSO? ,YABU>
<TELL
"\"He is very angry with me for confronting Lord Ishido, and even
angrier that I did not go through with my seppuku, but that was my
"I"karma"", Anjin-san.\"" CR>
<RTRUE>)
(<PRSO? ,ACHIKO>
<TELL
"\"Her grandfather-in-law, Lord Kiyama, opposes Lord Toranaga. He has
disowned her for her presumption in joining us.\"" CR>
<RTRUE>)>)>
<TELL
"\"I cannot tell you anything more, Anjin-san. So sorry.\"" CR>)
(<VERB? STOP KINJIRU>
<COND (<SCENE? ,S-SEPPUKU>
<COND (,MARIKO-WON-FLAG
<TELL
"She doesn't respond, or even notice you. She's almost in a trance." CR>)
(ELSE
<TELL
"\"No, Anjin-san. I must obey the orders of Lord Toranaga. If I cannot,
I must commit "I"seppuku"" to expunge the shame. Only if Lord Ishido
relents and allows me to obey my liege-lord may I stop.\"" CR>)>)
(ELSE
<I-DONT-UNDERSTAND>)>)
(<P? FIND ;WHERE SECRET-ROOM-DOOR>
<TELL
"\"I don't know about any secret doors,\" she says, puzzled." CR>)
(<P? FIND ;WHERE SECRET-REDOUBT-DOOR>
<TELL
"\"It's in my room, Anjin-san!\"" CR>)
(<OR <VERB? FOLLOW LEAVE ISOGI>
<P? WALK (P?EAST P?NORTH P?OUT)>>
<COND (<SCENE? ,S-NINJA>
<MARIKO-FOLLOW-ME>)
(ELSE
<I-DONT-UNDERSTAND>)>)
(<VERB? LOVE THOU>
<I-LOVE-YOU>)
(<VERB? YES HAI>
<COND (<HERE? ,WAREHOUSE>
<SETG QCONTEXT <>>
<MOVE ,LARGE-KNIFE ,BLACKTHORNE>
<MOVE ,SMALL-KNIFE ,BLACKTHORNE>
<TELL
"\"Good!\" she responds. She turns to Toranaga. \"My Master says you should
be armed.\" She hands you a knife. \"Better, give me two,\" you respond, and
Toranaga agrees. You slide the large one into your sash and tie the small
one, haft
downwards, to your forearm. \"My Master asks, do all Englishmen carry knives
secretly in their sleeves like that?\"|
|
\"No, but most seamen do.\" Now you are ready. Mariko stares at the wharf,
then commits herself.|
|
\"Follow me!\"" CR>)
(<AND <HERE? ,WHARF ,MAIN-DECK-2>
<EQUAL? ,QCONTEXT ,MARIKO>>
<SETG QCONTEXT <>>
<TELL
"\"That is good,\" she replies." CR>)
(<AND <HERE? ,PRIVATE-QUARTERS>
,MARIKO-PLAN?
<EQUAL? ,QCONTEXT ,MARIKO>>
<SETG MARIKO-PLAN? <+ ,MARIKO-PLAN? 1>>
<COND (<EQUAL? ,MARIKO-PLAN? 2>
<SETG QCONTEXT ,MARIKO>
<THIS-IS-IT ,YABU>
<TELL
"\"Do you think he plans to betray us?\"" CR>)
(<G? ,MARIKO-PLAN? 2>
<SETG QCONTEXT <>>
<COND (<FSET? ,CELLARS ,SCOREBIT>
<TELL