forked from historicalsource/arthur
-
Notifications
You must be signed in to change notification settings - Fork 0
/
demon.zil
1205 lines (1169 loc) · 27 KB
/
demon.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
;"***************************************************************************"
; "game : Arthur"
; "file : DEMON.ZIL"
; "auth : $Author: DEB $"
; "date : $Date: 12 May 1989 0:41:38 $"
; "revs : $Revision: 1.76 $"
; "vers : 1.0"
;"---------------------------------------------------------------------------"
; "Hall of Demon"
; "Copyright (C) 1989 Infocom, Inc. All rights reserved."
;"***************************************************************************"
;"---------------------------------------------------------------------------"
; "RM-DEMON-HALL"
;"---------------------------------------------------------------------------"
<ROOM RM-DEMON-HALL
(LOC ROOMS)
(DESC "hall")
(FLAGS FL-LIGHTED FL-INDOORS)
(SYNONYM HALL)
(ADJECTIVE DEMON)
(OWNER CH-DEMON)
(SOUTH TO RM-HOT-ROOM IF LG-HOT-DOOR IS OPEN)
(OUT TO RM-HOT-ROOM IF LG-HOT-DOOR IS OPEN)
(SCORE <ORB <LSH 5 ,K-WISD-SHIFT> <LSH 3 ,K-QUEST-SHIFT>>)
(GLOBAL LG-HOT-DOOR LG-WALL)
(ACTION RT-RM-DEMON-HALL)
(THINGS
<> (SHIELD SHIELDS) RT-PS-DEMON-SHIELDS
)
>
<ROUTINE RT-RM-DEMON-HALL ("OPT" (CONTEXT <>))
<COND
(<MC-CONTEXT? ,M-F-LOOK ,M-V-LOOK ,M-LOOK>
<FSET ,CH-DEMON ,FL-SEEN>
<FSET ,TH-DEMON-THRONE ,FL-SEEN>
<FSET ,TH-LEFT-MANACLE ,FL-SEEN>
<FSET ,TH-RIGHT-MANACLE ,FL-SEEN>
<FSET ,TH-MANACLES ,FL-SEEN>
<FSET ,TH-FLEECE ,FL-SEEN>
<FSET ,TH-GOLD-KEY ,FL-SEEN>
<TELL "You ">
<COND
(<MC-CONTEXT? ,M-LOOK>
<TELL "are" standing " in">
)
(T
<TELL "have entered">
)
>
<TELL
" a long, narrow banqueting hall that is panelled in dark walnut. High above
you, the walls are lined with the shields of vanquished knights. At the
far end "
>
<COND
(<MC-CONTEXT? ,M-F-LOOK>
<TELL
"is a golden throne, upon which sits a beautiful girl. As you walk the length
of the hall, you see that the girl's wrists are manacled to the throne, and
that she is sitting on a Golden Fleece."
>
)
(T
<TELL "of the hall, a ">
<COND
(<FSET? ,CH-DEMON ,FL-LOCKED>
<TELL "beautiful girl">
)
(T
<TELL "hideous demon">
)
>
<TELL " is sitting on">
<COND
(<IN? ,TH-FLEECE ,TH-DEMON-THRONE>
<TELL a ,TH-FLEECE ", which covers">
)
>
<TELL " ">
<COND
(<FSET? ,CH-DEMON ,FL-LOCKED>
<TELL "her">
)
(T
<TELL "his">
)
>
<TELL " throne. ">
<COND
(<FSET? ,CH-DEMON ,FL-LOCKED>
<TELL "Her">
)
(T
<TELL "His">
)
>
<TELL " ">
<COND
(<OR <FSET? ,TH-LEFT-MANACLE ,FL-OPEN>
<FSET? ,TH-RIGHT-MANACLE ,FL-OPEN>
>
<COND
(<FSET? ,TH-LEFT-MANACLE ,FL-OPEN>
<TELL "right ">
)
(T
<TELL "left ">
)
>
<TELL "hand is">
)
(T
<TELL "hands are">
)
>
<TELL " manacled to" the ,TH-DEMON-THRONE ".">
<COND
(<OR <IN? ,TH-GOLD-KEY ,CH-GIRL>
<IN? ,TH-GOLD-KEY ,CH-DEMON>
>
<TELL " A golden key hangs around ">
<COND
(<FSET? ,CH-DEMON ,FL-LOCKED>
<TELL "her">
)
(T
<TELL "his">
)
>
<TELL " neck.">
)
>
)
>
<CRLF>
<RFALSE>
)
(<MC-CONTEXT? ,M-ENTER>
<COND
(<FSET? ,CH-DEMON ,FL-LOCKED>
<SETG GL-PICTURE-NUM ,K-PIC-GIRL>
)
(T
<SETG GL-PICTURE-NUM ,K-PIC-DEMON>
)
>
<COND
(<EQUAL? ,GL-WINDOW-TYPE ,K-WIN-PICT>
<RT-UPDATE-PICT-WINDOW>
)
>
<RFALSE>
)
(<MC-CONTEXT? ,M-ENTERED>
<COND
(<FSET? ,CH-DEMON ,FL-LOCKED>
<COND
(<FSET? ,CH-GIRL ,FL-LOCKED>
<FCLEAR ,CH-GIRL ,FL-LOCKED>
<TELL
"|The girl's image seems to shimmer for a second, and then she says, \"Oh
kind sir, I have been imprisoned by the evil demon who rules this place. But
if you release me, I will keep you by my side evermore.\"" CR
>
)
(T
<TELL
"|The girl smiles at you demurely and says, \"Thank goodness you've returned!
Won't you please remove these unmaidenly manacles so that we might be
together for always?\"" CR
>
)
>
)
(T
<RT-DEMON-OFFER-MSG>
)
>
)
(<MC-CONTEXT? ,M-EXIT>
<COND
(<FSET? ,CH-DEMON ,FL-LOCKED>
<COND
(<IN? ,TH-GOLD-KEY ,CH-PLAYER>
<RT-DEMON-OFFER-MSG T>
<RTRUE>
)
(T
<TELL
"The girl calls out after you, \"Oh prithee, sir! Please do not abandon me
to this cruel fate!\"||"
>
)
>
)
>
<COND
(<FSET? ,LG-HOT-DOOR ,FL-OPEN>
<FCLEAR ,LG-HOT-DOOR ,FL-OPEN>
<TELL
The ,LG-HOT-DOOR " swings shut behind you with an ominous \"clank.\"||"
>
)
>
<RFALSE>
)
(.CONTEXT
<RFALSE>
)
>
>
<ROUTINE RT-PS-DEMON-SHIELDS ("OPT" (CONTEXT <>) (ART <>) (CAP? <>))
<FSET ,PSEUDO-OBJECT ,FL-PLURAL>
<FCLEAR ,PSEUDO-OBJECT ,FL-VOWEL>
<COND
(<MC-CONTEXT? ,M-OBJDESC>
<COND
(.ART
<PRINT-ARTICLE ,PSEUDO-OBJECT .ART .CAP?>
)
>
<COND
(<EQUAL? .ART <> ,K-ART-THE ,K-ART-A ,K-ART-ANY>
<COND
(.ART
<TELL " ">
)
>
<TELL "shields">
)
>
)
(<VERB? EXAMINE LOOK-IN LOOK-ON>
<THIS-IS-IT ,PSEUDO-OBJECT>
<TELL "The shields are trophies of the demon's past conquests." CR>
)
(<TOUCH-VERB?>
<THIS-IS-IT ,PSEUDO-OBJECT>
<TELL "The shields are too high to reach." CR>
)
>
>
;"---------------------------------------------------------------------------"
; "CH-GIRL"
;"---------------------------------------------------------------------------"
<OBJECT CH-GIRL
(DESC "girl")
(LOC TH-DEMON-THRONE)
(FLAGS FL-ALIVE FL-FEMALE FL-LOCKED FL-NO-DESC FL-OPEN FL-PERSON FL-SEARCH)
(SYNONYM GIRL WOMAN PERSON)
(ADJECTIVE BEAUTIFUL FEMALE)
(GENERIC RT-GN-BEAUTIFUL-WOMAN)
(ACTION RT-CH-GIRL)
>
; "CH-GIRL flags:"
; " FL-LOCKED - Girl has not given first speech."
<ROUTINE RT-CH-GIRL ("OPT" (CONTEXT <>) (ART <>) (CAP? <>))
<COND
(<AND <MC-CONTEXT? ,M-WINNER <>>
<VERB? HELLO>
>
<TELL
"The girl flutters her eyelashes demurely. \"Greetings, kind sir.\"" CR
>
)
(<MC-CONTEXT? ,M-WINNER>
<COND
(<AND <VERB? TELL-ABOUT>
<MC-PRSO? ,CH-PLAYER>
>
<RFALSE>
)
(<VERB? WHO WHAT>
<RFALSE>
)
(T
<TELL
"\"If you will but release me from these cruel manacles, I shall do whatever
you wish.\"" CR
>
)
>
)
(.CONTEXT
<RFALSE>
)
(,NOW-PRSI
<COND
(<AND <VERB? SHOW>
<MC-PRSO? ,TH-GOLD-KEY>
>
<TELL
"The girl inclines her head towards the manacles and says, \"If you would be
so kind....\"" CR
>
)
(<AND <VERB? GIVE>
<MC-PRSO? ,TH-GOLD-KEY>
>
<COND
(<OR <FSET? ,TH-LEFT-MANACLE ,FL-OPEN>
<FSET? ,TH-RIGHT-MANACLE ,FL-OPEN>
>
<RT-FREE-DEMON-MSG T>
)
(T
<TELL
"The girl refuses your offer and cries, \"Oh why do you torment me so? To put
a key into a hand that is manacled is surely the cruelest of jests.\"" CR
>
)
>
)
>
)
(<AND <VERB? TELL>
,P-CONT
>
; "Message and RFATAL if don't want the demon to become winner"
<RFALSE>
)
(<VERB? ASK-ABOUT>
<COND
(<NOUN-USED? ,PRSI ,W?TEETH>
<RT-DEMON-OFFER-MSG>
)
(<MC-PRSI? ,CH-DEMON>
<TELL "\"He hath imprisoned me most cruelly.\"" CR>
)
(<MC-PRSI? ,TH-GOLD-KEY>
<TELL "\"It is the key that will unlock these cruel manacles.\"" CR>
)
(<MC-PRSI? ,CH-MERLIN>
<SETG GL-QUESTION 1>
<TELL
"The girl's eyes flash with anger. \"Are you going to help me or not?\"" CR
>
)
(<MC-PRSI? ,CH-LOT>
<TELL
"\"I have not met him.\" She lowers her eyes demurely and continues, \"But
surely he cannot be as handsome as you.\"" CR
>
)
(<MC-PRSI? ,TH-EXCALIBUR>
<TELL
"\"I've heard it is a mighty sword, but even Excalibur would be powerless
against these manacles.\"" CR
>
)
(T
<TELL
"She looks at you imploringly and says, \"If you would but release me, I
will tell you all I know.\"" CR
>
)
>
)
(<VERB? ASK-FOR>
<TELL
"She looks at you imploringly and says, \"I will give you whatever you wish,
if you would only unlock these cruel manacles.\"" CR
>
)
(<VERB? ATTACK>
<RT-DEMON-OFFER-MSG>
)
(<VERB? EXAMINE>
<FSET ,CH-GIRL ,FL-SEEN>
<TELL "The girl is sitting on">
<COND
(<IN? ,TH-FLEECE ,TH-DEMON-THRONE>
<TELL a ,TH-FLEECE ", which covers">
)
>
<TELL " her throne. Her ">
<COND
(<FSET? ,TH-LEFT-MANACLE ,FL-OPEN>
<TELL "left hand is">
)
(<FSET? ,TH-RIGHT-MANACLE ,FL-OPEN>
<TELL "right hand is">
)
(T
<TELL "hands are">
)
>
<TELL " manacled to the arms of the throne.">
<COND
(<IN? ,TH-GOLD-KEY ,CH-GIRL>
<TELL " A golden key hangs around her neck.">
)
>
<TELL
"||As you look at her, her image seems to shimmer slightly." CR
>
)
(<VERB? KISS>
<TELL
"As you approach, her lips part to meet yours and you see that her teeth are
pointed. At the last second, you pull away." CR
>
)
(<VERB? RELEASE>
<COND
(<IN? ,TH-GOLD-KEY ,WINNER>
<RT-FREE-DEMON-MSG>
)
(T
<SETG CLOCK-WAIT T>
<RT-AUTHOR-MSG ,K-HOW-INTEND-MSG>
)
>
)
>
>
;"---------------------------------------------------------------------------"
; "CH-DEMON"
;"---------------------------------------------------------------------------"
<OBJECT CH-DEMON
(DESC "demon")
(LOC TH-DEMON-THRONE)
(FLAGS FL-ALIVE FL-NO-DESC FL-LOCKED FL-OPEN FL-PERSON FL-SEARCH)
(SYNONYM DEMON NUDD TEETH PERSON)
(ADJECTIVE UGLY)
(ACTION RT-CH-DEMON)
>
; "CH-DEMON flags:"
; " FL-BROKEN - Demon has been foiled, will not stop player from leaving."
; " FL-LOCKED - Demon is disguised."
<ROUTINE RT-CH-DEMON ("OPT" (CONTEXT <>) (ART <>) (CAP? <>))
<COND
(<AND <MC-CONTEXT? ,M-WINNER <>>
<VERB? HELLO>
>
<COND
(<FSET? ,CH-DEMON ,FL-LOCKED>
<RT-DEMON-OFFER-MSG>
)
(T
<TELL
"\"Hello yourself!\" the demon roars. \"Now open these manacles!\"" CR
>
)
>
)
(<MC-CONTEXT? ,M-WINNER>
<COND
(<FSET? ,CH-DEMON ,FL-LOCKED>
<RT-DEMON-OFFER-MSG>
)
(<AND <VERB? TELL-ABOUT>
<MC-PRSO? ,CH-PLAYER>
>
<RFALSE>
)
(<VERB? WHO WHAT>
<RFALSE>
)
(T
<TELL
"\"Open these manacles and I'll do whatever you want.\"" CR
>
)
>
)
(.CONTEXT
<RFALSE>
)
(<AND <FSET? ,CH-DEMON ,FL-LOCKED>
<MC-HERE? ,RM-DEMON-HALL>
<NOT <EVERYWHERE-VERB? <COND (,NOW-PRSI 2) (T 1)>>>
>
<RT-DEMON-OFFER-MSG>
<COND
(<AND <VERB? TELL>
,P-CONT
>
<RFATAL>
)
(T
<RTRUE>
)
>
)
(,NOW-PRSI
<COND
(<AND <VERB? SHOW>
<MC-PRSO? ,TH-GOLD-KEY>
>
<TELL
"The demon roars in anguish, \"Stop tormenting me and open these damnable
manacles!\"" CR
>
)
(<AND <VERB? GIVE>
<MC-PRSO? ,TH-GOLD-KEY>
>
<COND
(<OR <FSET? ,TH-LEFT-MANACLE ,FL-OPEN>
<FSET? ,TH-RIGHT-MANACLE ,FL-OPEN>
>
<RT-FREE-DEMON-MSG T>
)
(T
<TELL
"The demon screams at you. \"Idiot! What good does the key do me when my
hands are manacled? Unlock the manacles, moron!\"" CR
>
)
>
)
>
)
(<AND <VERB? TELL>
,P-CONT
>
; "Message and RFATAL if don't want the demon to become winner"
<RFALSE>
)
(<VERB? ASK-ABOUT>
<COND
(<MC-PRSI? ,CH-DEMON>
<TELL
"\"I am the glorious epitome of all that is evil.\"" CR
>
)
(<MC-PRSI? ,TH-GOLD-KEY>
<TELL
"\"It is the key that will unlock these accursed manacles.\"" CR
>
)
(<MC-PRSI? ,TH-LEFT-MANACLE ,TH-RIGHT-MANACLE ,TH-MANACLES>
<TELL
"\"They were fastened upon me by Merlin's gods. Then they hung that damned
key about my neck to further torment me.\"" CR
>
)
(<MC-PRSI? ,TH-FLEECE>
<TELL
"\"I have already given you the fleece. Now release me!\"" CR
>
)
(<MC-PRSI? ,CH-MERLIN>
<TELL
"\"He is nothing but a third rate conjurer. His days are numbered.\"" CR
>
)
(<MC-PRSI? ,CH-LOT>
<TELL
"\"Yes, yes. I'll kill him for you. I'll chain him to a rock and have rats
gnaw at his liver; or perhaps I'll roast him slowly on a spit over red-hot
coals. But first you must release me.\"" CR
>
)
(<MC-PRSI? ,TH-EXCALIBUR>
<TELL
"\"Fancy swords will do you no good in here, boy.\"" CR
>
)
(T
<TELL "\"Enough of this chatter. Release me!\"" CR>
)
>
)
(<VERB? ATTACK>
<TELL
"You feel a jolt of electricity pass through your body and the demon cackles,
\"Fool! You can't hurt me!\"" CR
>
)
(<VERB? EXAMINE>
<FSET ,CH-DEMON ,FL-SEEN>
<TELL "The hideously ugly demon is sitting on">
<COND
(<IN? ,TH-FLEECE ,TH-DEMON-THRONE>
<TELL a ,TH-FLEECE ", which covers">
)
>
<TELL " his throne. His ">
<COND
(<FSET? ,TH-LEFT-MANACLE ,FL-OPEN>
<TELL "left hand is">
)
(<FSET? ,TH-RIGHT-MANACLE ,FL-OPEN>
<TELL "right hand is">
)
(T
<TELL "hands are">
)
>
<TELL " manacled to the arms of the throne.">
<COND
(<IN? ,TH-GOLD-KEY ,CH-DEMON>
<TELL " A golden key hangs around his neck.">
)
>
<TELL " He leers at you through his obscene red eyes." CR>
)
(<VERB? KISS>
<TELL "Ugh.|">
<RT-AUTHOR-MSG "You're even sicker than I thought.">
)
(<VERB? RELEASE>
<COND
(<IN? ,TH-GOLD-KEY ,WINNER>
<RT-FREE-DEMON-MSG>
)
(T
<SETG CLOCK-WAIT T>
<RT-AUTHOR-MSG ,K-HOW-INTEND-MSG>
)
>
)
>
>
<CONSTANT K-DEMON-SCREAMS-MSG
"The word comes at you in a explosion of incredible force that blasts you
out of the hall, through the outer rooms, and dumps you on the ledge next to
the slumbering dragon.">
<ROUTINE RT-DEMON-OFFER-MSG ("OPT" (KEY? <>))
<COND
(<FSET? ,CH-DEMON ,FL-LOCKED>
<FCLEAR ,CH-DEMON ,FL-LOCKED>
<COND
(<IN? ,TH-GOLD-KEY ,CH-GIRL>
<MOVE ,TH-GOLD-KEY ,CH-DEMON>
)
>
<REMOVE ,CH-GIRL>
<TELL
"The girl's shimmering features dissolve into those of a hideously ugly demon
who leers at you through obscene, red eyes. "
>
<SETG GL-PICTURE-NUM ,K-PIC-DEMON>
<SETG GL-UPDATE-WINDOW <BOR ,GL-UPDATE-WINDOW ,K-UPD-DESC>>
<COND
(<EQUAL? ,GL-WINDOW-TYPE ,K-WIN-DESC>
<RT-UPDATE-DESC-WINDOW>
)
(<EQUAL? ,GL-WINDOW-TYPE ,K-WIN-PICT>
<RT-UPDATE-PICT-WINDOW>
)
>
<COND
(<FSET? ,LG-HOT-DOOR ,FL-OPEN>
<FCLEAR ,LG-HOT-DOOR ,FL-OPEN>
<TELL
The ,LG-HOT-DOOR " slams shut behind you with an ominous \"clank.\" "
>
<COND
(<EQUAL? ,GL-WINDOW-TYPE ,K-WIN-MAP>
<RT-UPDATE-MAP-WINDOW>
)
>
)
>
<TELL "\"So, Arthur, you ">
<COND
(.KEY?
<TELL
"really didn't think I'd let you leave with that key, did you?"
>
)
(T
<TELL "have seen through my little disguise.">
)
>
<TELL
" But as I am feeling generous, I shall make you a bargain. We each have
something the other wants. I have" the ,TH-FLEECE ", without which you cannot
claim your kingdom. You have the power to free me. I propose a
trade.\"||\"Heed closely the words of my offer, for I will fulfill them to
the letter. If you agree to unlock my "
>
<COND
(<OR <FSET? ,TH-LEFT-MANACLE ,FL-OPEN>
<FSET? ,TH-RIGHT-MANACLE ,FL-OPEN>
>
<TELL "other manacle">
)
(T
<TELL "manacles">
)
>
<TELL
", I will give you" the ,TH-FLEECE " and allow you to finish your quest
unmolested.\"||\"Remember. If you agree, we will each be bound to the terms
of the contract. If you accept my offer, and then fail to honour the contract
to the letter, you will die a horribly painful death.\"||\"Do you accept my
offer?\"|"
>
)
(T
<TELL
"|The demon says, \"I see that you have returned. Do you accept my offer?\"|"
>
)
>
<COND
(<YES? T>
<MOVE ,TH-FLEECE ,HERE>
<FCLEAR ,TH-FLEECE ,FL-NO-DESC>
<TELL
"The demon smiles with pleasure. He allows the fleece to slide onto"
the ,TH-GROUND ". \"Proceed, then.\"|"
>
<SETG GL-UPDATE-WINDOW <BOR ,GL-UPDATE-WINDOW ,K-UPD-DESC>>
<COND
(<EQUAL? ,GL-WINDOW-TYPE ,K-WIN-DESC>
<RT-UPDATE-DESC-WINDOW>
)
>
)
(T
<TELL
"The demon's face contorts in fury and he screams maniacally, \"Then
BEGONE!\" " ,K-DEMON-SCREAMS-MSG CR CR
>
<COND
(<IN? ,TH-GOLD-KEY ,CH-PLAYER>
<MOVE ,TH-GOLD-KEY ,RM-DEMON-HALL>
)
>
<REPEAT ((OBJ <FIRST? ,RM-DEMON-HALL>) NXT)
<COND
(<NOT .OBJ>
<RETURN>
)
(T
<SET NXT <NEXT? .OBJ>>
<COND
(<NOT <EQUAL? .OBJ ,TH-DEMON-THRONE ,CH-PLAYER>>
<MOVE .OBJ ,RM-LEDGE>
)
>
<SET OBJ .NXT>
)
>
>
<RT-GOTO ,RM-LEDGE T>
)
>
<RTRUE>
>
<ROUTINE RT-FREE-DEMON-MSG ("OPT" (DEMON? <>))
<COND
(.DEMON?
<COND
(<FSET? ,CH-DEMON ,FL-LOCKED>
<TELL The ,CH-GIRL>
)
(T
<TELL The ,CH-DEMON>
)
>
<TELL " takes the key and unlocks the other manacle. ">
)
>
<COND
(<NOT <IN? ,TH-FLEECE ,TH-DEMON-THRONE>>
<COND
(.DEMON?
<TELL "He">
)
(T
<TELL "The demon">
)
>
<TELL
" rises up and screams with crazed, triumphant laughter, \"Keep the fleece,
you fool! Finish your ridiculous quest if you like. It will do you no good.
For now I shall finally defeat those so-called gods of righteousness and
their feeble prophet, Merlin.\"||The demon suddenly dissolves into a cloud of
grey smoke and streams out of the hall, leaving behind only the echo of his
maniacal laughter. You are free to go, but when you realize the enormity of
the evil you have unleashed on the world, you collapse to the floor, bereft
of the will to move.|"
>
)
(T
<TELL "As soon as the manacles are open, the ">
<COND
(<FSET? ,CH-DEMON ,FL-LOCKED>
<TELL
"girl's features dissolve into those of a hideously evil demon who"
>
)
(T
<TELL "demon">
)
>
<TELL
" rises up and rubs his wrists, saying, \"Free at last!.\" He stretches and
then glances down, as if surprised to still see you there. \"Ah yes!\" he
cackles, \"There is that small matter of the promise I made you. Let me see -
I said I would keep you by my side for evermore. Well, I always keep my
word.\" He laughs and points at you. Electricity crackles from his fingertips
and suddenly you find yourself stretched out on the floor next to him, in the
form of a dog.|"
>
)
>
<RT-END-OF-GAME>
>
;"---------------------------------------------------------------------------"
; "TH-GOLD-KEY"
;"---------------------------------------------------------------------------"
<OBJECT TH-GOLD-KEY
(LOC CH-GIRL)
(DESC "gold key")
(FLAGS FL-NO-DESC FL-KEY FL-TAKEABLE FL-WORN)
(SYNONYM KEY)
(ADJECTIVE GOLD GOLDEN)
(SIZE 1)
(GENERIC RT-GN-KEY)
(ACTION RT-TH-GOLD-KEY)
>
<ROUTINE RT-TH-GOLD-KEY ("OPT" (CONTEXT <>) "AUX" L)
<COND
(.CONTEXT
<RFALSE>
)
(<AND <VERB? TAKE>
<EQUAL? <SET L <LOC ,TH-GOLD-KEY>> ,CH-DEMON ,CH-GIRL>
>
<COND
(<RT-DO-TAKE ,TH-GOLD-KEY>
<THIS-IS-IT ,TH-GOLD-KEY>
<TELL "You remove the key from" the .L "'s neck." CR>
<SETG GL-UPDATE-WINDOW <BOR ,GL-UPDATE-WINDOW ,K-UPD-DESC>>
<COND
(<EQUAL? ,GL-WINDOW-TYPE ,K-WIN-DESC>
<RT-UPDATE-DESC-WINDOW>
)
(<EQUAL? ,GL-WINDOW-TYPE ,K-WIN-PICT>
<RT-UPDATE-PICT-WINDOW>
)
>
<RTRUE>
)
>
)
>
>
;"---------------------------------------------------------------------------"
; "TH-LEFT-MANACLE"
; "TH-RIGHT-MANACLE"
;"---------------------------------------------------------------------------"
<OBJECT TH-LEFT-MANACLE
(LOC TH-DEMON-THRONE)
(DESC "left manacle")
(FLAGS FL-LOCKED FL-NO-DESC FL-OPENABLE)
(SYNONYM MANACLE)
(ADJECTIVE LEFT GOLD GOLDEN)
(ACTION RT-TH-MANACLE)
>
; "TH-LEFT-MANACLE flags:"
; " FL-BROKEN - Manacle has been opened and closed again."
<OBJECT TH-RIGHT-MANACLE
(LOC TH-DEMON-THRONE)
(DESC "right manacle")
(FLAGS FL-LOCKED FL-NO-DESC FL-OPENABLE)
(SYNONYM MANACLE)
(ADJECTIVE RIGHT GOLD GOLDEN)
(ACTION RT-TH-MANACLE)
>
; "TH-RIGHT-MANACLE flags:"
; " FL-BROKEN - Manacle has been opened and closed again."
<ROUTINE RT-TH-MANACLE ("OPT" (CONTEXT <>) "AUX" OTHER)
<COND
(<MC-PRSO? ,TH-LEFT-MANACLE>
<SET OTHER ,TH-RIGHT-MANACLE>
)
(T
<SET OTHER ,TH-LEFT-MANACLE>
)
>
<COND
(.CONTEXT
<RFALSE>
)
(<VERB? OPEN UNLOCK>
<COND
(<AND <MC-PRSI? <> ,TH-GOLD-KEY>
<IN? ,TH-GOLD-KEY ,WINNER>
>
<COND
(<FSET? ,PRSO ,FL-OPEN>
<RT-ALREADY-MSG ,PRSO "open">
)
(<FSET? .OTHER ,FL-OPEN>
<RT-FREE-DEMON-MSG>
)
(T
<FCLEAR ,PRSO ,FL-LOCKED>
<FSET ,PRSO ,FL-OPEN>
<COND
(<AND <NOT <FSET? ,CH-DEMON ,FL-LOCKED>>
<FSET? .OTHER ,FL-BROKEN>
>
<FSET ,CH-DEMON ,FL-BROKEN>
<REMOVE ,TH-GHOSTS>
<TELL
"You open" the ,PRSO ". The demon catches on to your plan and screams at you
in fury. \"Trapped! Trapped by my own words. You have won this round, Arthur,
but the final victory shall yet be mine, for I now lay a triple curse upon
your head.\"||\"You may gain the throne of England, but you shall gain no
solace from it. Your wife shall be barren, you shall be betrayed by your best
friend, and you shall die at the hand of your own son. Thus have I thrice
cursed you.\"||\"Now BEGONE!\""
>
<COND
(<EQUAL? ,GL-WINDOW-TYPE ,K-WIN-PICT>
<CRLF>
<INPUT 1 300 ,RT-STOP-READ>
<SCREEN 7>
<CLEAR 7>
<RT-CENTER-PIC ,K-PIC-ANGRY-DEMON>
<CURSET -1> ;"Make cursor go away."
<INPUT 1 100 ,RT-STOP-READ>
<CURSET -2> ;"Make cursor come back."
<SCREEN 0>
; "This is done so that the refresh doesn't
show the picture of the demon again."
<SETG GL-PICTURE-NUM ,K-PIC-DRAGON-OUT>
<V-REFRESH <>>
)
(T
<TELL " ">
)
>
<TELL
,K-DEMON-SCREAMS-MSG " The force of the blast dislodges the stones on the
mountainside above the cave entrance, and they fall down and seal off the
mouth of the cave.||"
>
<REPEAT ((OBJ <FIRST? ,RM-DEMON-HALL>) NXT)
<COND
(<NOT .OBJ>
<RETURN>
)
(T
<SET NXT <NEXT? .OBJ>>
<COND
(<NOT <EQUAL? .OBJ ,TH-DEMON-THRONE ,CH-PLAYER>>
<MOVE .OBJ ,RM-LEDGE>
)
>
<SET OBJ .NXT>
)
>
>
<RT-GOTO ,RM-LEDGE T>
<RT-SCORE-MSG 0 7 10 5>
)
(T
<TELL "You open" the ,PRSO ". The ">
<COND
(<FSET? ,CH-DEMON ,FL-LOCKED>
<TELL "girl">
)
(T
<TELL "demon">
)
>
<TELL " smiles.|">
<SETG GL-UPDATE-WINDOW <BOR ,GL-UPDATE-WINDOW ,K-UPD-DESC>>
<COND
(<EQUAL? ,GL-WINDOW-TYPE ,K-WIN-DESC>
<RT-UPDATE-DESC-WINDOW>
)
>
<RTRUE>
)
>