home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
8bitfiles.net/archives
/
archives.tar
/
archives
/
genie-commodore-file-library
/
C64Software
/
SPIRIT-ADVISOR
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2019-04-13
|
11KB
|
303 lines
0 REM FROM Q-LINK DISK # 92
10 PRINT"[147][142][152]":V=53248:S=54272:POKE53281,15:POKE53280,15:SC=1024:RN=RND(-TI)
15 X=RND(-TI):DIMA$(50):DIMB$(50):DIMC$(50):DIMD$(50):DIME$(50):DIMF$(50)
20 DIMG$(50):DIMH$(50):DIMQ1$(10)
25 DIMAA$(20):DIMBB$(20):DIMCC$(20):DIMDD$(20):DIMEE$(20):DIMFF$(20):DIMGG$(20)
30 DIMI$(20)
35 FORJ=0TO24:POKES+J,0:NEXT:POKES+24,15
40 GOSUB 995:QM=170
45 FORJ=0TO15:READA$(J):NEXT
50 FORJ=1TO15:READB$(J):NEXT
55 FORJ=1TO15:READC$(J):NEXT
60 FORJ=1TO15:READD$(J):NEXT
65 FORJ=1TO10:READE$(J):NEXT
70 FORJ=1TO15:READF$(J):NEXT
75 FORJ=1TO15:READG$(J):NEXT
80 FORJ=1TO15:READH$(J):NEXT
85 FORJ=1TO15:READI$(J):NEXT
90 PRINT"[154]ASK ME SENTENCES BEGINNING WITH"
95 PRINT"WHAT,WHERE,HOW,WHY,WHO,IS,DOES":PRINT"WILL,SHALL,ARE,DO,WHEN,";
100 PRINT"HOW MANY":PRINT"I WILL TRY TO ANSWER YOU, BUT"
105 PRINT"PLEASE UNDERSTAND IF I SEEM FLIP":PRINT" I AM NEW AT THIS AND"
110 PRINT"HAVE A FEW THINGS TO LEARN YET"
115 INPUT"[150]YOUR NAME";NM$:PRINT"[147][152]"
120 Q=0:QQ=0:QR=0:X=X+1:QX=0
125 IFX>9THENX=0
130 Q3$= Q$:PRINT
135 FOR T=1TO3000:NEXT
140 PRINT"[147] WHAT,WHERE,HOW,WHY,WHO,IS,DOES"
145 PRINT" WILL,SHALL,ARE,DO,WHEN,HOW MANY
148 [153]" PRESS <POKE_> TO END SESSION.
150 PRINT"ASK-";
153 OPEN1,0:INPUT#1,Q$:PRINT:CLOSE1:PRINT"[147][152]":Q1$(X)=Q$
154 IFQ$="_"THENPOKE53281,6:POKE53280,14:PRINT"[147][154]":FORD=1TO2E3:NEXT:POKE53269,0:END
155 CO=RND(1)*11:POKE1560,108:POKE1562,108:POKES+1560,CO:POKES+1562,CO
160 IFQ$=Q3$THENFORT=1TO999:NEXT:PRINT"BUT I JUST ANSWERED THAT":Q3$="":GOTO135
165 IFR>8THENGOSUB1210
170 L=LEN(Q$):XQ=XQ+1:GOSUB 835:GOSUB 695
175 IFLEFT$(Q$,6)="WHERE "THEN Q=1
180 IFLEFT$(Q$,5)="WHEN "THEN Q=2
185 IFLEFT$(Q$,4)="WHY "THEN Q=3
190 IFLEFT$(Q$,5)="WHAT "THEN Q=4
195 IFLEFT$(Q$,4)="HOW "THEN Q=5
200 IFLEFT$(Q$,3)="WHO"THEN Q=6
205 IFLEFT$(Q$,5)="WILL "THEN Q=7
210 IFLEFT$(Q$,6)="SHALL "THEN Q=7
215 IFLEFT$(Q$,3)="DO "THEN Q=8
220 IFLEFT$(Q$,5)="DOES "THEN Q=8
225 IFLEFT$(Q$,3)="IS "THEN Q=9
230 IFLEFT$(Q$,4)="ARE "THEN Q=9
235 GOSUB 895:IFYS>0THENYS=0:GOTO120
240 IFQ<>0THEN260
245 IFRND(1)<=.3THENPRINT"THAT DOES NOT COMPUTE!!":GOTO120
250 IFRND(1)>=.6THENPRINT"THAT'S CLEAR AS MUD, WHATCHA MEAN!!":GOTO120
255 PRINT"I DO NOT UNDERSTAND YOU":GOTO120
260 :
265 FORJ=1TOL:IFMID$(Q$,J,6)=" YOUR "THENQQ=1:GOTO305
270 NEXT
275 FORJ=1TOL:IFMID$(Q$,J,4)=" MY "THENQQ=2:QR=1:GOTO305
280 NEXT
285 FORJ=1TOL:IFMID$(Q$,J,4)="THE "THENQQ=3:GOTO305
290 NEXT
295 FORJ=1TOL:IFMID$(Q$,J,5)=" YOU "THENQQ=1:GOTO305
300 GOTO305
305 IFQQ=1ORQQ=2THENGOTO315
310 GOTO325
315 FORJ=1TOL:IFMID$(Q$,J,5)=" NAME"THENQQ=6:GOTO360
320 NEXT
325 IFQ=2ORQ=7THENPRINT:PRINT"YOU'RE ASKING ABOUT THE FUTURE?":GOTO355
330 IFQQ=0THENGOTO360
335 ONQQGOTO340,345,350
340 PRINT:PRINT"YOU WISH TO KNOW ABOUT YOURSELF?":GOTO360
345 PRINT:PRINT"YOU WISH TO KNOW ABOUT ME?":GOTO360
350 :
355 IFQ=7ANDQQ=1THENPRINT"YOU'RE ASKING ABOUT YOUR FUTURE?"
360 GOSUB 960:POKEV+21,5:PRINT:PRINT"YOU ASK "LEFT$(Q$,30)
365 PRINTMID$(Q$,31,40)"[151]":POKEV+21,6
370 IFRND(1)<=.3THENPRINT"THIS IS MY REPLY:[151]":GOTO385
375 IFRND(1)>=.6THENPRINT"WELL YOU SEE IT'S LIKE THIS:[151]":GOTO385
380 PRINT"I ANSWER:[151]
385 [129]T[178]1[164]2E3:[130]:[151]V[170]21,5
390 R[178][181]([187](1)[172]15)[170]1:RH[178][181]([187](1)[172]10)[170]1
395 [139]Q[178]0[167]Z$[178]"I HONESTLY DON'T KNOW":[137]445
400 [139]Q[178]1[167]Z$[178]A$(R):[137]445
405 [139]Q[178]2[167]Z$[178]B$(R):[137]445
410 [139]Q[178]3[167]Z$[178]C$(R):[137]445
415 [139]Q[178]4[167]Z$[178]D$(R):[137]445
420 [139]Q[178]5[167]Z$[178]E$(RH):[141] 510:[137]445
425 [139]Q[178]6[167]Z$[178]F$(R):[137]445
430 [139]Q[178]7[167]Z$[178]G$(R):[137]445
435 [139]Q[178]8[167]Z$[178]H$(R):[137]445
440 [139]Q[178]9[167]Z$[178]I$(R):[137]445
445 [139]Q[178]0[167]Z$[178]"I HONESTLY DON'T KNOW"
450 [139]HM[178]1[167]HM[178]0:[137] 535
455 LL[178][195](Z$):[139]QQ[178]6[167][137]490
460 [153]:[129]J[178]1[164]LL:[153][202](Z$,J,1);:[129]T[178]1[164]100:[130]:[130]
465 RR[178][181]([187](1)[172]10)[170]1
470 [139]QQ[178]1[167][153]AA$(RR);:[137] 535
475 [139]QQ[178]2[167][153]BB$(RR);:[137] 535
480 [139]QQ[178]3[167][153]CC$(RR);:[137] 535
485 [139]QQ[178]4[167][153]DD$(RR);:[137] 535
490 [139]QQ[178]6[175]QR[178]1[167][141] 630:QR[178]0:[137] 535
495 [139]QQ[178]6[167][153]:[153]"YOUR NAME IS "NM$:[137] 535
500 [137] 535
505 :
510 [129]J[178]1[164]L:[139][202](Q$,J,5)[178]" MANY"[167][137] 525
515 [130]
520 [142]
525 [153]"SOMEWHERE BETWEEN";[181]([187](1)[172]20)"AND"[181]([187](1)[172]100)[170]21
530 HM[178]1:[142]
535 Q1[178][181]([187](1)[172]8)[170]1:Q2[178][181]([187](1)[172]8)[170]1:Q6[178][181]([187](1)[172]20)
540 [139]Q6[179]3[167][129]T[178]1[164]2000:[130]:[141] 860
545 [151]V[170]21,6
550 [139]Q1[177]7[175]XQ[177]9[167][141] 560:[139]YN$[178]"N"[167][137]360
555 [137]120
560 [139][187](1)[177].5[167][153]:[153]"LOADPARDON ME...POKE":[153]:[137]570
565 [153]:[153]"LOADEXCUSE ME...POKE":[153]
570 [129]T[178]1[164]1000:[130]:[153]"BUT WHEN YOU ASKED ME":[153]
575 [129]J[178]1[164][195](Q1$(Q2)):[153]"PRINT#"[202](Q1$(Q2),J,1);
580 [129]T[178]1[164]100:[130]:[130]:[153]
585 [139][187](1)[177].5[167][129]T[178]1[164]1E3:[130]:[153]"WAS THAT AN OK ANSWER Y/NPOKE":[137] 595
590 [129]T[178]1[164]1E3:[130]:[153]"DEFWAS THE ANSWER SUFFICIENT Y/NPOKE"
595 [161]YN$:[139]YN$[178]""[167] 595
600 [153]
605 [139]YN$[178]"N"[167] Q$[178]Q1$(Q2): [142]
610 [139]YN$[178]"Y"[167][153]"I'M USUALLY RIGHT
615 RETURN
620 PRINT
625 GOTO120
630 NM=INT(RND(1)*7)+1:ON NM GOSUB 640, 645, 650, 655, 660, 665, 670
635 RETURN
640 PRINT"SOMETIMES, LORELDA, THE ALL SEEING":RETURN
645 PRINT"AT TIMES I AM "NM$", THE MIRROR":RETURN
650 PRINT"ALL THINGS ALL NAMES":RETURN
655 PRINT"IT IS ESPIRITUS SOMETIMES"
660 PRINT"SOMETIMES, ROGER ":RETURN
665 PRINT"IT IS NOT FOR YOU TO KNOW":RETURN
670 MN=LEN(NM$)
675 PRINT"FOOL, IT'S ";
680 FORJ=0TOMN
685 IFMN-J=0THENPRINT", THE WISE":RETURN
690 PRINTMID$(NM$,MN-J,1);:NEXT:RETURN
695 FORJ=1TOL:IFMID$(Q$,J,5)=" YOU "THENQ4$=LEFT$(Q$,J):GOTO 710
700 NEXT
705 GOTO 730
710 Q5$=RIGHT$(Q$,L-(J+3))
715 Q3$="I "
720 Q$=Q4$+Q3$+Q5$
725 RETURN
730 FORJ=1TOL:IFMID$(Q$,J,3)=" I "THENQ4$=LEFT$(Q$,J):GOTO 745
735 NEXT
740 GOTO 765
745 Q5$=RIGHT$(Q$,L-(J+2))
750 Q3$="YOU "
755 Q$=Q4$+Q3$+Q5$
760 RETURN
765 FORJ=1TOL:IFMID$(Q$,J,6)=" YOUR "THENQ4$=LEFT$(Q$,J):GOTO 780
770 NEXT
775 GOTO 800
780 Q5$=RIGHT$(Q$,L-(J+5))
785 Q3$="MY "
790 Q$=Q4$+Q3$+Q5$
795 RETURN
800 FORJ=1TOL:IFMID$(Q$,J,4)=" MY "THENQ4$=LEFT$(Q$,J):GOTO 815
805 NEXT
810 GOTO 830
815 Q5$=RIGHT$(Q$,L-(J+3))
820 Q3$="YOUR "
825 Q$=Q4$+Q3$+Q5$
830 RETURN
835 IFRIGHT$(Q$,3)=" ME"THENQ4$=" YOU":GOTO 845
840 RETURN
845 Q3$=LEFT$(Q$,L-3)
850 Q$=Q3$+Q4$
855 RETURN
860 PRINT"[147]":ONQ6GOTO 865, 880
865 IFRND(1)<=.3THENPRINT"HOW'S THAT "NM$:RETURN
870 IFRND(1)>=.6THENPRINT"OH BOY! AM I HOT!!":RETURN
875 PRINT"I'M PRETTY GOOD,EH":RETURN
880 IFRND(1)<=.3THENPRINT"USE CAUTION NOW "NM$:RETURN
885 IFRND(1)>=.6THENPRINT"EASY DOES IT!":RETURN
890 PRINT"PLEASE BE CAREFUL, "NM$:RETURN
895 :
900 IFLEFT$(Q$,8)="YOU ARE "THENPRINT"YOU SAY I AM ";MID$(Q$,9,20):YS=1
905 FORT=1TO1000:NEXT
910 IFYS=1THENYS$="IT TAKES ONE TO KNOW ONE!"
915 IFYS=1THENFORJ=1TOLEN(YS$):PRINTMID$(YS$,J,1);:FORT=1TO100:NEXT:NEXT:PRINT
920 IFYS=1THENRETURN
925 IFLEFT$(Q$,4)="YOU "THENPRINT"YOU SAY I ";MID$(Q$,5,30):YS=2
930 IFYS=2THENFORT=1TO1000:NEXT
935 IFYS=2THENYS$="I DON'T THINK YOU KNOW ME!"
940 IFYS=2THENFORJ=1TOLEN(YS$):PRINTMID$(YS$,J,1);:FORT=1TO100:NEXT:NEXT:PRINT
945 RETURN
950 REM**** POKEV+21,64:FORT=1TO500:POKEV+21,128
955 REM**** RETURN
960 POKE54276,128:POKE54283,128
965 FORL=5TO56STEP50
970 POKE 54272,1:POKE 54273,L/10:POKE54279,1:POKE54280,1
975 POKE 54277,254:POKE 54278,24:POKE54284,254:POKE54285,24
980 POKE 54276,129:POKE54283,129
985 NEXT
990 RETURN
995 PRINT"[147]";
1000 PRINT"[151][188] [146][208][208] [165][167] [146][208] [207] [146][208] [146] [146][208] [146][208] [146][208] [146] [146][208] [146] [207] [146][208]";
1005 PRINT" [146][167][167] [204][186] [223][223][146] [146] [146] [146] [223] [223][146] [146][186] [146] [146][186] [146] [146]
1010 [153]" POKE WAITTHENTHEN GETWAITGET (null) WAIT WAIT WAIT WAITSQR (null) WAIT WAIT WAIT WAIT(null) WAIT WAIT
1015 PRINT" [146][208] [146][205] [146][167] [146] [146][208] [146][208] [146][208]"
1020 PRINT" [151] [146][186] [146][167] [146][167] [146] [223][223][146] [146][167] [146][186]"
1025 PRINT" [146][167] [146][186] [146][206] [146] [204] [146] [146][186] [146][205]":FORD=1TO2E3:NEXT
1027 FORT=1TO17:PRINT:FORD=1TO 20:NEXT:NEXT
1030 V=53248:FORI=832TO1022:READ D:POKEI,D:NEXT
1035 DATA 0,0,0,0,0,0,112,0
1040 DATA 14,28,0,56,7,0,224,1
1045 DATA 195,128,3,195,192,7,231,224
1050 DATA 6,102,96,3,195,192,0,24
1055 DATA 0,64,24,2,112,153,14,124
1060 DATA 102,62,47,0,244,57,195,156
1065 DATA 25,126,152,15,36,240,3,165
1070 DATA 192,0,255,0,0,0,0,0
1075 DATA 0,0,0,0,0,0,112,0
1080 DATA 14,28,0,56,7,0,224,3
1085 DATA 195,192,3,195,192,6,102,96
1090 DATA 6,102,96,3,195,192,0,24
1095 DATA 0,0,24,0,192,153,3,96
1100 DATA 102,14,56,0,24,30,0,120
1105 DATA 15,129,224,3,255,192,0,126
1110 DATA 0,0,0,0,0,0,0,0
1115 POKE2040,13:POKE2041,14:POKEV+39, 8:POKEV+40, 8:POKEV+29,3 :REM 12
1120 POKEV,141:POKEV+2,141:POKEV+1,152:POKEV+21,2
1125 FORTT=1TO152:POKEV+3,TT:FORT=1TO10:NEXT:NEXT:FORT=1TO1000:NEXT
1130 FORJ=1582TO1560STEP-1:POKEJ,108:POKEJ+54272,5:POKEJ+2,108:GOSUB1160
1135 POKEJ,32:POKEJ+2,32:NEXT:POKE1560,108:POKE1562,108
1140 FORT=1TO1000:NEXT:POKEV+21,2
1145 POKE2042,15:POKEV+41,1:POKEV+4,152:POKEV+5,170:POKEV+21,6
1150 POKEV+21,5:FORT=1TO1000:NEXT:POKEV+21,6
1155 RETURN
1160 POKES+5,4:POKES+6,240:POKES+1,50:POKES+4,17:FORT=1TO10:NEXT:POKES+4,16
1165 RETURN
1170 DATA 0,0,0,0,0,0,0,0
1175 DATA 0,0,0,0,0,0,0,0
1180 DATA 14,0,0,27,0,0,49,128
1185 DATA 0,32,128,0,1,128,0,7
1190 DATA 0,0,12,0,0,8,0,0
1195 DATA 0,0,0,8,0,0,0,0
1200 DATA 0,0,0,0,0,0,0,0
1205 DATA 0,0,0,0,0,0,0,0
1210 IFQM>140THENFORQM=165TO140STEP-1:POKEV+5,QM:FORT=1TO20:NEXT:NEXT:RETURN
1215 IFQM<170THENFORQM=QM TO170:POKEV+5,QM:FORT=1TO20:NEXT:NEXT:RETURN
1220 DATA"FAR AWAY","WI[168]HIN YOUR REACH","CLOSER THAN YOU THINK"
1225 DATA"BEYOND YOUR REACH","I THINK YOU KNOW","HMMM, THAT'S A PUZZLE"
1230 DATA"TRY LOOKING AROUND YOU","HIDDEN HIDDEN","WHERE YOU LEAST SUSPECT"
1235 DATA"IT MUST BE KEPT SECRET NOW"
1240 DATA"DEEP, SO DEEP","BEYOND MY SEEING","NEXT TO YOUR HEART","I CANNOT TELL
1245 [131]"BETTER YOU DON'T KNOW
1250 DATA"WITHIN THE YEAR","BEFORE TOMORROW'S TOMORROW","TOO EARLY TO TELL"
1255 DATA"IT HAS HAPPENED","VERY SOON NOW","NOT SURE WHEN","NOT FOR A WHILE"
1260 DATA"IT IS DONE","AFTER YOU PRAY","WAIT A LITTLE LONGER"
1265 DATA"WHENEVER YOU LIKE","BEFORE YOU TIRE OF LOOKING","SEEK NOT THIS ANSWER
1270 [131]"PERHAPS SOONER THAN YOU'D LIKE","AFTER YOU'VE GIVEN UP HOPE"
1275 [131]"NOT FOR YOU TO KNOW","BECAUSE IT IS","ONLY A FEW MAY KNOW"
1280 [131]"BECAUSE THERE ARE SPIRITS","NOT SURE WHY","BECAUSE IT IS IMPORTANT"
1285 [131]"GOD HAS WILLED IT","YOU MUST KNOW WHY","BECAUSE IT CAN'T BE HELPED"
1290 [131]"WHO SAID IT WAS","BECAUSE, SOME THINGS ARE","BECAUSE LIFE IS STRANGE
1295 DATA"BECAUSE IT IS SO","OTHERWISE IT MIGHT BE HARMFUL
1300 [131]"DO NOT ASK, FOOLISH ONE
1305 DATA"A DANGEROUS MISSION","MUCH MONEY","A FINE THING","HAPPINESS"
1310 DATA"IT IS DIFFICULT TO GUESS","A WORTHLESS QUEST","A USELESS QUESTION"
1315 DATA"I SEE IT AS SMALL MATTER","INCREDIBLE TROUBLE","WHY BOTHER WITH IT"
1320 DATA"YOU THINK I KNOW ALL?","I CANNOT TELL YOU","A MYSTERY INDEED!
1325 [131]"PLEASE DO NOT ASK THIS","ASK YOURSELF, OH SMART ONE
1330 DATA"WITH A STEADY HAND","WITH STRENGTH","WITH MUCH EFFORT","YOU KNOW HOW"
1335 DATA"YOU MUST PRAY FIRST","WITH HELP FROM FRIENDS","SEEK FRIENDS
1340 "AS EASY AS WISHING FOR IT","WITH MUCH LUCK","IMPOSSIBLE
1345 DATA"A CLOSE FRIEND","A LOVER","YOUR SPIRIT GUIDE","MANY CLOSE ONES"
1350 DATA"ONE OF SEVERAL ENEMIES","YOUR BEST FRIEND","YOUR GREATEST ENEMY"
1355 DATA"A NEW PERSON","THE ONE YOU LEAST SUSPECT","GOD ONLY KNOWS"
1360 DATA"SOMEONE TRULY SPECIAL","AN UNUSUAL PERSON","A STRANGER TO YOU NOW
1365 [131]"I CANNOT SAY WHO, TO YOU","I KNOW WHO BUT FEAR SAYING SO
1370 REM***DO
1375 REM*** DATA"MAYBE YES AND MAYBE NO","THERE IS A CHANCE","SOME SAY SO"
1380 REM***WILL
1385 DATA"YES,THIS WILL HAPPEN","NO, THIS WILL NOT HAPPEN
1390 [131]"I AM NOT CERTAIN IT WILL BE","WHY ASK, IT IS ALREADY DONE"
1395 [131]"THE FUTURE, AH IT IS CLEAR, YES!","NEVER, NEVER, NO NEVER
1400 DATA"IT IS IN THE FUTURE TOO FAR TO KNOW","DEFINITELY SO"
1405 DATA"BUT NO, THIS IS NOT SUPPOSED TO BE!","MOST CERTAINLY NOT!
1410 [131]"BUT YES, YOU KNOW IT IN YOUR HEART","THERE IS NO GUARANTEE OF THIS"
1415 [131]"THIS IS A GUESS...YES!","THIS IS A GUESS...NO!
1420 DATA"FIND THIS OUT FOR YOURSELF
1425 [131]"YES, THIS IS TRUE","AT CERTAIN TIMES I DO THINK SO
1430 DATA"I THINK YOU KNOW","DO EAGLES SOAR?","ASK SOMEONE CLOSE TO YOU"
1435 DATA"AS SURE AS I CAN BE TODAY","THIS IS FOOLISH","YOU TELL ME WISE ONE"
1440 DATA"I DON'T REALLY KNOW","THIS IS AFFIRMATIVE","HAH! OF COURSE!
1445 [131]"I CANNOT TELL RIGHT NOW","NOW, COME ON, THINK ABOUT IT
1450 DATA"YES, YES!...OKAY?","NOPE, NOT AT ALL
1455 [131]"COUNT ON IT","IT APPEARS TO BE TRUE","WHY NOT ASK THE SOURCE"
1460 [131]"THIS IS PROBABLY TRUE","I'M NOT SO SURE","NAH, I DON'T THINK SO"
1465 [131]"PROBABLY NOT, BUT IT'S UNCLEAR","YEP, I'M REAL SURE THAT'S SO"
1470 [131]"MMMM HMMM!","YOUR GUESS IS AS GOOD AS MINE","YOU CAN BET ON IT!
1475 DATA"YOU WOULD NOT LIKE THE ANSWER","I'M NOT TOO SURE","DON'T BOTHER ME!"
1480 DATA"I'M AFRAID TO ANSWER!","ARE BUTTERFLIES FREE?","AM I A SPIRIT?"
1485 DATA"THIS ONE IS EASY...YES!"
1490 REM Q-LINK DISK # 92