-
Notifications
You must be signed in to change notification settings - Fork 18
/
belboz.zil
1704 lines (1548 loc) · 45.2 KB
/
belboz.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
"BELBOZ for
SORCERER
(c) Copyright 1984 by Infocom Inc. All Rights Reserved."
<ROUTINE I-WAKE-UP ()
<JIGS-UP
"|
Suddenly, seemingly from nowhere, a bolt of lightning strikes
you in the center of your chest...">>
<OBJECT TREE
(IN LOCAL-GLOBALS)
(DESC "gnarled tree")
(SYNONYM TREE BRANCH)
(ADJECTIVE LARGE GNARLE OLD TWISTE)
(FLAGS NDESCBIT)
(ACTION TREE-F)>
<ROUTINE TREE-F ()
<COND (<VERB? CLIMB-FOO CLIMB-UP>
<DO-WALK ,P?UP>)
(<VERB? CLIMB-DOWN>
<DO-WALK ,P?DOWN>)
(<VERB? LOOK-UNDER>
<PERFORM ,V?EXAMINE ,GROUND>
<RTRUE>)
(<VERB? MEEF>
<SETG PERFORMING-SPELL T>
<PERFORM ,V?MEEF ,FOREST>
<RTRUE>)>>
<ROOM TWISTED-FOREST
(IN ROOMS)
(DESC "Twisted Forest")
(LDESC
"You are on a path through a blighted forest. The trees are sickly,
and there is no undergrowth at all. One tree here looks climbable.
The path, which ends here, continues to the northeast.")
(UP TO TREE-BRANCH)
(NE TO FOREST-EDGE)
(FLAGS RLANDBIT ONBIT)
(GLOBAL ROAD FOREST TREE)>
<OBJECT HELLHOUND
(IN TWISTED-FOREST)
(DESC "hellhound")
(SYNONYM HELLHO HOUND DOG)
(ADJECTIVE HELL)
(FLAGS NDESCBIT)
(ACTION HELLHOUND-F)>
<ROUTINE HELLHOUND-F ()
<COND (<VERB? RESEARCH>
<PERFORM ,V?RESEARCH ,LOBBY>
<RTRUE>)>>
<GLOBAL HELLHOUND-WARNING <>>
<ROUTINE I-HELLHOUND ()
<COND (<EQUAL? ,HERE ,TWISTED-FOREST>
<COND (,HELLHOUND-WARNING
<JIGS-UP
"|
The hellhound reaches you and tears you apart with its powerful teeth.">)
(T
<SETG HELLHOUND-WARNING T>
<TELL CR
"A hellhound is racing straight toward you, its open jaws displaying
rows of razor-sharp teeth." CR>)>)
(<EQUAL? ,HERE ,TREE-BRANCH>
<TELL
"The hellhound leaps madly about the base of the tree, gnashing its jaws." CR>)
(T
<MOVE ,HELLHOUND ,DIAL>
<DISABLE <INT I-HELLHOUND>>
<TELL
"The hellhound stops at the edge of the forest and bellows. After a moment,
it turns and slinks into the trees." CR>)>>
<ROOM TREE-BRANCH
(IN ROOMS)
(DESC "Tree Branch")
(DOWN TO TWISTED-FOREST)
(UP PER TREE-UP-F)
(FLAGS NONLANDBIT ONBIT)
(GLOBAL FOREST TREE)
(ACTION TREE-BRANCH-F)>
<ROUTINE TREE-BRANCH-F (RARG)
<COND (<EQUAL? .RARG ,M-LOOK>
<TELL "You are ">
<COND (,FLYING
<TELL "flying near">)
(T
<TELL "on">)>
<TELL
" a large gnarled branch of an old and twisted tree." CR>)
(<EQUAL? .RARG ,M-ENTER>
<ENABLE <QUEUE I-BOA -1>>
<RFALSE>)>>
<ROUTINE TREE-UP-F ()
<TELL "You can't ">
<COND (,FLYING
<TELL "fly">)
(T
<TELL "climb">)>
<TELL " any higher." CR>
<RFALSE>>
<OBJECT BOA
(IN TREE-BRANCH)
(DESC "boa constrictor")
(SYNONYM BOA CONSTR SNAKE)
(ADJECTIVE GIANT BOA)
(FLAGS NDESCBIT)
(ACTION BOA-F)>
<ROUTINE BOA-F ()
<COND (<VERB? EXAMINE>
<TELL
"Your average giant carnivorous snake -- except that this one has
three heads and an appetite to match." CR>)>>
<GLOBAL BOA-WARNING <>>
<ROUTINE I-BOA ()
<COND (<EQUAL? ,HERE ,TREE-BRANCH>
<COND (,FLYING
<RFALSE>)
(,BOA-WARNING
<JIGS-UP
"|
The snake begins wrapping itself around your torso, squeezing
the life out of you...">)
(T
<SETG BOA-WARNING T>
<TELL CR
"A giant boa constrictor is slithering along the branch toward you!" CR>)>)
(T
<SETG BOA-WARNING <>>
<DISABLE <INT I-BOA>>
<RFALSE>)>>
<ROOM FOREST-EDGE
(IN ROOMS)
(SYNONYM MOUNTA)
(ADJECTIVE LONELY)
(DESC "Forest Edge")
(LDESC
"To the west, a path enters the blighted woods, which stretch out of sight.
A signpost stands beside another path leading north, and to the east is a
wide meadow. At the base of the signpost is a slimy hole leading down.")
(WEST TO TWISTED-FOREST)
(NORTH TO MINE-FIELD)
(DOWN TO SNAKE-PIT)
(EAST TO MEADOW)
(SOUTH "A tall fence blocks your way.")
(PSEUDO "FENCE" FENCE-PSEUDO)
(FLAGS RLANDBIT ONBIT)
(GLOBAL HOLE ROAD FOREST MEADOW)>
<ROUTINE FENCE-PSEUDO ()
<COND (<VERB? CLIMB-OVER CLIMB-FOO LEAP>
<TELL "It's too tall." CR>)>>
<OBJECT SIGNPOST
(IN FOREST-EDGE)
(DESC "signpost")
(SYNONYM SIGNPO POST SIGN)
(ADJECTIVE SIGN)
(FLAGS READBIT NDESCBIT)
(ACTION SIGNPOST-F)>
<ROUTINE SIGNPOST-F ()
<COND (<VERB? READ>
<FIXED-FONT-ON>
<TELL
"|
\" *** !!! >>> WARNING <<< !!! ***|
This path is protected by a|
Magic Mine Field|
installed by the|
Frobozz Magic Mine Field Company" CR>
<FIXED-FONT-OFF>)>>
<ROOM MINE-FIELD
(IN ROOMS)
(DESC "Mine Field")
(LDESC
"This is a flat and featureless dirt path leading north and south.")
(SOUTH PER MINE-FIELD-EXIT-F)
(NORTH PER MINE-FIELD-EXIT-F)
(EAST "A tall fence blocks your way.")
(WEST "The forest is too dense to enter here.")
(FLAGS RLANDBIT ONBIT)
(GLOBAL FOREST)
(PSEUDO "FENCE" FENCE-PSEUDO)>
<ROUTINE MINE-FIELD-EXIT-F ()
<COND (<AND <EQUAL? ,PRSO ,P?SOUTH>
<PROB 50>>
,FOREST-EDGE)
(T
<COND (,FLYING
<TELL
"Unfortunately, one of the properties of magic mine fields is their
ability to blow you up even if you're floating above them. ">)>
<JIGS-UP "Kaboom!!!...">
<RFALSE>)>>
<ROOM SNAKE-PIT
(IN ROOMS)
(DESC "Snake Pit")
(LDESC
"You have entered a shadowy pit full of nooks and crannies. From every
direction you hear the hissing of vipers and the irregular clicking of
giant beetles. Light spills down from above, and a small crack leads
further downward into darkness.")
(UP TO FOREST-EDGE)
(OUT TO FOREST-EDGE)
(DOWN TO SLIMY-ROOM)
(FLAGS RLANDBIT ONBIT)
(PSEUDO "PIT" SNAKE-PIT-PSEUDO "CRACK" CRACK-PSEUDO)
(ACTION SNAKE-PIT-F)>
<ROUTINE SNAKE-PIT-PSEUDO ()
<COND (<VERB? THROUGH>
<LOOK-AROUND-YOU>)>>
<ROUTINE CRACK-PSEUDO ()
<COND (<VERB? THROUGH>
<DO-WALK ,P?DOWN>)>>
<OBJECT VIPERS
(IN SNAKE-PIT)
(DESC "group of unseen creatures")
(SYNONYM SNAKE SNAKES BEETLE CREATU)
(ADJECTIVE GIANT VIPER VIPERS UNSEEN GROUP)
(FLAGS NDESCBIT)>
<ROUTINE SNAKE-PIT-F (RARG)
<COND (<EQUAL? .RARG ,M-ENTER>
<ENABLE <QUEUE I-SNAKE-PIT <+ 1 <RANDOM 3>>>>
<RFALSE>)>>
<ROUTINE I-SNAKE-PIT ()
<COND (<EQUAL? ,HERE ,SNAKE-PIT>
<JIGS-UP
"|
Suddenly, the pit comes alive as dozens of vipers strike and thousands
of giant beetles pour from their hiding places.">)
(T
<DISABLE <INT I-SNAKE-PIT>>)>>
<ROOM SLIMY-ROOM
(IN ROOMS)
(SYNONYM KRILL)
(ADJECTIVE EVIL WARLOC)
(DESC "Slimy Room")
(LDESC
"This is a moist room whose walls are thick with moss and lichens. A
small hole leads up and a rocky passage leads south.")
(UP TO SNAKE-PIT)
(SOUTH TO CRATER)
(DOWN TO CRATER)
(FLAGS INSIDEBIT RLANDBIT)
(GLOBAL HOLE)
(PSEUDO "CRATER" CRATER-PSEUDO)>
<OBJECT MOSS
(IN SLIMY-ROOM)
(DESC "moss and lichens")
(SYNONYM MOSS LICHEN SLIME)
(FLAGS NDESCBIT NARTICLEBIT)
(ACTION MOSS-F)>
<ROUTINE MOSS-F ()
<COND (<VERB? MEEF>
<TELL
"A few patches of the moss and lichens become brown and dry." CR>)
(<VERB? EAT>
<JIGS-UP "Uh, oh. They taste poisonous.">)>>
<ROOM MEADOW
(IN ROOMS)
(DESC "Meadow")
(NORTH TO RIVER-BANK)
(NE TO RIVER-BANK)
(EAST TO DRAWBRIDGE)
(WEST TO FOREST-EDGE)
(SOUTH "A tall fence blocks your way.")
(FLAGS RLANDBIT ONBIT)
(PSEUDO "FENCE" FENCE-PSEUDO "TURRET" TURRET-PSEUDO)
(GLOBAL MEADOW-OBJECT CASTLE)
(ACTION MEADOW-F)>
<ROUTINE MEADOW-F (RARG)
<COND (<EQUAL? .RARG ,M-ENTER>
<ENABLE <QUEUE I-LOCUSTS -1>>
<RFALSE>)
(<EQUAL? .RARG ,M-LOOK>
<TELL "You are in the center of a ">
<COND (<IN? ,MEADOW-OBJECT ,HERE>
<TELL "rolling meadow of tall grass">)
(T
<TELL "barren field">)>
<TELL
". To the east is the turret of a ruined castle, and from the northeast
comes the sound of rushing water." CR>)>>
<OBJECT MEADOW-OBJECT
(IN LOCAL-GLOBALS)
(DESC "meadow")
(SYNONYM MEADOW GRASS FIELD)
(ADJECTIVE TALL ROLLIN WIDE)
(FLAGS NDESCBIT)
(ACTION MEADOW-OBJECT-F)>
<ROUTINE MEADOW-OBJECT-F ()
<COND (<AND <NOT <EQUAL? ,HERE ,MEADOW>>
<VERB? RUB MEEF>>
<TELL "The meadow is too far away." CR>)
(<VERB? MEEF>
<MOVE ,MEADOW-OBJECT ,DIAL>
<TELL "The grass vanishes as far as the eye can see." CR>)>>
<OBJECT PLAGUE-OF-LOCUSTS
(IN MEADOW)
(DESC "plague of locusts")
(SYNONYM PLAGUE SWARM LOCUSTS)
(ADJECTIVE BLOOD SUCKIN)
(FLAGS NDESCBIT)
(ACTION PLAGUE-OF-LOCUSTS-F)>
<ROUTINE PLAGUE-OF-LOCUSTS-F ()
<COND (<VERB? LOOK-UNDER>
<PERFORM ,V?EXAMINE ,MEADOW-OBJECT>
<RTRUE>)>>
<GLOBAL LOCUST-WARNING 0>
<ROUTINE I-LOCUSTS ()
<COND (<NOT <EQUAL? ,HERE ,MEADOW>>
<DISABLE <INT I-LOCUSTS>>
<SETG LOCUST-WARNING 0>
<RFALSE>)
(<EQUAL? ,LOCUST-WARNING 0>
<SETG LOCUST-WARNING <+ ,LOCUST-WARNING 1>>
<TELL CR
"A swarm of bloodsucking locusts appears on the horizon." CR>)
(<EQUAL? ,LOCUST-WARNING 1>
<SETG LOCUST-WARNING <+ ,LOCUST-WARNING 1>>
<TELL CR
"The locusts are much closer now, blotting out the sun like
a black storm cloud." CR>)
(T
<SETG LOCUST-WARNING 0>
<JIGS-UP
"|
The locusts swarm over you and pick you clean to the bones.">)>>
<ROOM RIVER-BANK
(IN ROOMS)
(DESC "River Bank")
(SOUTH TO MEADOW)
(SW TO MEADOW)
(NORTH PER RIVER-ENTER-F)
(EAST PER RIVER-ENTER-F)
(NE PER RIVER-ENTER-F)
(DOWN PER RIVER-ENTER-F)
(NW "Undergrowth prevents travel along the bank.")
(SE TO FORT-ENTRANCE)
(FLAGS RLANDBIT ONBIT)
(GLOBAL WATER RIVER MEADOW-OBJECT BANKS RIVER-BED-OBJECT)
(PSEUDO "ROCK" ROCK-PSEUDO "ROCKS" ROCK-PSEUDO)
(ACTION RIVER-BANK-F)>
<GLOBAL BANK-COUNTER 0>
<ROUTINE RIVER-BANK-F (RARG)
<COND (<EQUAL? .RARG ,M-LOOK>
<TELL "You are on a muddy bank ">
<COND (,RIVER-EVAPORATED
<TELL "above a dried-up river bed">)
(T
<TELL
"of a fast-moving river, full of sharp rocks and foaming rapids,
flowing to the southwest. The ground is soft and eroded, and
continually threatens to dump you into the turbulent waters">)>
<TELL
". A field lies to the southwest, and a trail leads southeast
along the bank." CR>)
(<EQUAL? .RARG ,M-END>
<COND (<L? ,BANK-COUNTER 3>
<SETG BANK-COUNTER <+ ,BANK-COUNTER 1>>
<RFALSE>)
(T
<COND (<AND <NOT ,RIVER-EVAPORATED>
<NOT ,FLYING>
<PROB 75>>
<JIGS-UP
"Oops! A section of the bank gives way and you tumble into
the river. The current dashes you against the rocks.">)>)>)>>
<ROUTINE ROCK-PSEUDO ()
<COND (<VERB? CROSS>
<TELL <PICK-ONE ,YUKS> CR>)>>
<GLOBAL RIVER-EVAPORATED <>>
<ROUTINE RIVER-ENTER-F ()
<COND (,RIVER-EVAPORATED
,RIVER-BED)
(,FLYING
<JIGS-UP
"You fly across the river's surface. Suddenly, a downdraft plunges
you into the swirling rapids!">
<RFALSE>)
(T
<TELL "You'd never survive the rapids." CR>
<RFALSE>)>>
<OBJECT RIVER
(IN LOCAL-GLOBALS)
(DESC "river")
(SYNONYM RIVER WATERS RAPIDS)
(ADJECTIVE MIGHTY FAST- MOVING TURBUL FOAMIN)
(FLAGS NDESCBIT)
(ACTION RIVER-F)>
<ROUTINE RIVER-F ()
<COND (<EQUAL? ,HERE ,GUN-EMPLACEMENT ,TURRET>
<TELL "The river lies far below." CR>)
(,RIVER-EVAPORATED
<TELL "River? What river?" CR>)
(<VERB? DRINK DRINK-FROM>
<PERFORM ,V?DRINK ,WATER>
<RTRUE>)
(<VERB? PULVER>
<COND (<EQUAL? ,HERE ,RIVER-BANK>
<SETG RIVER-EVAPORATED T>
<ENABLE <QUEUE I-TRICKLE 3>>
<TELL
"The river dries up, leaving only a few puddles between the rocks! It's
now safe to climb down into the river bed." CR>)
(T
<TELL
"The water level drops several feet, but quickly surges back." CR>)>)
(<VERB? EXAMINE>
<TELL "The river flows quickly by below you." CR>)
(<AND <VERB? PUT>
<EQUAL? ,RIVER ,PRSI>>
<MOVE ,PRSO ,DIAL>
<SPLASH>)
(<VERB? THROUGH>
<DO-WALK ,P?NORTH>)>>
<ROUTINE I-TRICKLE ()
<ENABLE <QUEUE I-FLOOD 2>>
<COND (<OR <EQUAL? ,HERE ,RIVER-BANK ,RIVER-BED>
<EQUAL? ,HERE ,STAGNANT-POOL ,TOP-OF-FALLS>>
<TELL CR
"A trickle of water begins flowing down the center of the river bed." CR>)>>
<ROUTINE I-FLOOD ()
<SETG RIVER-EVAPORATED <>>
<FLOOD-LOOP ,RIVER-BED>
<FLOOD-LOOP ,STAGNANT-POOL>
<FLOOD-LOOP ,TOP-OF-FALLS>
<CRLF>
<COND (<EQUAL? ,HERE ,STAGNANT-POOL ,RIVER-BED ,TOP-OF-FALLS>
<JIGS-UP
"A wall of water comes rushing down the river bed! You are smashed into
jelly against the rocks.">)
(<EQUAL? ,HERE ,RIVER-BANK>
<TELL
"A wall of water rushes down the river bed as the river returns with
a vengeance." CR>)
(<EQUAL? ,HERE ,HIDDEN-CAVE>
<TELL
"There is a roar of water from outside the cave. The lower part
of the cave, near the mouth, fills with a pool of swirling water!" CR>)>>
<ROUTINE FLOOD-LOOP (LOC "AUX" X N)
<SET X <FIRST? .LOC>>
<COND (<NOT .X>
<RTRUE>)>
<REPEAT ()
<SET N <NEXT? .X>>
<COND (<NOT <EQUAL? .X ,PROTAGONIST>>
<MOVE .X ,DIAL>)>
<COND (<NOT .N>
<RETURN>)
(T
<SET X .N>)>>>
<OBJECT UNDERGROWTH
(IN RIVER-BANK)
(DESC "undergrowth")
(SYNONYM UNDERG)
(FLAGS NDESCBIT VOWELBIT NARTICLEBIT)
(ACTION UNDERGROWTH-F)>
<ROUTINE UNDERGROWTH-F ()
<COND (<VERB? MEEF>
<TELL
"The nearest part of the undergrowth withers away ... revealing
more undergrowth." CR>)>>
<OBJECT BANKS
(IN LOCAL-GLOBALS)
(DESC "river bank")
(SYNONYM BANK BANKS)
(ADJECTIVE RIVER MUDDY TALL STEEP HIGH)
(FLAGS NDESCBIT)
(ACTION BANKS-F)>
<ROUTINE BANKS-F ()
<COND (<VERB? CLIMB-UP CLIMB-DOWN CLIMB-FOO>
<V-WALK-AROUND>)>>
<OBJECT RIVER-BED-OBJECT
(IN LOCAL-GLOBALS)
(DESC "river bed")
(SYNONYM BED)
(ADJECTIVE RIVER)
(FLAGS NDESCBIT)
(ACTION RIVER-BED-OBJECT-F)>
<ROUTINE RIVER-BED-OBJECT-F ()
<COND (<VERB? THROUGH>
<COND (<EQUAL? ,HERE ,RIVER-BANK>
<DO-WALK ,P?DOWN>)
(T
<LOOK-AROUND-YOU>)>)
(<VERB? DROP EXIT>
<COND (<EQUAL? ,HERE ,RIVER-BANK>
<LOOK-AROUND-YOU>)
(T
<DO-WALK ,P?UP>)>)>>
<ROOM RIVER-BED
(IN ROOMS)
(SYNONYM SERVAN GUILD)
(ADJECTIVE SERVAN)
(DESC "River Bed")
(LDESC
"You are on the bed of an evaporated river. Fish splash helplessly in
tiny puddles. The bed leads northwest and southeast. A climb up the
southwest bank is possible. To the northeast is a dark cave, hollowed
out by years of rushing water.")
(UP TO RIVER-BANK)
(SW TO RIVER-BANK)
(NE TO HIDDEN-CAVE)
(SE TO TOP-OF-FALLS)
(NW TO STAGNANT-POOL)
(FLAGS RLANDBIT ONBIT)
(PSEUDO "PUDDLE" PUDDLE-PSEUDO "FISH" FISH-PSEUDO)
(GLOBAL WATER CAVE BANKS RIVER-BED-OBJECT)
(ACTION RIVER-BED-F)>
<ROUTINE RIVER-BED-F (RARG)
<COND (<EQUAL? .RARG ,M-ENTER>
<PUT ,VEZZAS 1 0>
<RFALSE>)>>
<ROUTINE PUDDLE-PSEUDO ()
<COND (<VERB? THROUGH>
<TELL "The puddles are very shallow." CR>)
(<VERB? PULVER>
<SETG PERFORMING-SPELL T>
<PERFORM ,V?PULVER ,WATER>
<RTRUE>)>>
<ROUTINE FISH-PSEUDO ()
<COND (<VERB? TAKE>
<TELL "They squirm from your grasp." CR>)>>
<ROOM STAGNANT-POOL
(IN ROOMS)
(SYNONYM TUMPER)
(ADJECTIVE GABBER)
(DESC "Near Stagnant Pool")
(LDESC
"The river bed to the northwest is a pool covered with algae and other
scum. The bed to the southeast is slightly drier. The banks are too tall
and steep to climb here.")
(NW PER TENTACLE-DEATH)
(SE TO RIVER-BED)
(UP PER RIVER-EXIT-F)
(NE PER RIVER-EXIT-F)
(SW PER RIVER-EXIT-F)
(FLAGS RLANDBIT ONBIT)
(GLOBAL WATER BANKS RIVER-BED-OBJECT)>
<ROUTINE TENTACLE-DEATH ()
<COND (,FLYING
<TELL "You fly over the surface of the pool.">)
(T
<TELL "You wade into the stagnant pool.">)>
<JIGS-UP
" Suddenly, powerful tentacles lash out and drag you under the surface.">
<RFALSE>>
<ROOM TOP-OF-FALLS
(IN ROOMS)
(SYNONYM BORPHE)
(DESC "Top of Falls")
(LDESC
"The river bed ends here at a steep cliff, where the river once plunged
over a waterfall. Below the falls, in the distance, is a large sea,
covered with haze. The bed continues northwest, but the banks here are
unclimbable. Atop the southwestern bank stands a proud fortress.")
(UP PER RIVER-EXIT-F)
(NE PER RIVER-EXIT-F)
(SW PER RIVER-EXIT-F)
(SE PER WATERFALL-EXIT-F)
(DOWN PER WATERFALL-EXIT-F)
(NW TO RIVER-BED)
(FLAGS ONBIT RLANDBIT)
(GLOBAL WATER FORT BANKS OCEAN WATERFALL RIVER-BED-OBJECT)
(PSEUDO "CLIFF" TOP-OF-CLIFF-PSEUDO "HAZE" HAZE-PSEUDO)>
<ROUTINE RIVER-EXIT-F ()
<TELL "The banks are too ">
<COND (,FLYING
<TELL "high to fly over." CR>)
(T
<TELL "steep to climb." CR>)>
<RFALSE>>
<ROUTINE WATERFALL-EXIT-F ()
<COND (,FLYING
<TELL
"That would be foolhardy, as flying spells are of limited duration." CR>)
(T
<TELL "That would involve quite a plunge." CR>)>
<RFALSE>>
<ROUTINE TOP-OF-CLIFF-PSEUDO ()
<COND (<VERB? CLIMB-DOWN>
<TELL "Impossible." CR>)
(<VERB? LEAP>
<JIGS-UP "Brilliant move.">)>>
<ROUTINE HAZE-PSEUDO ()
<COND (<VERB? RUB>
<TELL "From here?" CR>)>>
<OBJECT WATERFALL
(IN LOCAL-GLOBALS)
(DESC "waterfall")
(SYNONYM WATERF FALL FALLS)
(ADJECTIVE WATER TALL)
(FLAGS NDESCBIT)
(ACTION WATERFALL-F)>
<ROUTINE WATERFALL-F ()
<COND (<VERB? EXAMINE>
<TELL
"It's no Aragain Falls, but it's pretty impressive." CR>)
(<AND <VERB? LEAP>
<EQUAL? ,HERE ,TOP-OF-FALLS>>
<SETG PRSO <>>
<PERFORM ,V?LEAP>
<RTRUE>)
(<AND <EQUAL? ,HERE ,MOUTH-OF-RIVER ,TURRET>
<VERB? LEAP RUB SMELL LISTEN>>
<TELL "From here?" CR>)>>
<ROOM HIDDEN-CAVE
(IN ROOMS)
(DESC "Hidden Cave")
(SW TO RIVER-BED IF RIVER-EVAPORATED ELSE
"Entering that swirling, turbulent pool looks very dangerous.")
(OUT TO RIVER-BED IF RIVER-EVAPORATED ELSE
"Entering that swirling, turbulent pool looks very dangerous.")
(DOWN TO PIT-OF-BONES)
(FLAGS INSIDEBIT RLANDBIT)
(GLOBAL WATER CAVE HOLE)
(ACTION HIDDEN-CAVE-F)>
<ROUTINE HIDDEN-CAVE-F (RARG)
<COND (<AND <EQUAL? .RARG ,M-ENTER>
<NOT <FSET? ,HIDDEN-CAVE ,TOUCHBIT>>>
<SETG SCORE <+ ,SCORE 20>>)
(<EQUAL? .RARG ,M-LOOK>
<TELL
"This is a hollow area under the northeast bank of the river. The floor
rises away from the mouth of the cave, which is at its southwest end. ">
<COND (<NOT ,RIVER-EVAPORATED>
<TELL
"The mouth is filled with a pool of swirling water. ">)>
<TELL
"A dark hole leads downward at the far end of the cave." CR>)>>
<OBJECT BAT-GUANO
(IN HIDDEN-CAVE)
(DESC "pile of bat guano")
(SYNONYM PILE GUANO SHIT)
(ADJECTIVE BAT FECES TURDS DUNG)
(FLAGS TRYTAKEBIT TAKEBIT NDESCBIT)
(SIZE 10)
(ACTION BAT-GUANO-F)>
<ROUTINE BAT-GUANO-F ()
<COND (<AND <VERB? TAKE>
<NOT <FSET? ,FWEEP-SCROLL ,TOUCHBIT>>>
<FSET ,FWEEP-SCROLL ,TOUCHBIT>
<FSET ,BAT-GUANO ,TOUCHBIT>
<FCLEAR ,BAT-GUANO ,TRYTAKEBIT>
<FCLEAR ,BAT-GUANO ,NDESCBIT>
<MOVE ,BAT-GUANO ,PROTAGONIST>
<TELL
"As you take the guano, the soiled scroll falls to the ground." CR>)>>
<OBJECT BLORT-VIAL
(IN HIDDEN-CAVE)
(DESC "amber vial")
(SYNONYM VIAL VIALS LABEL)
(ADJECTIVE AMBER BLORT)
(FLAGS CONTBIT READBIT TRYTAKEBIT TAKEBIT VOWELBIT VIALBIT SEARCHBIT)
(SIZE 3)
(CAPACITY 1)
(ACTION BLORT-VIAL-F)>
<ROUTINE BLORT-VIAL-F ()
<COND (<VERB? READ>
<FIXED-FONT-ON>
<TELL
"|
\"BLORT POTION|
(ability to see in dark places)\"" CR>
<FIXED-FONT-OFF>)>>
<OBJECT BLORT-POTION
(IN BLORT-VIAL)
(DESC "amber potion")
(SYNONYM POTION)
(ADJECTIVE AMBER BLORT)
(FLAGS NARTICLEBIT VOWELBIT)
(ACTION BLORT-POTION-F)>
<ROUTINE BLORT-POTION-F ()
<COND (<AND <VERB? EAT DRINK>
<NOT <HELD? ,BLORT-VIAL>>>
<POTION-POUR ,BLORT-VIAL>)
(<VERB? RESEARCH>
<READ-ABOUT-POTIONS 1>)
(<VERB? EAT DRINK>
<MOVE ,BLORT-POTION ,DIAL>
<COND (,UNDER-INFLUENCE
<TWO-POTIONS>
<RTRUE>)>
<ENABLE <QUEUE I-UNBLORT 24>>
<SETG BLORTED T>
<SETG UNDER-INFLUENCE ,BLORT-POTION>
<TELL
"The amber potion tasted like chives, and made your eyes tingle." CR>)
(<VERB? DROP>
<PERFORM ,V?POUR ,PRSO ,PRSI>
<RTRUE>)
(<AND <VERB? POUR>
<EQUAL? ,PRSO ,BLORT-POTION>>
<POTION-POUR ,BLORT-VIAL>)>>
<GLOBAL BLORTED <>>
<ROUTINE I-UNBLORT ()
<SETG BLORTED <>>
<COND (<EQUAL? ,UNDER-INFLUENCE ,BLORT-POTION>
<SETG UNDER-INFLUENCE <>>)>
<TELL CR "Your eyes tingle for a moment.">
<COND (<NOT ,LIT>
<TELL " You can no longer see anything around you!">)>
<CRLF>>
<OBJECT FWEEP-SCROLL
(IN HIDDEN-CAVE)
(DESC "soiled scroll")
(FDESC
"Lying in the corner, in a pile of bat guano, is a scroll.")
(SYNONYM SCROLL)
(ADJECTIVE SOILED)
(FLAGS READBIT SCROLLBIT TRYTAKEBIT TAKEBIT CONTBIT TRANSBIT)
(SIZE 3)
(ACTION SCROLL-F)>
<OBJECT FWEEP-SPELL
(IN FWEEP-SCROLL)
(SYNONYM SPELLS SPELL)
(ADJECTIVE FWEEP)
(DESC "fweep spell")
(TEXT "turn caster into a bat")
(COUNT 0)
(SIZE 1)
(FLAGS NDESCBIT SPELLBIT)
(ACTION SPELL-F)>
<GLOBAL FWEEPED <>>
<ROUTINE I-UNFWEEP ()
<SETG FWEEPED <>>
<SETG FLYING <>>
<TELL CR
"After a moment of futilely flapping your arms, you realize that
the fweep spell has worn off. ">
<COND (<AND <EQUAL? ,HERE ,GLASS-MAZE>
<NO-FLOOR?>>
<JIGS-UP
"Unfortunately, this room of the maze has no floor.">)
(<EQUAL? ,HERE ,TREE-BRANCH>
<SETTLE-ONTO-BRANCH>)
(<EQUAL? ,HERE ,LAGOON>
<SPLASH-INTO-WATER>)
(T
<TELL
"You fall several feet to the ground." CR>)>
<COND (<G? ,AWAKE 8>
<I-TIRED>)>>
;"FORT-ENTRANCE and beyond is in FORT.ZIL"
<ROOM DRAWBRIDGE
(IN ROOMS)
(DESC "Drawbridge")
(EAST TO RUINS)
(WEST TO MEADOW)
(DOWN PER DRAWBRIDGE-EXIT-F)
(FLAGS RLANDBIT ONBIT)
(GLOBAL WATER CASTLE MEADOW-OBJECT)
(ACTION DRAWBRIDGE-F)>
<GLOBAL DRAWBRIDGE-MOVE <>>
<ROUTINE DRAWBRIDGE-F (RARG)
<COND (<AND <EQUAL? .RARG ,M-END>
<NOT ,FLYING>>
<COND (,DRAWBRIDGE-MOVE
<COND (<PROB 40>
<TELL
"With a scream of splintering wood, part of the drawbridge collapses and spills
you into the moat. ">
<DO-WALK ,P?DOWN>)
(T
<TELL "The bridge continues to creak." CR>)>)
(T
<SETG DRAWBRIDGE-MOVE T>
<RFALSE>)>)
(<EQUAL? .RARG ,M-LOOK>
<TELL "You are ">
<COND (,FLYING
<TELL "floating over">)
(T
<TELL "standing on">)>
<TELL
" the drawbridge of a ruined castle which lies to your east. The wood
of the bridge looks severely rotted">
<COND (,FLYING
<TELL ". The moat is">)
(T
<TELL
" and creaks ominously beneath you. The moat, although an easy dive
from here, looks dangerous,">)>
<TELL
" full of sinister shapes beneath the surface of the water. To
the west is a wide field." CR>)>>
<ROUTINE DRAWBRIDGE-EXIT-F ()
<JIGS-UP "You are immediately set upon by alligators and piranhas.">
<RFALSE>>
<OBJECT MOAT
(IN DRAWBRIDGE)
(DESC "moat")
(SYNONYM MOAT)
(FLAGS NDESCBIT)
(ACTION MOAT-F)>
<ROUTINE MOAT-F ()
<COND (<VERB? PULVER>
<TELL
"The moat dries up, leaving vicious-looking creatures flopping around
in puddles. Immediately, the castle's automatic moat-filler turns on,
and refills the moat." CR>)
(<VERB? DRINK DRINK-FROM>
<PERFORM ,V?DRINK ,WATER>
<RTRUE>)
(<VERB? EXAMINE>
<TELL
"The water is murky, and lily pads cover most of the surface. Dark
shapes swim about below the surface." CR>)
(<VERB? LEAP THROUGH>
<DO-WALK ,P?DOWN>)>>
<OBJECT BRIDGE
(IN DRAWBRIDGE)
(DESC "wooden drawbridge")
(SYNONYM BRIDGE DRAWBR)
(ADJECTIVE ROTTED WOODEN DRAW)
(FLAGS NDESCBIT)
(ACTION BRIDGE-F)>
<ROUTINE BRIDGE-F ()
<COND (<VERB? LOOK-UNDER>
<PERFORM ,V?EXAMINE ,MOAT>
<RTRUE>)
(<VERB? LISTEN>
<TELL "Creak, creak." CR>)>>
<ROOM RUINS
(IN ROOMS)
(SYNONYM FANNUC)
(ADJECTIVE DOUBLE)
(DESC "Ruins")
(LDESC
"You are amongst the ruins of an ancient castle. A winding stairway leads
up to a crumbling turret, and a dark passage leads downward. A path heads
through the rubble to the west.")
(WEST TO DRAWBRIDGE)
(UP TO TURRET)
(DOWN TO DUNGEON)
(FLAGS RLANDBIT ONBIT)
(PSEUDO "TURRET" TURRET-PSEUDO)
(GLOBAL STAIRS CASTLE)>
<ROOM TURRET
(IN ROOMS)
(SYNONYM MAILMA MESSEN GUILD)
(ADJECTIVE MESSEN)
(DESC "Turret")
(LDESC
"This is the only turret of the castle still standing. It affords a
marvelous view of a meadow to the west, and beyond that a twisted forest.
To the north is a mighty fortress which stands atop a cliff where a
turbulent river pours into an ocean. The ocean stretches out of sight
to the east. A spiralling staircase leads downward.")
(DOWN TO RUINS)
(FLAGS RLANDBIT ONBIT)
(PSEUDO "TURRET" TURRET-PSEUDO)
(GLOBAL FORT OCEAN RIVER MEADOW-OBJECT STAIRS FOREST CASTLE WATERFALL)>
<ROUTINE TURRET-PSEUDO ()
<COND (<VERB? THROUGH>
<COND (<EQUAL? ,HERE ,RUINS>
<DO-WALK ,P?UP>)
(<EQUAL? ,HERE ,MEADOW>
<CANT-ENTER ,IT>)
(T
<LOOK-AROUND-YOU>)>)
(<VERB? DROP EXIT>
<COND (<EQUAL? ,HERE ,TURRET>
<DO-WALK ,P?DOWN>)
(T
<LOOK-AROUND-YOU>)>)
(<AND <VERB? LEAP>
<EQUAL? ,HERE ,TURRET>>
<SETG PRSO <>>
<PERFORM ,V?LEAP>
<RTRUE>)>>
<ROOM TORTURE-CHAMBER
(IN ROOMS)
(DESC "Torture Chamber")
(LDESC
"This is a large and well-equipped torture chamber. These were very
popular in castles of several centuries ago, but are somewhat out
of fashion now. There are exits to the west and north.")
(WEST TO DUNGEON)
(NORTH TO PIT-OF-BONES)
(FLAGS RLANDBIT INSIDEBIT)
(GLOBAL CASTLE)>
<OBJECT TORTURE-DEVICES
(IN TORTURE-CHAMBER)
(DESC "torture devices")
(SYNONYM DEVICE RACK PIT PENDUL)
(ADJECTIVE TORTUR)
(FLAGS NDESCBIT)
(ACTION TORTURE-DEVICES-F)>
<ROUTINE TORTURE-DEVICES-F ()
<COND (<VERB? EXAMINE>
<TELL
"All the usual torture devices are here, all quite mean and
deadly looking." CR>)>>
<OBJECT FLAXO-VIAL
(IN TORTURE-CHAMBER)
(DESC "indigo vial")
(FDESC
"Sitting near one of the torture devices is an indigo vial, labelled
in tiny letters.")
(SYNONYM VIAL VIALS LETTER LABEL)
(ADJECTIVE INDIGO FLAXO TINY)
(FLAGS CONTBIT READBIT TAKEBIT VOWELBIT VIALBIT SEARCHBIT)
(SIZE 3)
(CAPACITY 1)
(ACTION FLAXO-VIAL-F)>