forked from Quest-Master/QuestForLubok
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVersion 1.0
2139 lines (1977 loc) · 88 KB
/
Version 1.0
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
_Title "Quest For Lubok Ver. 1.0"
r = 1
gotlantern = 1
gotdagger = 0
gotsphereoflife = 0
gotsphereofdeath = 0
gotgold = 0
gotqthestaffoflubok = 0
gotsheldofmari = 0
lubok = 1
skeleton = 5
ghost = 5
hellhound = 2
bat = 5
serpent = 1
Screen 12
Color 7, 0
Cls
Dim Shared DOOM As Double
Minutes = 59
Seconds = 59
GameTime = Minutes * 60 + Seconds
Dim directions(1 To 138) As String
directions(1) = "NORTH OR SOUTH"
directions(2) = "EAST, WEST, OR SOUTH"
directions(3) = "EAST OR WEST"
directions(4) = "NORTH OR EAST"
directions(5) = "NORTH OR SOUTH"
directions(6) = "NORTH, SOUTH, OR WEST"
directions(7) = "NORTH OR SOUTH"
directions(8) = "NORTH, SOUTH, OR WEST"
directions(9) = "NORTH OR SOUTH"
directions(10) = "EAST OR SOUTH"
directions(11) = "EAST OR WEST"
directions(12) = "NORTH, EAST, OR WEST"
directions(13) = "EAST OR WEST"
directions(14) = "WEST OR SOUTH"
directions(15) = "NORTH OR SOUTH"
directions(16) = "NORTH, SOUTH, OR EAST"
directions(17) = "NORTH OR SOUTH"
directions(18) = "NORTH, SOUTH, OR EAST"
directions(19) = "NORTH OR SOUTH"
directions(20) = "NORTH OR WEST"
directions(21) = "EAST OR WEST"
directions(22) = "NORTH OR SOUTH"
directions(23) = "NORTH OR SOUTH"
directions(24) = "NORTH, SOUTH, EAST, OR WEST"
directions(25) = "NORTH OR SOUTH"
directions(26) = "EAST, WEST, OR SOUTH"
directions(27) = "NORTH OR EAST"
directions(28) = "NORTH OR SOUTH"
directions(29) = "EAST OR SOUTH"
directions(30) = "EAST OR WEST"
directions(31) = "WEST OR SOUTH"
directions(32) = "NORTH OR SOUTH"
directions(33) = "NORTH OR WEST"
directions(34) = "EAST OR WEST"
directions(35) = "EAST OR WEST"
directions(36) = "WEST"
directions(37) = "EAST OR WEST"
directions(38) = "EAST OR WEST"
directions(39) = "EAST"
directions(40) = "EAST OR WEST"
directions(41) = "EAST OR WEST"
directions(42) = "EAST OR WEST"
directions(43) = "EAST OR WEST"
directions(44) = "NORTH OR WEST"
directions(45) = "EAST OR WEST"
directions(46) = "NORTH OR EAST"
directions(47) = "EAST OR WEST"
directions(48) = "WEST OR SOUTH"
directions(49) = "EAST OR WEST"
directions(50) = "EAST OR SOUTH"
directions(51) = "NORTH OR SOUTH"
directions(52) = "NORTH OR WEST"
directions(53) = "EAST OR SOUTH"
directions(54) = "NORTH OR SOUTH"
directions(55) = "NORTH OR WEST"
directions(56) = "EAST OR SOUTH"
directions(57) = "NORTH, SOUTH, OR WEST"
directions(58) = "NORTH OR EAST"
directions(59) = "EAST OR WEST"
directions(60) = "EAST, WEST, OR SOUTH"
directions(61) = "NORTH OR SOUTH"
directions(62) = "NORTH OR EAST"
directions(63) = "NORTH OR WEST"
directions(64) = "NORTH OR SOUTH"
directions(65) = "WEST OR SOUTH"
directions(66) = "EAST OR WEST"
directions(67) = "NORTH, SOUTH, OR EAST"
directions(68) = "NORTH OR SOUTH"
directions(69) = "NORTH OR SOUTH"
directions(70) = "NORTH, EAST, OR WEST"
directions(71) = "WEST"
directions(72) = "EAST"
directions(73) = "NORTH OR SOUTH"
directions(74) = "NORTH OR SOUTH"
directions(75) = "NORTH, SOUTH, OR EAST"
directions(76) = "EAST OR SOUTH"
directions(77) = "NORTH, SOUTH, OR WEST"
directions(78) = "NORTH OR WEST"
directions(79) = "NORTH OR SOUTH"
directions(80) = "EAST OR SOUTH"
directions(81) = "NORTH OR WEST"
directions(82) = "NORTH OR SOUTH"
directions(83) = "EAST, WEST, OR SOUTH"
directions(84) = "WEST"
directions(85) = "EAST OR WEST"
directions(86) = "NORTH, EAST, OR WEST"
directions(87) = "SOUTH"
directions(88) = "EAST OR WEST"
directions(89) = "EAST OR WEST"
directions(90) = "NORTH OR SOUTH"
directions(91) = "EAST OR SOUTH"
directions(92) = "EAST OR WEST"
directions(93) = "NORTH, SOUTH, OR WEST"
directions(94) = "NORTH OR SOUTH"
directions(95) = "EAST OR SOUTH"
directions(96) = "WEST OR SOUTH"
directions(97) = "NORTH OR EAST"
directions(98) = "EAST, WEST, OR SOUTH"
directions(99) = "NORTH OR SOUTH"
directions(100) = "NORTH"
directions(101) = "NORTH OR WEST"
directions(102) = "NORTH, SOUTH, OR EAST"
directions(103) = "SOUTH"
directions(104) = "EAST OR WEST"
directions(105) = "WEST OR SOUTH"
directions(106) = "NORTH OR SOUTH"
directions(107) = "NORTH OR SOUTH"
directions(108) = "NORTH OR WEST"
directions(109) = "EAST OR SOUTH"
directions(110) = "NORTH OR SOUTH"
directions(111) = "NORTH, SOUTH, OR WEST"
directions(112) = "EAST"
directions(113) = "NORTH, SOUTH, OR EAST"
directions(114) = "WEST"
directions(115) = "NORTH, SOUTH, OR WEST"
directions(116) = "EAST"
directions(117) = "NORTH, SOUTH, OR EAST"
directions(118) = "WEST"
directions(119) = "NORTH OR WEST"
directions(120) = "EAST"
directions(121) = "NORTH OR SOUTH"
directions(122) = "NORTH OR SOUTH"
directions(123) = "NORTH, SOUTH, EAST, OR WEST"
directions(124) = "EAST OR SOUTH"
directions(125) = "NORTH OR EAST"
directions(126) = "NORTH OR WEST"
directions(127) = "WEST OR SOUTH"
directions(128) = "NORTH OR SOUTH"
directions(129) = "NORTH OR SOUTH"
directions(130) = "NORTH OR SOUTH"
directions(131) = "NORTH, SOUTH, OR WEST"
directions(132) = "NORTH OR SOUTH"
directions(133) = "NORTH OR WEST"
directions(134) = "EAST OR WEST"
directions(135) = "NORTH OR EAST"
directions(136) = "NORTH OR SOUTH"
directions(137) = "EAST OR SOUTH"
directions(138) = "EAST OR WEST"
Print ""
Print "_______________________________________________________________________________"
Print "|/ \|"
Print "|/Gather here Adventurer and let me tell you the tale of my peoples fate. \|"
Print "|/ \|"
Print "|/As the night is vanquished by the morning rays of the sun's light. You are \|"
Print "|/standing before the stone castle that, in appearance. It was crafted by \|"
Print "|/the hands of the once local village. But over time, the light had faded \|"
Print "|/away into the darkness of the night. The cold hand of death choked the \|"
Print "|/life from this land. A curse had been struck upon this once peaceful place.\|"
Print "|/Now, you must vanquish the Dark Prince Lubok and rid this land of the \|"
Print "|/affliction of Lubok and return this land to the realm of the living. \|"
Print "_____________________________________________________________________________\|"
Do: Loop Until InKey$ <> ""
Do: Loop Until InKey$ <> ""
DOOM = Timer(0.001) + GameTime 'change this to to desied time for the game to run
Do
Cls
Print ""
Print ""
Print " _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ *"
Print " * / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \"
Print " ( Q | U | E )( S | T | | F | O | R | | L )( U | B | O | K ) *"
Print " \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/"
Print " * * * "
Print " * * * "
Print " * * * * "
Print " * * * *"
Print " * * *"
Print " * * *"
Print ""
Print Space$(38);
If InStr(directions(r), "NORTH") Then Print "N" Else Print
Print "*---------------------------------* ";
If InStr(directions(r), "WEST") Then Print "W"; Else Print " ";
Print " + ";
If InStr(directions(r), "EAST") Then Print "E"; Else Print " ";
Print " *------------------------------------*"
Print Space$(38);
If InStr(directions(r), "SOUTH") Then Print "S" Else Print
Print
Print "If you are stuck just type HELP."
Print
GoSub ROOM
GoSub parser
Loop
ROOM:
If r = 1 Then: GoSub r1
If r = 2 Then: GoSub r2
If r = 3 Then: GoSub r3
If r = 4 Then: GoSub r4
If r = 5 Then: GoSub r5
If r = 6 Then: GoSub r6
If r = 7 Then: GoSub r7
If r = 8 Then: GoSub r8
If r = 9 Then: GoSub r9
If r = 10 Then: GoSub r10
If r = 11 Then: GoSub r11
If r = 12 Then: GoSub r12
If r = 13 Then: GoSub r13
If r = 14 Then: GoSub r14
If r = 15 Then: GoSub r15
If r = 16 Then: GoSub r16
If r = 17 Then: GoSub r17
If r = 18 Then: GoSub r18
If r = 19 Then: GoSub r19
If r = 20 Then: GoSub r20
If r = 21 Then: GoSub r21
If r = 22 Then: GoSub r22
If r = 23 Then: GoSub r23
If r = 24 Then: GoSub r24
If r = 25 Then: GoSub r25
If r = 26 Then: GoSub r26
If r = 27 Then: GoSub r27
If r = 28 Then: GoSub r28
If r = 29 Then: GoSub r29
If r = 30 Then: GoSub r30
If r = 31 Then: GoSub r31
If r = 32 Then: GoSub r32
If r = 33 Then: GoSub r33
If r = 34 Then: GoSub r34
If r = 35 Then: GoSub r35
If r = 36 Then: GoSub r36
If r = 37 Then: GoSub r37
If r = 38 Then: GoSub r38
If r = 39 Then: GoSub r39
If r = 40 Then: GoSub r40
If r = 41 Then: GoSub r41
If r = 42 Then: GoSub r42
If r = 43 Then: GoSub r43
If r = 44 Then: GoSub r44
If r = 45 Then: GoSub r45
If r = 46 Then: GoSub r46
If r = 47 Then: GoSub r47
If r = 48 Then: GoSub r48
If r = 49 Then: GoSub r49
If r = 50 Then: GoSub r50
If r = 51 Then: GoSub r51
If r = 52 Then: GoSub r52
If r = 53 Then: GoSub r53
If r = 54 Then: GoSub r54
If r = 55 Then: GoSub r55
If r = 56 Then: GoSub r56
If r = 57 Then: GoSub r57
If r = 58 Then: GoSub r58
If r = 59 Then: GoSub r59
If r = 60 Then: GoSub r60
If r = 61 Then: GoSub r61
If r = 62 Then: GoSub r62
If r = 63 Then: GoSub r63
If r = 64 Then: GoSub r64
If r = 65 Then: GoSub r65
If r = 66 Then: GoSub r66
If r = 67 Then: GoSub r67
If r = 68 Then: GoSub r68
If r = 69 Then: GoSub r69
If r = 70 Then: GoSub r70
If r = 71 Then: GoSub r71
If r = 72 Then: GoSub r72
If r = 73 Then: GoSub r73
If r = 74 Then: GoSub r74
If r = 75 Then: GoSub r75
If r = 76 Then: GoSub r76
If r = 77 Then: GoSub r77
If r = 78 Then: GoSub r78
If r = 79 Then: GoSub r79
If r = 80 Then: GoSub r80
If r = 81 Then: GoSub r81
If r = 82 Then: GoSub r82
If r = 83 Then: GoSub r83
If r = 84 Then: GoSub r84
If r = 85 Then: GoSub r85
If r = 86 Then: GoSub r86
If r = 87 Then: GoSub r87
If r = 88 Then: GoSub r88
If r = 89 Then: GoSub r89
If r = 90 Then: GoSub r90
If r = 91 Then: GoSub r91
If r = 92 Then: GoSub r92
If r = 93 Then: GoSub r93
If r = 94 Then: GoSub r94
If r = 95 Then: GoSub r95
If r = 96 Then: GoSub r96
If r = 97 Then: GoSub r97
If r = 98 Then: GoSub r98
If r = 99 Then: GoSub r99
If r = 100 Then: GoSub r100
If r = 101 Then: GoSub r101
If r = 102 Then: GoSub r102
If r = 103 Then: GoSub r103
If r = 104 Then: GoSub r104
If r = 105 Then: GoSub r105
If r = 106 Then: GoSub r106
If r = 107 Then: GoSub r107
If r = 108 Then: GoSub r108
If r = 109 Then: GoSub r109
If r = 110 Then: GoSub r110
If r = 111 Then: GoSub r111
If r = 112 Then: GoSub r112
If r = 113 Then: GoSub r113
If r = 114 Then: GoSub r114
If r = 115 Then: GoSub r115
If r = 116 Then: GoSub r116
If r = 117 Then: GoSub r117
If r = 118 Then: GoSub r118
If r = 119 Then: GoSub r119
If r = 120 Then: GoSub r120
If r = 121 Then: GoSub r121
If r = 122 Then: GoSub r122
If r = 123 Then: GoSub r123
If r = 124 Then: GoSub r124
If r = 125 Then: GoSub r125
If r = 126 Then: GoSub r126
If r = 127 Then: GoSub r127
If r = 128 Then: GoSub r128
If r = 129 Then: GoSub r129
If r = 130 Then: GoSub r130
If r = 131 Then: GoSub r131
If r = 132 Then: GoSub r132
If r = 133 Then: GoSub r133
If r = 134 Then: GoSub r134
If r = 135 Then: GoSub r135
If r = 136 Then: GoSub r136
If r = 137 Then: GoSub r137
If r = 138 Then: GoSub r138
Return
parser:
Print "> ";
cmd$ = GrabInput
cmd$ = LTrim$(RTrim$(UCase$(cmd$)))
If cmd$ = "END" Or cmd$ = "QUIT" Or cmd$ = "EXIT" Or cmd$ = "Q" Then
End
End If
If cmd$ = "HELP" Or cmd$ = "H" Or cmd$ = "?" Then
Cls
Print "HERE ARE SOME BASIC COMMANDS THAT CAN BE USED IN THE GAME..."
Print
Print "NORTH, EAST ,SOUTH, AND WEST - MOVE TO AN AVAILABLE LOCATION"
Print "EXAMINE (OBJECT) - EXAMINE AN OBJECT"
Print "USE (OBJECT) - USE AN OBJECT"
Print "TAKE (OBJECT) - TAKE OR MOVE AN OBJECT"
Print "TALK - TALK TO SOMEONE"
Print "INVENTORY - VIEW YOUR INVENTORY"
Print "HELP - VIEW THIS SCREEN"
Print "END - END GAME"
Print
Print "PRESS ANY KEY...": Sleep
Do: Loop Until InKey$ = ""
Do: Loop Until InKey$ <> ""
End If
If cmd$ = "INVENTORY" Or cmd$ = "INV" Or cmd$ = "ITEMS" Or cmd$ = "I" Then
Cls
Print "INVENTORY..."
Print
If gotlantern = 1 Then: Print "Vanquish the darkness with this old lanter."
If gotdagger = 1 Then: Print "An old weapon passed on from generation to generation."
If gotshpereoflife = 1 Then: Print "A glowing blue orb that gives you a warm sense of protection."
If gotshpereofdeath = 1 Then: Print "A glowing black orb that fills you with dread with every glance."
If gotgold = 1 Then: Print "The last earthly remains of those foolish to travel alone."
If gotthestaffoflubok = 1 Then: Print "The soruce of Lubok's power."
If gotshieldofmari = 1 Then: Print "An old brass shield crafted by the hands of long dead craftsmen."
Print
Print "PRESS ANY KEY..."
Do: Loop Until InKey$ = ""
Do: Loop Until InKey$ <> ""
End If
If cmd$ = "GO NORTH" Or cmd$ = "NORTH" Or cmd$ = "N" Then
If r = 1 Then: r = 2: GoTo moved
If r = 4 Then: r = 5: GoTo moved
If r = 5 Then: r = 6: GoTo moved
If r = 6 Then: r = 7: GoTo moved
If r = 7 Then: r = 8: GoTo moved
If r = 8 Then: r = 9: GoTo moved
If r = 9 Then: r = 10: GoTo moved
If r = 20 Then: r = 19: GoTo moved
If r = 19 Then: r = 18: GoTo moved
If r = 18 Then: r = 17: GoTo moved
If r = 17 Then: r = 16: GoTo moved
If r = 16 Then: r = 15: GoTo moved
If r = 15 Then: r = 14: GoTo moved
If r = 12 Then: r = 22: GoTo moved
If r = 22 Then: r = 23: GoTo moved
If r = 23 Then: r = 24: GoTo moved
If r = 24 Then: r = 25: GoTo moved
If r = 25 Then: r = 26: GoTo moved
If r = 27 Then: r = 28: GoTo moved
If r = 28 Then: r = 29: GoTo moved
If r = 33 Then: r = 32: GoTo moved
If r = 32 Then: r = 31: GoTo moved
If r = 46 Then: r = 48: GoTo moved
If r = 52 Then: r = 51: GoTo moved
If r = 51 Then: r = 50: GoTo moved
If r = 55 Then: r = 54: GoTo moved
If r = 54 Then: r = 53: GoTo moved
If r = 58 Then: r = 57: GoTo moved
If r = 57 Then: r = 56: GoTo moved
If r = 62 Then: r = 61: GoTo moved
If r = 61 Then: r = 60: GoTo moved
If r = 63 Then: r = 64: GoTo moved
If r = 64 Then: r = 65: GoTo moved
If r = 70 Then: r = 69: GoTo moved
If r = 69 Then: r = 68: GoTo moved
If r = 68 Then: r = 67: GoTo moved
If r = 67 Then: r = 73: GoTo moved
If r = 73 Then: r = 74: GoTo moved
If r = 74 Then: r = 75: GoTo moved
If r = 75 Then: r = 76: GoTo moved
If r = 78 Then: r = 77: GoTo moved
If r = 77 Then: r = 79: GoTo moved
If r = 79 Then: r = 80: GoTo moved
If r = 81 Then: r = 82: GoTo moved
If r = 82 Then: r = 83: GoTo moved
If r = 86 Then: r = 87: GoTo moved
If r = 44 Then: r = 90: GoTo moved
If r = 90 Then: r = 91: GoTo moved
If r = 125 Then: r = 124: GoTo moved
If r = 126 Then: r = 123: GoTo moved
If r = 123 Then: r = 122: GoTo moved
If r = 122 Then: r = 121: GoTo moved
If r = 121 Then: r = 93: GoTo moved
If r = 93 Then: r = 94: GoTo moved
If r = 94 Then: r = 95: GoTo moved
If r = 97 Then: r = 96: GoTo moved
If r = 100 Then: r = 99: GoTo moved
If r = 99 Then: r = 98: GoTo moved
If r = 101 Then: r = 102: GoTo moved
If r = 102 Then: r = 103: GoTo moved
If r = 108 Then: r = 107: GoTo moved
If r = 107 Then: r = 106: GoTo moved
If r = 106 Then: r = 105: GoTo moved
If r = 119 Then: r = 117: GoTo moved
If r = 117 Then: r = 115: GoTo moved
If r = 115 Then: r = 113: GoTo moved
If r = 113 Then: r = 111: GoTo moved
If r = 111 Then: r = 110: GoTo moved
If r = 110 Then: r = 109: GoTo moved
If r = 133 Then: r = 132: GoTo moved
If r = 132 Then: r = 131: GoTo moved
If r = 131 Then: r = 130: GoTo moved
If r = 130 Then: r = 129: GoTo moved
If r = 129 Then: r = 128: GoTo moved
If r = 128 Then: r = 127: GoTo moved
If r = 134 Then: r = 136: GoTo moved
If r = 136 Then: r = 137: GoTo moved
End If
If cmd$ = "GO EAST" Or cmd$ = "EAST" Or cmd$ = "E" Then
If r = 4 Then: r = 3: GoTo moved
If r = 3 Then: r = 2: GoTo moved
If r = 2 Then: r = 21: GoTo moved
If r = 21 Then: r = 20: GoTo moved
If r = 10 Then: r = 11: GoTo moved
If r = 11 Then: r = 12: GoTo moved
If r = 12 Then: r = 13: GoTo moved
If r = 13 Then: r = 14: GoTo moved
If r = 39 Then: r = 38: GoTo moved
If r = 38 Then: r = 37: GoTo moved
If r = 37 Then: r = 24: GoTo moved
If r = 24 Then: r = 34: GoTo moved
If r = 34 Then: r = 35: GoTo moved
If r = 35 Then: r = 36: GoTo moved
If r = 27 Then: r = 26: GoTo moved
If r = 26 Then: r = 33: GoTo moved
If r = 29 Then: r = 30: GoTo moved
If r = 30 Then: r = 31: GoTo moved
If r = 46 Then: r = 40: GoTo moved
If r = 40 Then: r = 8: GoTo moved
If r = 47 Then: r = 42: GoTo moved
If r = 42 Then: r = 6: GoTo moved
If r = 18 Then: r = 43: GoTo moved
If r = 43 Then: r = 45: GoTo moved
If r = 16 Then: r = 41: GoTo moved
If r = 41 Then: r = 44: GoTo moved
If r = 50 Then: r = 49: GoTo moved
If r = 49 Then: r = 48: GoTo moved
If r = 53 Then: r = 52: GoTo moved
If r = 56 Then: r = 55: GoTo moved
If r = 67 Then: r = 66: GoTo moved
If r = 66 Then: r = 57: GoTo moved
If r = 58 Then: r = 59: GoTo moved
If r = 59 Then: r = 60: GoTo moved
If r = 60 Then: r = 65: GoTo moved
If r = 62 Then: r = 63: GoTo moved
If r = 72 Then: r = 70: GoTo moved
If r = 70 Then: r = 71: GoTo moved
If r = 75 Then: r = 78: GoTo moved
If r = 76 Then: r = 77: GoTo moved
If r = 80 Then: r = 81: GoTo moved
If r = 89 Then: r = 88: GoTo moved
If r = 88 Then: r = 86: GoTo moved
If r = 86 Then: r = 85: GoTo moved
If r = 85 Then: r = 83: GoTo moved
If r = 83 Then: r = 84: GoTo moved
If r = 91 Then: r = 92: GoTo moved
If r = 92 Then: r = 93: GoTo moved
If r = 95 Then: r = 96: GoTo moved
If r = 124 Then: r = 123: GoTo moved
If r = 123 Then: r = 127: GoTo moved
If r = 125 Then: r = 126: GoTo moved
If r = 137 Then: r = 138: GoTo moved
If r = 138 Then: r = 131: GoTo moved
If r = 135 Then: r = 134: GoTo moved
If r = 134 Then: r = 133: GoTo moved
If r = 97 Then: r = 98: GoTo moved
If r = 98 Then: r = 101: GoTo moved
If r = 102 Then: r = 104: GoTo moved
If r = 104 Then: r = 105: GoTo moved
If r = 109 Then: r = 108: GoTo moved
If r = 112 Then: r = 111: GoTo moved
If r = 113 Then: r = 114: GoTo moved
If r = 116 Then: r = 115: GoTo moved
If r = 117 Then: r = 118: GoTo moved
If r = 120 Then: r = 119: GoTo moved
End If
If cmd$ = "GO SOUTH" Or cmd$ = "SOUTH" Or cmd$ = "S" Then
If r = 2 Then: r = 1: GoTo moved
If r = 10 Then: r = 9: GoTo moved
If r = 9 Then: r = 8: GoTo moved
If r = 8 Then: r = 7: GoTo moved
If r = 7 Then: r = 6: GoTo moved
If r = 6 Then: r = 5: GoTo moved
If r = 5 Then: r = 4: GoTo moved
If r = 14 Then: r = 15: GoTo moved
If r = 15 Then: r = 16: GoTo moved
If r = 16 Then: r = 17: GoTo moved
If r = 17 Then: r = 18: GoTo moved
If r = 18 Then: r = 19: GoTo moved
If r = 19 Then: r = 20: GoTo moved
If r = 26 Then: r = 25: GoTo moved
If r = 25 Then: r = 24: GoTo moved
If r = 24 Then: r = 23: GoTo moved
If r = 23 Then: r = 22: GoTo moved
If r = 22 Then: r = 12: GoTo moved
If r = 29 Then: r = 28: GoTo moved
If r = 28 Then: r = 27: GoTo moved
If r = 31 Then: r = 32: GoTo moved
If r = 32 Then: r = 33: GoTo moved
If r = 48 Then: r = 46: GoTo moved
If r = 50 Then: r = 51: GoTo moved
If r = 51 Then: r = 52: GoTo moved
If r = 53 Then: r = 54: GoTo moved
If r = 54 Then: r = 55: GoTo moved
If r = 56 Then: r = 57: GoTo moved
If r = 57 Then: r = 58: GoTo moved
If r = 60 Then: r = 61: GoTo moved
If r = 61 Then: r = 62: GoTo moved
If r = 65 Then: r = 64: GoTo moved
If r = 64 Then: r = 63: GoTo moved
If r = 76 Then: r = 75: GoTo moved
If r = 75 Then: r = 74: GoTo moved
If r = 74 Then: r = 73: GoTo moved
If r = 73 Then: r = 67: GoTo moved
If r = 67 Then: r = 68: GoTo moved
If r = 68 Then: r = 69: GoTo moved
If r = 69 Then: r = 70: GoTo moved
If r = 80 Then: r = 79: GoTo moved
If r = 79 Then: r = 77: GoTo moved
If r = 77 Then: r = 78: GoTo moved
If r = 83 Then: r = 82: GoTo moved
If r = 82 Then: r = 81: GoTo moved
If r = 87 Then: r = 86: GoTo moved
If r = 91 Then: r = 90: GoTo moved
If r = 90 Then: r = 44: GoTo moved
If r = 95 Then: r = 94: GoTo moved
If r = 94 Then: r = 93: GoTo moved
If r = 93 Then: r = 121: GoTo moved
If r = 121 Then: r = 122: GoTo moved
If r = 122 Then: r = 123: GoTo moved
If r = 123 Then: r = 126: GoTo moved
If r = 124 Then: r = 125: GoTo moved
If r = 127 Then: r = 128: GoTo moved
If r = 128 Then: r = 129: GoTo moved
If r = 129 Then: r = 130: GoTo moved
If r = 130 Then: r = 131: GoTo moved
If r = 131 Then: r = 132: GoTo moved
If r = 132 Then: r = 133: GoTo moved
If r = 137 Then: r = 136: GoTo moved
If r = 136 Then: r = 134: GoTo moved
If r = 96 Then: r = 97: GoTo moved
If r = 98 Then: r = 99: GoTo moved
If r = 99 Then: r = 100: GoTo moved
If r = 103 Then: r = 102: GoTo moved
If r = 102 Then: r = 101: GoTo moved
If r = 105 Then: r = 106: GoTo moved
If r = 106 Then: r = 107: GoTo moved
If r = 107 Then: r = 108: GoTo moved
If r = 109 Then: r = 110: GoTo moved
If r = 110 Then: r = 111: GoTo moved
If r = 111 Then: r = 113: GoTo moved
If r = 113 Then: r = 115: GoTo moved
If r = 115 Then: r = 117: GoTo moved
If r = 117 Then: r = 119: GoTo moved
End If
If cmd$ = "GO WEST" Or cmd$ = "WEST" Or cmd$ = "W" Then
If r = 20 Then: r = 21: GoTo moved
If r = 21 Then: r = 2: GoTo moved
If r = 2 Then: r = 3: GoTo moved
If r = 3 Then: r = 4: GoTo moved
If r = 14 Then: r = 13: GoTo moved
If r = 13 Then: r = 12: GoTo moved
If r = 12 Then: r = 11: GoTo moved
If r = 11 Then: r = 10: GoTo moved
If r = 36 Then: r = 35: GoTo moved
If r = 35 Then: r = 34: GoTo moved
If r = 34 Then: r = 24: GoTo moved
If r = 24 Then: r = 37: GoTo moved
If r = 37 Then: r = 38: GoTo moved
If r = 38 Then: r = 39: GoTo moved
If r = 33 Then: r = 26: GoTo moved
If r = 26 Then: r = 27: GoTo moved
If r = 31 Then: r = 30: GoTo moved
If r = 30 Then: r = 29: GoTo moved
If r = 8 Then: r = 40: GoTo moved
If r = 40 Then: r = 46: GoTo moved
If r = 48 Then: r = 49: GoTo moved
If r = 49 Then: r = 50: GoTo moved
If r = 52 Then: r = 53: GoTo moved
If r = 55 Then: r = 56: GoTo moved
If r = 57 Then: r = 66: GoTo moved
If r = 66 Then: r = 67: GoTo moved
If r = 65 Then: r = 60: GoTo moved
If r = 60 Then: r = 59: GoTo moved
If r = 59 Then: r = 58: GoTo moved
If r = 63 Then: r = 62: GoTo moved
If r = 71 Then: r = 70: GoTo moved
If r = 70 Then: r = 72: GoTo moved
If r = 78 Then: r = 75: GoTo moved
If r = 77 Then: r = 76: GoTo moved
If r = 81 Then: r = 80: GoTo moved
If r = 84 Then: r = 83: GoTo moved
If r = 83 Then: r = 85: GoTo moved
If r = 85 Then: r = 86: GoTo moved
If r = 86 Then: r = 88: GoTo moved
If r = 88 Then: r = 89: GoTo moved
If r = 44 Then: r = 41: GoTo moved
If r = 41 Then: r = 16: GoTo moved
If r = 93 Then: r = 92: GoTo moved
If r = 92 Then: r = 91: GoTo moved
If r = 96 Then: r = 95: GoTo moved
If r = 45 Then: r = 43: GoTo moved
If r = 43 Then: r = 18: GoTo moved
If r = 6 Then: r = 42: GoTo moved
If r = 42 Then: r = 47: GoTo moved
If r = 127 Then: r = 123: GoTo moved
If r = 123 Then: r = 124: GoTo moved
If r = 126 Then: r = 125: GoTo moved
If r = 131 Then: r = 138: GoTo moved
If r = 138 Then: r = 137: GoTo moved
If r = 133 Then: r = 134: GoTo moved
If r = 134 Then: r = 135: GoTo moved
If r = 101 Then: r = 98: GoTo moved
If r = 98 Then: r = 97: GoTo moved
If r = 105 Then: r = 104: GoTo moved
If r = 104 Then: r = 102: GoTo moved
If r = 108 Then: r = 109: GoTo moved
If r = 111 Then: r = 112: GoTo moved
If r = 114 Then: r = 113: GoTo moved
If r = 115 Then: r = 116: GoTo moved
If r = 118 Then: r = 117: GoTo moved
If r = 119 Then: r = 120: GoTo moved
End If
'''''''''''''''''''''''''''''''''''''''''''''''''''ITEMS
If (cmd$ = "EXAMINE LANTERN") And gotlantern = 1 Then
Cls
Print "An old rusted lantern that belonged to your father. He used it to"
Print "light the path around the family home and when he worked at night. The"
Print "minor dents and scratches are met with the hand of time that placed a"
Print "thin layer of rust upon it."
Do: Loop Until InKey$ = ""
Do: Loop Until InKey$ <> ""
End If
If (cmd$ = "EXAMINE DAGGER") And gotdagger = 1 Then
Cls
Print "Your trusty side blade that will vanquish all foes to the other"
Print "realms where they will forever regret."
Do: Loop Until InKey$ = ""
Do: Loop Until InKey$ <> ""
End If
If (cmd$ = "EXAMINE SHPERE OF LIFE") And gotshpereoflife = 1 Then
Cls
Print "An enchanted sphere crafted by the hands of the ancients who"
Print "decided to give the ability of creation with much ease. If used"
Print "correctly, it is believed that it could bring about a new era of"
Print "prosperity."
Do: Loop Until InKey$ = ""
Do: Loop Until InKey$ <> ""
End If
If (cmd$ = "EXAMINE SPHERE OF DEATH") And gotshpereofdeath = 1 Then
Cls
Print "Its power will flow through whoever holds it. Giving the ability"
Print "to end the lives of those foolish enough to stand before it. It"
Print "drains the energy of those who are at eye's distance. Or so the"
Print "legend goes."
Do: Loop Until InKey$ = ""
Do: Loop Until InKey$ <> ""
End If
If (cmd$ = "EXAMINE GOLD") And gotgold = 1 Then
Cls
Print "What is used to purchase such luxuries. To bring about a good life"
Print "for those who have obtained much of it. This journey has no use for"
Print "such things, but no one knows just what tomorrow will bring."
Do: Loop Until InKey$ <> ""
End If
If (cmd$ = "EXAMINE THE STAFF OF LUBOK") And gotthestaffoflubok = 1 Then
Cls
Print "It is believed by those who dared to stand up to the might of Lubok."
Print "That his staff was the source of his power. It was rumored that"
Print "without the power that it gave, the Prince would die without it. But"
Print "it isn't known for sure just how true this is."
Do: Loop Until InKey$ = ""
Do: Loop Until InKey$ <> ""
End If
If (cmd$ = "EXAMINE SHEILD OF MARI") And gotshieldofmari = 1 Then
Cls
Print "This ancient artifact provides excellent protection for those who"
Print "wish to harm whoever carries it. Crafted by the ancients who wanted"
Print "to give one last splinter of hope to those in need."
Do: Loop Until InKey$ = ""
Do: Loop Until InKey$ <> ""
End If
''''''''''''''''''''''''''''''''''''''''''NPC'S
If (cmd$ = "EXAMINE LUBOK") And r = 138 Then
Cls
Print "There he stands before his royal throne. Dressed in all black with"
Print "his skin pale as the moonlight. He greets you with a smile."
Do: Loop Until InKey$ = ""
Do: Loop Until InKey$ <> ""
End If
If (cmd$ = "TALK TO LUBOK") And r = 138 Then
Cls
GoTo win:
Do: Loop Until InKey$ = ""
Do: Loop Until InKey$ <> ""
End If
'''''''''''''''''''''''''''''''''''''''''''
If (cmd$ = "EXAMINE SKELETON") And r = 19 Then
Cls
Print "The remains of a lost adventurer who took the wrong turn. The flesh"
Print "had been picked from the bones."
Do: Loop Until InKey$ = ""
Do: Loop Until InKey$ <> ""
End If
If (cmd$ = "TALK TO SKELETON") And r = 19 Then
Cls
Print "Nothing happened."
Do: Loop Until InKey$ = ""
Do: Loop Until InKey$ <> ""
End If
'''''''''''''''''''''''''''''''''''''''''''
If (cmd$ = "EXAMINE SKELETON") And r = 27 Then
Cls
Print "The remains of this poor soul who's head had been removed from the"
Print "body. Just who would do such a thing?"
Do: Loop Until InKey$ = ""
Do: Loop Until InKey$ <> ""
End If
If (cmd$ = "TALK TO SKELETON") And r = 27 Then
Cls
Print "All you recieve is silence."
Do: Loop Until InKey$ = ""
Do: Loop Until InKey$ <> ""
End If
'''''''''''''''''''''''''''''''''''''''''''
If (cmd$ = "EXAMINE SKELETON") And r = 51 Then
Cls
Print "The mangled remains of an adventurer who met the cold fate of death."
Print "The floor under and around the body were scratched with gashes."
Do: Loop Until InKey$ = ""
Do: Loop Until InKey$ <> ""
End If
If (cmd$ = "TALK TO SKELETON") And r = 51 Then
Cls
Print "The only response you recieve is silence."
Do: Loop Until InKey$ = ""
Do: Loop Until InKey$ <> ""
End If
'''''''''''''''''''''''''''''''''''''''''''
If (cmd$ = "EXAMINE SKELETON") And r = 78 Then
Cls
Print "A pile of bones put into a neat little pile. Everything about this"
Print "makes you sick to your stomach."
Do: Loop Until InKey$ = ""
Do: Loop Until InKey$ <> ""
End If
If (cmd$ = "TALK TO SKELETON") And r = 78 Then
Cls
Print "From out in the distance you can hear the faint cries of someone or"
Print "something."
Do: Loop Until InKey$ = ""
Do: Loop Until InKey$ <> ""
End If
''''''''''''''''''''''''''''''''''''''''''
If (cmd$ = "EXAMINE SKELETON") And r = 100 Then
Cls
Print "The bones of this poor stranger were marked with the teeth of a large"
Print "animal. Possibly they crossed pathes with such a monster that still lurks"
Print "about this place?"
Do: Loop Until InKey$ = ""
Do: Loop Until InKey$ <> ""
End If
If (cmd$ = "TALK TO SKELETON") And r = 100 Then
Cls
Print "Ever been to Mardi Gras? If not, you will be. But not in the sense"
Print "that your thinking of. But that's all I'm going to say on that matter."
Do: Loop Until InKey$ = ""
Do: Loop Until InKey$ <> ""
End If
'''''''''''''''''''''''''''''''''''''''''''
If (cmd$ = "EXAMINE BAT") And r = 8 Then
Cls
Print "The lone flying creature of the night flies away into the shadows."
Do: Loop Until InKey$ = ""
Do: Loop Until InKey$ <> ""
End If
If (cmd$ = "TALK TO BAT") And r = 8 Then
Cls
Print "It seems to ignore you."
Do: Loop Until InKey$ = ""
Do: Loop Until InKey$ <> ""
End If
'''''''''''''''''''''''''''''''''''''''''''
If (cmd$ = "EXAMINE BAT") And r = 41 Then
Cls
Print "It hangs from the corner of the ceiling. It's glowing red eyes watch"
Print "your every move."
Do: Loop Until InKey$ = ""
Do: Loop Until InKey$ <> ""
End If
If (cmd$ = "TALK TO BAT") And r = 41 Then
Cls
Print "It doesn't understand a word you just said."
Do: Loop Until InKey$ = ""
Do: Loop Until InKey$ <> ""
End If
'''''''''''''''''''''''''''''''''''''''''''
If (cmd$ = "EXAMINE BAT") And r = 67 Then
Cls
Print "The glow of it's eyes fills the room with a sense of fear and dread."
Do: Loop Until InKey$ = ""
Do: Loop Until InKey$ <> ""
End If
If (cmd$ = "TALK TO BAT") And r = 67 Then
Cls
Print "All that could be heard is the silence around you."
Do: Loop Until InKey$ = ""
Do: Loop Until InKey$ <> ""
End If
'''''''''''''''''''''''''''''''''''''''''''
If (cmd$ = "EXAMINE BAT") And r = 80 Then
Cls
Print "Just above your head you catch a glimpse of the diseased creature"
Print "flying about the place."
Do: Loop Until InKey$ = ""
Do: Loop Until InKey$ <> ""
End If
If (cmd$ = "TALK TO BAT") And r = 80 Then
Cls
Print "It ignores whatever you said and continues in search of a meal."
Do: Loop Until InKey$ = ""
Do: Loop Until InKey$ <> ""
End If
''''''''''''''''''''''''''''''''''''''''''
If (cmd$ = "EXAMINE BAT") And r = 116 Then
Cls
Print "All you can see are the glowing red eyes from out in the darkness. It"
Print "awaits a chance to feast upon your flesh."
Do: Loop Until InKey$ = ""
Do: Loop Until InKey$ <> ""
End If
If (cmd$ = "TALK TO BAT") And r = 116 Then
Cls
Print "Silences, is all you recieve."
Do: Loop Until InKey$ = ""
Do: Loop Until InKey$ <> ""
End If
'''''''''''''''''''''''''''''''''''''''''''
If (cmd$ = "EXAMINE GHOST") And r = 13 Then
Cls
Print "It's ghastly being is wearing blood stained clothes from a bygone era."
Do: Loop Until InKey$ = ""
Do: Loop Until InKey$ <> ""
End If
If (cmd$ = "TALK TO GHOST") And r = 13 Then
Cls
Print "It lets out a gasp and tells you that the Sheild has such a great"
Print "ability that it will bring protection to those who wield it."
Do: Loop Until InKey$ = ""
Do: Loop Until InKey$ <> ""
End If
'''''''''''''''''''''''''''''''''''''''''''
If (cmd$ = "EXAMINE GHOST") And r = 33 Then
Cls
Print "It's that of a small child. Wearing the clothes of an upper class member"
Print "of society. An expression of pain engraved upon her face."
Do: Loop Until InKey$ = ""
Do: Loop Until InKey$ <> ""
End If
If (cmd$ = "TALK TO GHOST") And r = 33 Then
Cls
Print "The Dark Prince Lubok, is a powerful wizard. That you must defeat him"
Print "before it's too late."
Do: Loop Until InKey$ = ""
Do: Loop Until InKey$ <> ""
End If
'''''''''''''''''''''''''''''''''''''''''''
If (cmd$ = "EXAMINE GHOST") And r = 90 Then
Cls
Print "An old man greets you with a friendly smile. His flesh is marked by"
Print "several deep scars."
Do: Loop Until InKey$ = ""
Do: Loop Until InKey$ <> ""
End If
If (cmd$ = "TALK TO GHOST") And r = 90 Then
Cls
Print "If you wish to defeat the evil of the land all must be used."
Do: Loop Until InKey$ = ""
Do: Loop Until InKey$ <> ""
End If
'''''''''''''''''''''''''''''''''''''''''''
If (cmd$ = "EXAMINE GHOST") And r = 110 Then
Cls
Print "The faint image of a young women adorned with a wedding dress stands"
Print "before you. In her hands were a beautiful bouquet of flowers."
Do: Loop Until InKey$ = ""
Do: Loop Until InKey$ <> ""
End If
If (cmd$ = "TALK TO GHOST") And r = 110 Then
Cls
Print "It's my special day. I'm going to be given away to my prince."
Do: Loop Until InKey$ = ""
Do: Loop Until InKey$ <> ""
End If
''''''''''''''''''''''''''''''''''''''''''
If (cmd$ = "EXAMINE GHOST") And r = 121 Then
Cls
Print "A lost soul who sent himself out into this hellish world. A puzzled"
Print "look on his face spoke volumes."
Do: Loop Until InKey$ = ""
Do: Loop Until InKey$ <> ""
End If
If (cmd$ = "TALK TO GHOST") And r = 121 Then
Cls
Print "Without the staff Lubok will fall. The history of this castle are"
Print "hidden and must be found."
Do: Loop Until InKey$ = ""
Do: Loop Until InKey$ <> ""
End If
'''''''''''''''''''''''''''''''''''''''''''
If (cmd$ = "EXAMINE HELL HOUND") And r = 1 Then
Cls
Print "The mangled flesh of this heelish beast that is no longer within"
Print "this realm of existence. Stands before you at the height of a short"
Print "soul. It's eyes glow yellow as if they were cut from gemstone."
Do: Loop Until InKey$ = ""
Do: Loop Until InKey$ <> ""
End If
If (cmd$ = "TALK TO HELL HOUND") And r = 1 Then
Cls
Print "It shows its teeth as it reveals it's off putting jaw."
Do: Loop Until InKey$ = ""
Do: Loop Until InKey$ <> ""
End If
'''''''''''''''''''''''''''''''''''''''''''
If (cmd$ = "EXAMINE HELL HOUND") And r = 137 Then
Cls
Print "The twisted frame of such an unholy being existing in this very"
Print "world. It's eye cut into your very soul and while it breathes quite"