home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Compute! Gazette 1984 June
/
1984-06.d64
/
therapy_vic
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-09-20
|
5KB
|
141 lines
100 printchr$(142)chr$(8)chr$(30):poke36879,8:gosub1230:poke198,0
105 q=0:qd=0
110 printchr$(147);"hello. i'm dr. rom. what's your name?"
115 gosub1160:a$=p1$:print
120 print"in one word, ";a$;",":print"what is your problem?":gosub1160:b$=p1$
130 print:printb$;"...?":print:print"can you tell me more?"
140 gosub1160:gosub900
150 print:print"i understand ";b$:print"is difficult for you."
160 gosub1160:ifp1$="no"thenprint"maybe i'm not quite understanding..."
170 print:print"can you be more specific? how is":printb$;" a problem?"
180 gosub1160:gosub900
190 print:print"how does this make youfeel, ";a$;"?":gosub1160:c$=p1$
200 printchr$(147)
205 print"so what you're saying,";a$;", is that your":print"problem with ";b$
210 print"is making you feel ":printc$;".":gosub1160
220 print:print"can you elaborate on your feelings?":gosub1160:gosub900
230 print:print"has this been a problem for you before? (yes or no)":gosub1160
240 ifp1$<>"no"then260
250 print"i see. then this new situation must be difficult for you.":goto320
260 print:print"did you also feel":printc$;" then?"
270 gosub1160:print"tell me more."
280 gosub1160:gosub900
290 printchr$(147)"i think we have something here. do you see a pattern?"
300 gosub1160:print:print"go on..."
310 gosub1160:print"this sounds difficult for you.":gosub1160
320 print:print"do you have a plan to deal with this currentsituation?";
330 print" (yes or no)":gosub1160
340 ifp1$<>"yes"then350
343 print"do you think this planwill be successful?":goto360
350 print:print"why don't you make a list of possible solutions, then."
360 gosub1160:gosub900
370 fort=1to500:nextt:printchr$(147)
380 print"okay, what single wordbest describes";
385 print" how youare feeling right now?"
390 gosub1160:d$=p1$::print:printd$;"...?"
400 gosub1160:gosub900:print
410 print"i'm thinking of doing something here.":print"let's try some word"
430 print"association and see where it leads us."
440 print"what do you think (yes or no)?":gosub1160
450 ifp1$="yes"then490
460 print:print"you seem to be having some problems with this."
470 print"can you tell me about it?":gosub1160:ifp1$="no"then840
480 print:print"i really think a word association would be useful right now."
490 print:print"let's do it."
500 print"i'll say a word. you say the first word that comes to your mind."
510 rem ***word association***
520 fort=1to5000:nextt:printchr$(147);"dog":print:gosub1160
530 print:print"drink":print:gosub1160
540 print:print"home":print:gosub1160:e$=p1$
550 print:printb$:print:gosub1160:f$=p1$
560 print:print"feelings":print:gosub1160
570 print:print"fun":print:gosub1160:g$=p1$
580 print:print"mom":print:gosub1160:i$=p1$
590 print:printc$:print:gosub1160:j$=p1$
600 fort=1to1000:nextt:printchr$(147)
610 print"i noticed when i said home that you said":printe$;"."
620 print"does this somehow reflect how you feel about yourself?"
630 print"yes or no":gosub1160:ifp1$<>"yes"then650
640 print:print"in what way?":gosub1160:gosub900
650 print:print"how does this relate to your problem with":printb$
660 gosub1160:gosub900:print:print"when i said ";b$:print"you said ";f$
670 print"what do you think thismeans?":gosub1160:gosub900
680 print:print"are you distressed? doyou want a kleenex?":gosub1160
690 ifp1$<>"yes"then710
700 print"here.":fort=1to1000:nextt
710 print:print"it's interesting that when i said fun, you said ";g$
720 gosub1160:gosub900:printchr$(147);"hmmmm..."
730 print:print"it seems to me, ";a$;","
735 print"that this all ties in to your problem"
740 print"with ";b$
750 gosub1160:goto770
760 rem ***dreams***
770 print:print"let's try a different":print"approach,";a$
780 print"tell me about one of your dreams.":gosub1160:gosub1040:ifqd=1then840
790 print:print"how would you describeyour feelings in the dream?":gosub1160
800 print:print"did the dream have anything to do with":printi$
810 gosub1160:fort=1to1000:nextt
820 rem ***all done***
830 print:print"[147]i think we're moving in a good direction.":print
840 print"we've discussed your problem with":printb$:print"and how this makes you"
850 print"feel ";c$;";"
860 print"and discussed some possible solutions."
870 print:print"i see your time is up.see you next week."
880 end
890 rem ***keywords***
900 ifq>0thenreturn
910 forj=1tolen(p1$)-5
920 ifmid$(p1$,j,5)<>" fun "then930
925 print:print"what are your feelings about fun?":goto950
930 nextj
940 return
950 gosub1160:q=1:print:print"these feelings seem important."
960 gosub1160:return
1040 rem ***dream keyword search***
1050 forj=1tolen(p1$)-7
1060 ifmid$(p1$,j,7)=" don't "then1120
1070 nextj
1080 forj=1tolen(p1$)-6
1090 ifmid$(p1$,j,6)=" dont "then1120
1100 nextj
1110 return
1120 printchr$(147)"why do you suppose that is?":gosub1160:gosub900
1130 print"this may be something that we'll want"
1140 print"to discuss later. we may find that it"
1150 print"relates to your problem with ";b$:qd=1:return
1160 rem ***commodore punctuation input***
1170 p1$=""
1180 getp2$:ifp2$=""then1180
1190 printp2$;
1200 ifp2$=chr$(13)thenreturn
1210 p1$=p1$+p2$
1220 goto1180
1230 rem ***introduction***
1240 printchr$(147);tab(6)"therapy"
1250 print:print"would you like an introduction (y/n)"
1260 getq$:ifq$<>"y"andq$<>"n"then1260
1270 ifq$="n"thenreturn
1280 printchr$(147);"welcome to your therapy session. dr. rom";
1285 print" will be with you in a ";
1290 print"moment. whileyou are waiting, here are some helpful"
1300 print"suggestions on how to get the most out of your therapy session."
1305 print:print
1310 print"as with most things inlife, with therapy, the more you ";
1320 print"put in, the more you get out.you may find it fun totry and trip ";
1330 print"up the doctor; make fun of his grammar, or insulthim mercilessly."
1332 print:printchr$(18)"hit any key"
1335 poke198,0:wait198,1
1340 print"[147]however, even though this is a parlor game, you may still find ";
1350 print"yourself having interesting, and even important,";
1360 print" insights. this will only happen if you try your best to utilize ";
1370 print"this session as an enjoyable way to mull over the ";
1380 print"problems and peeves of life."
1390 print:printchr$(18)"hit any key"
1400 poke198,0:wait198,1
1410 printchr$(147):print"i see the doctor is in now."
1420 print:print"to talk to dr. rom, just type in your"
1430 print"response; and hit ";chr$(18):print"return";chr$(146);" when you are"
1440 print"finished.":print:print:print"enjoy your therapy session."
1450 print:printchr$(18);" hit any key to begin"
1460 poke198,0:wait198,1:return