oregon1978.bas 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692
  1. 10 REM THE PROGRAM THAT FOLLOWS IS A RECONSTRUCTION
  2. 20 REM OF THE OREGON TRAIL GAME WRITTEN FOR HP TIME-SHARED
  3. 30 REM BASIC BY DON RAWITSCH AND BILL HEINEMANN AND PAUL DILLENBERGER
  4. 40 REM IN 1971. ITS SOURCE IS AN UPDATED VERSION PUBLISHED IN THE
  5. 45 REM JULY-AUGUST 1978 ISSUE OF CREATIVE COMPUTING AND POSTED BY
  6. 47 REM DESERTHAT TO HIS BLOG AT
  7. 48 REM HTTP://DESERTHAT.WORDPRESS.COM/2010/11/07/OREGION-TRAIL-VER-3-BASIC-3-1-1978.
  8. 50 REM THAT VERSION WAS DESIGNED FOR THE CDC CYBER 70/73-26 RUNNING BASIC 3.1.
  9. 60 REM THIS VERSION HAS BEEN PORTED BACK TO HP TIME-SHARED BASIC.
  10. 61 REM THE BASIC USED HERE IS FAIRLY STANDARD, AND SHOULD RUN ON MANY OTHER
  11. 63 REM SYSTEMS WITH JUST A BIT OF CUSTOMIZATION. IF PORTING IT TO ANOTHER BASIC,
  12. 80 REM DO TAKE NOTE OF HP TIME-SHARED BASIC'S IDIOSYNCRATIC "GOTO <VAR> OF"
  13. 150 REM STATEMENT, USED IN PLACE OF THE "ON" STATEMENT OF MANY OTHER BASICS.
  14. 153 REM ALSO PAY ATTENTION TO THE RANDOMIZATION ROUTINES (RND), WHICH WORK
  15. 154 REM SOMEWHAT UNUSUALLY IN TIME-SHARED BASIC.
  16. 155 REM LINES 6130 THROUGH 6280, WHICH HANDLE THE TIMED SHOOTING SEQUENCES,
  17. 156 REM WILL CERTAINLY NEED TO BE CUSTOMIZED TO YOUR BASIC PLATFORM.
  18. 157 REM FOR MORE INFORMATION ON HOW THIS PORT CAME TO BE SEE
  19. 158 REM HTTP://WWW.FILFRE.NET/TAG/THE-OREGON-TRAIL
  20. 159 REM -- JIMMY MAHER, APRIL 3, 2011
  21. 160 PRINT "DO YOU NEED INSTRUCTIONS (YES/NO)"
  22. 170 DIM C$[5]
  23. 180 REM RANDOMIZE REMOVED
  24. 190 INPUT C$
  25. 200 IF C$="NO" THEN 690
  26. 210 PRINT
  27. 220 PRINT
  28. 230 REM ***INSTRUCTIONS***
  29. 240 PRINT "THIS PROGRAM SIMULATES A TRIP OVER THE OREGON TRAIL FROM"
  30. 250 PRINT "INDEPENDENCE MISSOURI TO OREGON CITY, OREGON IN 1847."
  31. 260 PRINT "YOUR FAMILY OF FIVE WILL COVER THE 2040 MILE OREGON TRAIL"
  32. 270 PRINT "IN 5-6 MONTHS --- IF YOU MAKE IT ALIVE."
  33. 280 PRINT
  34. 290 PRINT "YOU HAD SAVED $900 TO SPEND FOR THE TRIP, AND YOU'VE JUST"
  35. 300 PRINT " PAID $200 FOR A WAGON."
  36. 310 PRINT "YOU WILL NEED TO SPEND THE REST OF YOUR MONEY ON THE"
  37. 320 PRINT " FOLLOWING ITEMS:"
  38. 330 PRINT
  39. 340 PRINT " OXEN . YOU CAN SPEND $200-$300 ON YOUR TEAM"
  40. 350 PRINT " THE MORE YOU SPEND, THE FASTER YOU'LL GO"
  41. 360 PRINT " BECAUSE YOU'LL HAVE BETTER ANIMALS"
  42. 370 PRINT
  43. 380 PRINT " FOOD . THE MORE YOU HAVE, THE LESS CHANCE THERE"
  44. 390 PRINT " IS OF GETTING SICK"
  45. 400 PRINT
  46. 410 PRINT " AMMUNITION - $1 BUYS A BELT OF 50 BULLETS"
  47. 420 PRINT " YOU WILL NEED BULLETS FOR ATTACKS BY ANIMALS"
  48. 430 PRINT " AND BANDITS, AND FOR HUNTING FOOD"
  49. 440 PRINT
  50. 450 PRINT " CLOTHING . THIS IS ESPECIALLY IMPORTANT FOR THE COLD"
  51. 460 PRINT " WEATHER YOU WILL ENCOUNTER WHEN CROSSING"
  52. 470 PRINT " THE MOUNTAINS"
  53. 480 PRINT
  54. 490 PRINT " MISCELLANEOUS SUPPLIES . THIS INCLUDES MEDICINE AND"
  55. 500 PRINT " OTHER THINGS YOU WILL NEED FOR SICKNESS"
  56. 510 PRINT " AND EMERGENCY REPAIRS"
  57. 520 PRINT
  58. 530 PRINT
  59. 540 PRINT "YOU CAN SPEND ALL YOUR MONEY BEFORE YOU START YOUR TRIP -"
  60. 550 PRINT "OR YOU CAN SAVE SOME OF YOUR CASH TO SPEND AT FORTS ALONG"
  61. 560 PRINT "THE WAY WHEN YOU RUN LOW. HOWEVER, ITEMS COST MORE AT"
  62. 570 PRINT "THE FORTS. YOU CAN ALSO GO HUNTING ALONG THE WAY TO GET"
  63. 580 PRINT "MORE FOOD."
  64. 590 PRINT "WHENEVER YOU HAVE TO USE YOUR TRUSTY RIFLE ALONG THE WAY,"
  65. 600 PRINT "YOU WILL BE TOLD TO TYPE IN A WORD (ONE THAT SOUNDS LIKE A"
  66. 610 PRINT "GUN SHOT). THE FASTER YOU TYPE IN THAT WORD AND HIT THE"
  67. 620 PRINT "**RETURN** KEY, THE BETTER LUCK YOU'LL HAVE WITH YOUR GUN."
  68. 630 PRINT
  69. 640 PRINT "AT EACH TURN, ALL ITEMS ARE SHOWN IN DOLLAR AMOUNTS"
  70. 650 PRINT "EXCEPT BULLETS"
  71. 660 PRINT "WHEN ASKED TO ENTER MONEY AMOUNTS, DON'T USE A **$**."
  72. 670 PRINT
  73. 680 PRINT "GOOD LUCK!!!"
  74. 690 PRINT
  75. 700 PRINT
  76. 710 PRINT "HOW GOOD A SHOT ARE YOU WITH YOUR RIFLE?"
  77. 720 PRINT " (1) ACE MARKSMAN, (2) GOOD SHOT, (3) FAIR TO MIDDLIN'"
  78. 730 PRINT " (4) NEED MORE PRACTICE, (5) SHAKY KNEES"
  79. 740 PRINT "ENTER ONE OF THE ABOVE . THE BETTER YOU CLAIM YOU ARE, THE"
  80. 750 PRINT "FASTER YOU'LL HAVE TO BE WITH YOUR GUN TO BE SUCCESSFUL."
  81. 760 INPUT D9
  82. 770 IF D9>5 THEN 790
  83. 780 GOTO 810
  84. 790 D9=0
  85. 800 REM ***INITIAL PURCHASES***
  86. 810 X1=-1
  87. 820 K8=S4=F1=F2=M=M9=D3=0
  88. 830 PRINT
  89. 840 PRINT
  90. 850 PRINT "HOW MUCH DO YOU WANT TO SPEND ON YOUR OXEN TEAM";
  91. 860 INPUT A
  92. 870 IF A >= 200 THEN 900
  93. 880 PRINT "NOT ENOUGH"
  94. 890 GOTO 850
  95. 900 IF A <= 300 THEN 930
  96. 910 PRINT "TOO MUCH"
  97. 920 GOTO 850
  98. 930 PRINT "HOW MUCH DO YOU WANT TO SPEND ON FOOD";
  99. 940 INPUT F
  100. 950 IF F >= 0 THEN 980
  101. 960 PRINT "IMPOSSIBLE"
  102. 970 GOTO 930
  103. 980 PRINT "HOW MUCH DO YOU WANT TO SPEND ON AMMUNITION";
  104. 990 INPUT B
  105. 1000 IF B >= 0 THEN 1030
  106. 1010 PRINT "IMPOSSIBLE"
  107. 1020 GOTO 980
  108. 1030 PRINT "HOW MUCH DO YOU WANT TO SPEND ON CLOTHING";
  109. 1040 INPUT C
  110. 1050 IF C >= 0 THEN 1080
  111. 1060 PRINT "IMPOSSIBLE"
  112. 1070 GOTO 1030
  113. 1080 PRINT "HOW MUCH DO YOU WANT TO SPEND ON MISCELLANEOUS SUPPLIES";
  114. 1090 INPUT M1
  115. 1100 IF M1 >= 0 THEN 1130
  116. 1110 PRINT "IMPOSSIBLE"
  117. 1120 GOTO 1080
  118. 1130 T=700-A-F-B-C-M1
  119. 1140 IF T >= 0 THEN 1170
  120. 1150 PRINT "YOU OVERSPENT.YOU ONLY HAD $700 TO SPEND. BUY AGAIN"
  121. 1160 GOTO 830
  122. 1170 B=50*B
  123. 1180 PRINT "AFTER ALL YOUR PURCHASES, YOU NOW HAVE ";T;" DOLLARS LEFT"
  124. 1190 PRINT
  125. 1200 PRINT "MONDAY MARCH 29 1847"
  126. 1210 PRINT
  127. 1220 GOTO 1750
  128. 1230 IF M >= 2040 THEN 5430
  129. 1240 REM ***SETTING DATE****
  130. 1250 D3=D3+1
  131. 1260 PRINT
  132. 1270 PRINT "MONDAY ";
  133. 1280 IF D3>10 THEN 1300
  134. 1290 GOTO D3 OF 1310,1330,1350,1370,1390,1410,1430,1450,1470,1490
  135. 1300 GOTO D3-10 OF 1510,1530,1550,1570,1590,1610,1630,1650,1670,1690
  136. 1310 PRINT "APRIL 12 ";
  137. 1320 GOTO 1720
  138. 1330 PRINT "APRIL 26 ";
  139. 1340 GOTO 1720
  140. 1350 PRINT "MAY 10 ";
  141. 1360 GOTO 1720
  142. 1370 PRINT "MAY 24 ";
  143. 1380 GOTO 1720
  144. 1390 PRINT "JUNE 7 ";
  145. 1400 GOTO 1720
  146. 1410 PRINT "JUNE 21 ";
  147. 1420 GOTO 1720
  148. 1430 PRINT "JULY 5 ";
  149. 1440 GOTO 1720
  150. 1450 PRINT "JULY 19 ";
  151. 1460 GOTO 1720
  152. 1470 PRINT "AUGUST 2 ";
  153. 1480 GOTO 1720
  154. 1490 PRINT "AUGUST 16 ";
  155. 1500 GOTO 1720
  156. 1510 PRINT "AUGUST 31 ";
  157. 1520 GOTO 1720
  158. 1530 PRINT "SEPTEMBER 13 ";
  159. 1540 GOTO 1720
  160. 1550 PRINT "SEPTEMBER 27 ";
  161. 1560 GOTO 1720
  162. 1570 PRINT "OCTOBER 11 ";
  163. 1580 GOTO 1720
  164. 1590 PRINT "OCTOBER 25 ";
  165. 1600 GOTO 1720
  166. 1610 PRINT "NOVEMBER 8 ";
  167. 1620 GOTO 1720
  168. 1630 PRINT "NOVEMBER 22 ";
  169. 1640 GOTO 1720
  170. 1650 PRINT "DECEMBER 6 ";
  171. 1660 GOTO 1720
  172. 1670 PRINT "DECEMBER 20 ";
  173. 1680 GOTO 1720
  174. 1690 PRINT "YOU HAVE BEEN ON THE TRAIL TOO LONG ------"
  175. 1700 PRINT "YOUR FAMILY DIES IN THE FIRST BLIZZARD OF WINTER"
  176. 1710 GOTO 5170
  177. 1720 PRINT "1847"
  178. 1730 PRINT
  179. 1740 REM ***BEGINNING EACH TURN***
  180. 1750 IF F >= 0 THEN 1770
  181. 1760 F=0
  182. 1770 IF B >= 0 THEN 1790
  183. 1780 B=0
  184. 1790 IF C >= 0 THEN 1810
  185. 1800 C=0
  186. 1810 IF M1 >= 0 THEN 1830
  187. 1820 M1=0
  188. 1830 IF F >= 13 THEN 1850
  189. 1840 PRINT "YOU'D BETTER DO SOME HUNTING OR BUY FOOD AND SOON!!!!"
  190. 1850 F=INT(F)
  191. 1860 B=INT(B)
  192. 1870 C=INT(C)
  193. 1880 M1=INT(M1)
  194. 1890 T=INT(T)
  195. 1900 M=INT(M)
  196. 1910 M2=M
  197. 1920 IF S4=1 THEN 1950
  198. 1930 IF K8=1 THEN 1950
  199. 1940 GOTO 1990
  200. 1950 T=T-20
  201. 1960 IF T<0 THEN 5080
  202. 1970 PRINT "DOCTOR'S BILL IS $20"
  203. 1980 LET K8=S4=0
  204. 1990 IF M9=1 THEN 2020
  205. 2000 PRINT "TOTAL MILEAGE IS";M
  206. 2010 GOTO 2040
  207. 2020 PRINT "TOTAL MILEAGE IS 950"
  208. 2030 M9=0
  209. 2040 PRINT "FOOD","BULLETS","CLOTHING","MISC. SUPP.","CASH"
  210. 2050 PRINT F,B,C,M1,T
  211. 2060 IF X1=-1 THEN 2170
  212. 2070 X1=X1*(-1)
  213. 2080 PRINT "DO YOU WANT TO (1) STOP AT THE NEXT FORT, (2) HUNT, ";
  214. 2090 PRINT "OR (3) CONTINUE"
  215. 2100 INPUT X
  216. 2110 IF X>2 THEN 2150
  217. 2120 IF X<1 THEN 2150
  218. 2130 LET X=INT(X)
  219. 2140 GOTO 2270
  220. 2150 LET X=3
  221. 2160 GOTO 2270
  222. 2170 PRINT "DO YOU WANT TO (1) HUNT, OR (2) CONTINUE"
  223. 2180 INPUT X
  224. 2190 IF X=1 THEN 2210
  225. 2200 LET X=2
  226. 2210 LET X=X+1
  227. 2220 IF X=3 THEN 2260
  228. 2230 IF B>39 THEN 2260
  229. 2240 PRINT "TOUGH---YOU NEED MORE BULLETS TO GO HUNTING"
  230. 2250 GOTO 2170
  231. 2260 X1=X1*(-1)
  232. 2270 GOTO X OF 2290,2540,2720
  233. 2280 REM ***STOPPING AT FORT***
  234. 2290 PRINT "ENTER WHAT YOU WISH TO SPEND ON THE FOLLOWING"
  235. 2300 PRINT "FOOD";
  236. 2310 GOSUB 2330
  237. 2320 GOTO 2410
  238. 2330 INPUT P
  239. 2340 IF P<0 THEN 2400
  240. 2350 T=T-P
  241. 2360 IF T >= 0 THEN 2400
  242. 2370 PRINT "YOU DON'T HAVE THAT MUCH -- KEEP YOUR SPENDING DOWN"
  243. 2380 T=T+P
  244. 2390 P=0
  245. 2400 RETURN
  246. 2410 F=F+2/3*P
  247. 2420 PRINT "AMMUNITION";
  248. 2430 GOSUB 2330
  249. 2440 LET B=INT(B+2/3*P*50)
  250. 2450 PRINT "CLOTHING";
  251. 2460 GOSUB 2330
  252. 2470 C=C+2/3*P
  253. 2480 PRINT "MISCELLANEOUS SUPPLIES";
  254. 2490 GOSUB 2330
  255. 2500 M1=M1+2/3*P
  256. 2510 M=M-45
  257. 2520 GOTO 2720
  258. 2530 REM ***HUNTING***
  259. 2540 IF B>39 THEN 2570
  260. 2550 PRINT "TOUGH---YOU NEED MORE BULLETS TO GO HUNTING"
  261. 2560 GOTO 2080
  262. 2570 M=M-45
  263. 2580 GOSUB 6140
  264. 2590 IF B1 <= 1 THEN 2660
  265. 2600 IF 100*RND(0)<13*B1 THEN 2710
  266. 2610 F=F+48-2*B1
  267. 2620 PRINT "NICE SHOT.RIGHT ON TARGET.GOOD EATIN' TONIGHT!!"
  268. 2630 B=B-10-3*B1
  269. 2640 GOTO 2720
  270. 2650 REM **BELLS IN LINE 2660**
  271. 2660 PRINT "RIGHT BETWEEN THE EYES---YOU GOT A BIG ONE!!!!"
  272. 2670 PRINT "FULL BELLIES TONIGHT!"
  273. 2680 F=F+52+RND(0)*6
  274. 2690 B=B-10-RND(0)*4
  275. 2700 GOTO 2720
  276. 2710 PRINT "YOU MISSED---AND YOUR DINNER GOT AWAY....."
  277. 2720 IF F >= 13 THEN 2750
  278. 2730 GOTO 5060
  279. 2740 REM ***EATING***
  280. 2750 PRINT "DO YOU WANT TO EAT (1) POORLY (2) MODERATELY"
  281. 2760 PRINT "OR (3) WELL";
  282. 2770 INPUT E
  283. 2780 IF E>3 THEN 2750
  284. 2790 IF E<1 THEN 2750
  285. 2800 LET E=INT(E)
  286. 2810 LET F=F-8-5*E
  287. 2820 IF F >= 0 THEN 2860
  288. 2830 F=F+8+5*E
  289. 2840 PRINT "YOU CAN'T EAT THAT WELL"
  290. 2850 GOTO 2750
  291. 2860 LET M=M+200+(A-220)/5+10*RND(0)
  292. 2870 L1=C1=0
  293. 2880 REM ***RIDERS ATTACK***
  294. 2890 IF RND(0)*10>((M/100-4)^2+72)/((M/100-4)^2+12)-1 THEN 3550
  295. 2900 PRINT "RIDERS AHEAD. THEY ";
  296. 2910 S5=0
  297. 2920 IF RND(0)<.8 THEN 2950
  298. 2930 PRINT "DON'T ";
  299. 2940 S5=1
  300. 2950 PRINT "LOOK HOSTILE"
  301. 2960 PRINT "TACTICS"
  302. 2970 PRINT "(1) RUN (2) ATTACK (3) CONTINUE (4) CIRCLE WAGONS"
  303. 2980 IF RND(0)>.2 THEN 3000
  304. 2990 S5=1-S5
  305. 3000 INPUT T1
  306. 3010 IF T1<1 THEN 2970
  307. 3020 IF T1>4 THEN 2970
  308. 3030 T1=INT(T1)
  309. 3040 IF S5=1 THEN 3330
  310. 3050 IF T1>1 THEN 3110
  311. 3060 M=M+20
  312. 3070 M1=M1-15
  313. 3080 B=B-150
  314. 3090 A=A-40
  315. 3100 GOTO 3470
  316. 3110 IF T1>2 THEN 3240
  317. 3120 GOSUB 6140
  318. 3130 B=B-B1*40-80
  319. 3140 IF B1>1 THEN 3170
  320. 3150 PRINT "NICE SHOOTING---YOU DROVE THEM OFF"
  321. 3160 GOTO 3470
  322. 3170 IF B1 <= 4 THEN 3220
  323. 3180 PRINT "LOUSY SHOT---YOU GOT KNIFED"
  324. 3190 K8=1
  325. 3200 PRINT "YOU HAVE TO SEE OL' DOC BLANCHARD"
  326. 3210 GOTO 3470
  327. 3220 PRINT "KINDA SLOW WITH YOUR COLT .45"
  328. 3230 GOTO 3470
  329. 3240 IF T1>3 THEN 3290
  330. 3250 IF RND(0)>.8 THEN 3450
  331. 3260 LET B=B-150
  332. 3270 M1=M1-15
  333. 3280 GOTO 3470
  334. 3290 GOSUB 6140
  335. 3300 B=B-B1*30-80
  336. 3310 M=M-25
  337. 3320 GOTO 3140
  338. 3330 IF T1>1 THEN 3370
  339. 3340 M=M+15
  340. 3350 A=A-10
  341. 3360 GOTO 3470
  342. 3370 IF T1>2 THEN 3410
  343. 3380 M=M-5
  344. 3390 B=B-100
  345. 3400 GOTO 3470
  346. 3410 IF T1>3 THEN 3430
  347. 3420 GOTO 3470
  348. 3430 M=M-20
  349. 3440 GOTO 3470
  350. 3450 PRINT "THEY DID NOT ATTACK"
  351. 3460 GOTO 3550
  352. 3470 IF S5=0 THEN 3500
  353. 3480 PRINT "RIDERS WERE FRIENDLY, BUT CHECK FOR POSSIBLE LOSSES"
  354. 3490 GOTO 3550
  355. 3500 PRINT "RIDERS WERE HOSTILE--CHECK FOR LOSSES"
  356. 3510 IF B >= 0 THEN 3550
  357. 3520 PRINT "YOU RAN OUT OF BULLETS AND GOT MASSACRED BY THE RIDERS"
  358. 3530 GOTO 5170
  359. 3540 REM ***SELECTION OF EVENTS***
  360. 3550 LET D1=0
  361. 3560 RESTORE
  362. 3570 R1=100*RND(0)
  363. 3580 LET D1=D1+1
  364. 3590 IF D1=16 THEN 4670
  365. 3600 READ D
  366. 3610 IF R1>D THEN 3580
  367. 3620 DATA 6,11,13,15,17,22,32,35,37,42,44,54,64,69,95
  368. 3630 IF D1>10 THEN 3650
  369. 3640 GOTO D1 OF 3660,3700,3740,3790,3820,3850,3880,3960,4130,4190
  370. 3650 GOTO D1-10 OF 4220,4290,4340,4560,4610,4670
  371. 3660 PRINT "WAGON BREAKS DOWN--LOSE TIME AND SUPPLIES FIXING IT"
  372. 3670 LET M=M-15-5*RND(0)
  373. 3680 LET M1=M1-8
  374. 3690 GOTO 4710
  375. 3700 PRINT "OX INJURES LEG---SLOWS YOU DOWN REST OF TRIP"
  376. 3710 LET M=M-25
  377. 3720 LET A=A-20
  378. 3730 GOTO 4710
  379. 3740 PRINT "BAD LUCK---YOUR DAUGHTER BROKE HER ARM"
  380. 3750 PRINT "YOU HAD TO STOP AND USE SUPPLIES TO MAKE A SLING"
  381. 3760 M=M-5-4*RND(0)
  382. 3770 M1=M1-2-3*RND(0)
  383. 3780 GOTO 4710
  384. 3790 PRINT "OX WANDERS OFF---SPEND TIME LOOKING FOR IT"
  385. 3800 M=M-17
  386. 3810 GOTO 4710
  387. 3820 PRINT "YOUR SON GETS LOST---SPEND HALF THE DAY LOOKING FOR HIM"
  388. 3830 M=M-10
  389. 3840 GOTO 4710
  390. 3850 PRINT "UNSAFE WATER--LOSE TIME LOOKING FOR CLEAN SPRING"
  391. 3860 LET M=M-10*RND(0)-2
  392. 3870 GOTO 4710
  393. 3880 IF M>950 THEN 4490
  394. 3890 PRINT "HEAVY RAINS---TIME AND SUPPLIES LOST"
  395. 3910 F=F-10
  396. 3920 B=B-500
  397. 3930 M1=M1-15
  398. 3940 M=M-10*RND(0)-5
  399. 3950 GOTO 4710
  400. 3960 PRINT "BANDITS ATTACK"
  401. 3970 GOSUB 6140
  402. 3980 B=B-20*B1
  403. 3990 IF B >= 0 THEN 4030
  404. 4000 PRINT "YOU RAN OUT OF BULLETS -- THEY GET LOTS OF CASH"
  405. 4010 T=T/3
  406. 4020 GOTO 4040
  407. 4030 IF B1 <= 1 THEN 4100
  408. 4040 PRINT "YOU GOT SHOT IN THE LEG AND THEY TOOK ONE OF YOUR OXEN"
  409. 4050 K8=1
  410. 4060 PRINT "BETTER HAVE A DOC LOOK AT YOUR WOUND"
  411. 4070 M1=M1-5
  412. 4080 A=A-20
  413. 4090 GOTO 4710
  414. 4100 PRINT "QUICKEST DRAW OUTSIDE OF DODGE CITY!!!"
  415. 4110 PRINT "YOU GOT 'EM!"
  416. 4120 GOTO 4710
  417. 4130 PRINT "THERE WAS A FIRE IN YOUR WAGON--FOOD AND SUPPLIES DAMAGED"
  418. 4140 F=F-40
  419. 4150 B=B-400
  420. 4160 LET M1=M1-RND(0)*8-3
  421. 4170 M=M-15
  422. 4180 GOTO 4710
  423. 4190 PRINT "LOSE YOUR WAY IN HEAVY FOG---TIME IS LOST"
  424. 4200 M=M-10-5*RND(0)
  425. 4210 GOTO 4710
  426. 4220 PRINT "YOU KILLED A POISONOUS SNAKE AFTER IT BIT YOU"
  427. 4230 B=B-10
  428. 4240 M1=M1-5
  429. 4250 IF M1 >= 0 THEN 4280
  430. 4260 PRINT "YOU DIE OF SNAKEBITE SINCE YOU HAVE NO MEDICINE"
  431. 4270 GOTO 5170
  432. 4280 GOTO 4710
  433. 4290 PRINT "YOUR WAGON GETS SWAMPED FORDING RIVER--LOSE FOOD AND CLOTHES"
  434. 4300 F=F-30
  435. 4310 C=C-20
  436. 4320 M=M-20-20*RND(0)
  437. 4330 GOTO 4710
  438. 4340 PRINT "WILD ANIMALS ATTACK!"
  439. 4350 GOSUB 6140
  440. 4360 IF B>39 THEN 4410
  441. 4370 PRINT "YOU WERE TOO LOW ON BULLETS--"
  442. 4380 PRINT "THE WOLVES OVERPOWERED YOU"
  443. 4390 K8=1
  444. 4400 GOTO 5120
  445. 4410 IF B1>2 THEN 4440
  446. 4420 PRINT "NICE SHOOTIN' PARDNER---THEY DIDN'T GET MUCH"
  447. 4430 GOTO 4450
  448. 4440 PRINT "SLOW ON THE DRAW---THEY GOT AT YOUR FOOD AND CLOTHES"
  449. 4450 B=B-20*B1
  450. 4460 C=C-B1*4
  451. 4470 F=F-B1*8
  452. 4480 GOTO 4710
  453. 4490 PRINT "COLD WEATHER -- BRRRRRR! -- YOU ";
  454. 4500 IF C>22+4*RND(0) THEN 4530
  455. 4510 PRINT "DON'T ";
  456. 4520 C1=1
  457. 4530 PRINT "HAVE ENOUGH CLOTHING TO KEEP WARM"
  458. 4540 IF C1=0 THEN 4710
  459. 4550 GOTO 6300
  460. 4560 PRINT "HAIL STORM---SUPPLIES DAMAGED"
  461. 4570 M=M-5-RND(0)*10
  462. 4580 B=B-200
  463. 4590 M1=M1-4-RND(0)*3
  464. 4600 GOTO 4710
  465. 4610 IF E=1 THEN 6300
  466. 4620 IF E=3 THEN 4650
  467. 4630 IF RND(0)>.25 THEN 6300
  468. 4640 GOTO 4710
  469. 4650 IF RND(0)<.5 THEN 6300
  470. 4660 GOTO 4710
  471. 4670 PRINT "HELPFUL INDIANS SHOW YOU WHERE TO FIND MORE FOOD"
  472. 4680 F=F+14
  473. 4690 GOTO 4710
  474. 4700 REM ***MOUNTAINS***
  475. 4710 IF M <= 950 THEN 1230
  476. 4720 IF RND(0)*10>9-((M/100-15) ** 2+72)/((M/100-15) ** 2+12) THEN 4860
  477. 4730 PRINT "RUGGED MOUNTAINS"
  478. 4740 IF RND(0)>.1 THEN 4780
  479. 4750 PRINT "YOU GOT LOST---LOSE VALUABLE TIME TRYING TO FIND TRAIL!"
  480. 4760 M=M-60
  481. 4770 GOTO 4860
  482. 4780 IF RND(0)>.11 THEN 4840
  483. 4790 PRINT "WAGON DAMAGED!---LOSE TIME AND SUPPLIES"
  484. 4800 M1=M1-5
  485. 4810 B=B-200
  486. 4820 M=M-20-30*RND(0)
  487. 4830 GOTO 4860
  488. 4840 PRINT "THE GOING GETS SLOW"
  489. 4850 M=M-45-RND(0)/.02
  490. 4860 IF F1=1 THEN 4900
  491. 4870 F1=1
  492. 4880 IF RND(0)<.8 THEN 4970
  493. 4890 PRINT "YOU MADE IT SAFELY THROUGH SOUTH PASS--NO SNOW"
  494. 4900 IF M<1700 THEN 4940
  495. 4910 IF F2=1 THEN 4940
  496. 4920 F2=1
  497. 4930 IF RND(0)<.7 THEN 4970
  498. 4940 IF M>950 THEN 1230
  499. 4950 M9=1
  500. 4960 GOTO 1230
  501. 4970 PRINT "BLIZZARD IN MOUNTAIN PASS--TIME AND SUPPLIES LOST"
  502. 4980 L1=1
  503. 4990 F=F-25
  504. 5000 M1=M1-10
  505. 5010 B=B-300
  506. 5020 M=M-30-40*RND(0)
  507. 5030 IF C<18+2*RND(0) THEN 6300
  508. 5040 GOTO 4940
  509. 5050 REM ***DYING***
  510. 5060 PRINT "YOU RAN OUT OF FOOD AND STARVED TO DEATH"
  511. 5070 GOTO 5170
  512. 5080 LET T=0
  513. 5090 PRINT "YOU CAN'T AFFORD A DOCTOR"
  514. 5100 GOTO 5120
  515. 5110 PRINT "YOU RAN OUT OF MEDICAL SUPPLIES"
  516. 5120 PRINT "YOU DIED OF ";
  517. 5130 IF K8=1 THEN 5160
  518. 5140 PRINT "PNEUMONIA"
  519. 5150 GOTO 5170
  520. 5160 PRINT "INJURIES"
  521. 5170 PRINT
  522. 5180 PRINT "DUE TO YOUR UNFORTUNATE SITUATION, THERE ARE A FEW"
  523. 5190 PRINT "FORMALITIES WE MUST GO THROUGH"
  524. 5200 PRINT
  525. 5210 PRINT "WOULD YOU LIKE A MINISTER?"
  526. 5220 INPUT C$
  527. 5230 PRINT "WOULD YOU LIKE A FANCY FUNERAL?"
  528. 5240 INPUT C$
  529. 5250 PRINT "WOULD YOU LIKE US TO INFORM YOUR NEXT OF KIN?"
  530. 5260 INPUT C$
  531. 5270 IF C$="YES" THEN 5310
  532. 5280 PRINT "BUT YOUR AUNT SADIE IN ST. LOUIS IS REALLY WORRIED ABOUT YOU"
  533. 5290 PRINT
  534. 5300 GOTO 5330
  535. 5310 PRINT "THAT WILL BE $4.50 FOR THE TELEGRAPH CHARGE."
  536. 5320 PRINT
  537. 5330 PRINT "WE THANK YOU FOR THIS INFORMATION AND WE ARE SORRY YOU"
  538. 5340 PRINT "DIDN'T MAKE IT TO THE GREAT TERRITORY OF OREGON"
  539. 5350 PRINT "BETTER LUCK NEXT TIME"
  540. 5360 PRINT
  541. 5370 PRINT
  542. 5380 PRINT TAB(30);"SINCERELY"
  543. 5390 PRINT
  544. 5400 PRINT TAB(17);"THE OREGON CITY CHAMBER OF COMMERCE"
  545. 5410 STOP
  546. 5420 REM ***FINAL TURN***
  547. 5430 F9=(2040-M2)/(M-M2)
  548. 5440 F=F+(1-F9)*(8+5*E)
  549. 5450 PRINT
  550. 5460 REM **BELLS IN LINES 5470,5480**
  551. 5470 PRINT "YOU FINALLY ARRIVED AT OREGON CITY"
  552. 5480 PRINT "AFTER 2040 LONG MILES---HOORAY!!!!!"
  553. 5490 PRINT "A REAL PIONEER!"
  554. 5500 PRINT
  555. 5510 F9=INT(F9*14)
  556. 5520 D3=D3*14+F9
  557. 5530 F9=F9+1
  558. 5540 IF F9<8 THEN 5560
  559. 5550 F9=F9-7
  560. 5560 GOTO F9 OF 5570,5590,5610,5630,5650,5670,5690
  561. 5570 PRINT "MONDAY ";
  562. 5580 GOTO 5700
  563. 5590 PRINT "TUESDAY ";
  564. 5600 GOTO 5700
  565. 5610 PRINT "WEDNESDAY ";
  566. 5620 GOTO 5700
  567. 5630 PRINT "THURSDAY ";
  568. 5640 GOTO 5700
  569. 5650 PRINT "FRIDAY ";
  570. 5660 GOTO 5700
  571. 5670 PRINT "SATURDAY ";
  572. 5680 GOTO 5700
  573. 5690 PRINT "SUNDAY ";
  574. 5700 IF D3>124 THEN 5740
  575. 5710 D3=D3-93
  576. 5720 PRINT "JULY ";D3;" 1847"
  577. 5730 GOTO 5920
  578. 5740 IF D3>155 THEN 5780
  579. 5750 D3=D3-124
  580. 5760 PRINT "AUGUST ";D3;" 1847"
  581. 5770 GOTO 5920
  582. 5780 IF D3>185 THEN 5820
  583. 5790 D3=D3-155
  584. 5800 PRINT "SEPTEMBER ";D3;" 1847"
  585. 5810 GOTO 5920
  586. 5820 IF D3>216 THEN 5860
  587. 5830 D3=D3-185
  588. 5840 PRINT "OCTOBER ";D3;" 1847"
  589. 5850 GOTO 5920
  590. 5860 IF D3>246 THEN 5900
  591. 5870 D3=D3-216
  592. 5880 PRINT "NOVEMBER ";D3;" 1847"
  593. 5890 GOTO 5920
  594. 5900 D3=D3-246
  595. 5910 PRINT "DECEMBER ";D3;"1847"
  596. 5920 PRINT
  597. 5930 PRINT "FOOD","BULLETS","CLOTHING","MISC. SUPP.","CASH"
  598. 5940 IF B>0 THEN 5960
  599. 5950 LET B=0
  600. 5960 IF C>0 THEN 5980
  601. 5970 LET C=0
  602. 5980 IF M1>0 THEN 6000
  603. 5990 LET M1=0
  604. 6000 IF T>0 THEN 6020
  605. 6010 LET T=0
  606. 6020 IF F>0 THEN 6040
  607. 6030 LET F=0
  608. 6040 PRINT INT(F),INT(B),INT(C),INT(M1),INT(T)
  609. 6050 PRINT
  610. 6060 PRINT TAB(11);"PRESIDENT JAMES K. POLK SENDS YOU HIS"
  611. 6070 PRINT TAB(17);"HEARTIEST CONGRATULATIONS"
  612. 6080 PRINT
  613. 6090 PRINT TAB(11);"AND WISHES YOU A PROSPEROUS LIFE AHEAD"
  614. 6100 PRINT
  615. 6110 PRINT TAB(22);"AT YOUR NEW HOME"
  616. 6120 STOP
  617. 6130 REM ***SHOOTING SUB-ROUTINE***
  618. 6131 REM THE METHOD OF TIMING THE SHOOTING (LINES 6130-6280)
  619. 6132 REM WILL VARY FROM SYSTEM TO SYSTEM.
  620. 6140 DIM S$[4]
  621. 6143 S6=INT(RND(0)*4+1)
  622. 6145 GOTO S6 OF 6150,6160,6170,6180
  623. 6150 S$="BANG"
  624. 6155 GOTO 6200
  625. 6160 S$="BLAM"
  626. 6165 GOTO 6200
  627. 6170 S$="POW"
  628. 6175 GOTO 6200
  629. 6180 S$="WHAM"
  630. 6200 PRINT "TYPE ";S$
  631. 6210 ENTER 255,B1,C$
  632. 6240 B1=B1-(D9-1)
  633. 6250 PRINT
  634. 6255 IF B1>0 THEN 6260
  635. 6257 B1=0
  636. 6260 IF C$=S$ THEN 6280
  637. 6270 B1=100
  638. 6280 RETURN
  639. 6290 REM ***ILLNESS SUB-ROUTINE***
  640. 6300 IF 100*RND(0)<10+35*(E-1) THEN 6370
  641. 6310 IF 100*RND(0)<100-(40/4**E-1)) THEN 6410
  642. 6320 PRINT "SERIOUS ILLNESS---"
  643. 6330 PRINT "YOU MUST STOP FOR MEDICAL ATTENTION"
  644. 6340 M1=M1-10
  645. 6350 S4=1
  646. 6360 GOTO 6440
  647. 6370 PRINT "MILD ILLNESS---MEDICINE USED"
  648. 6380 M=M-5
  649. 6390 M1=M1-2
  650. 6400 GOTO 6440
  651. 6410 PRINT "BAD ILLNESS---MEDICINE USED"
  652. 6420 M=M-5
  653. 6430 M1=M1-5
  654. 6440 IF M1<0 THEN 5110
  655. 6450 IF L1=1 THEN 4940
  656. 6460 GOTO 4710
  657. 6470 REM ***IDENTIFICATION OF VARIABLES IN THE PROGRAM***
  658. 6480 REM A = AMOUNT SPENT ON ANIMALS
  659. 6490 REM B = AMOUNT SPENT ON AMMUNITION
  660. 6500 REM B1 = ACTUAL RESPONSE TIME FOR INPUTTING "BANG"
  661. 6510 REM B3 = CLOCK TIME START OF INPUTTING "BANG"
  662. 6520 REM C = AMOUNT SPENT ON CLOTHING
  663. 6530 REM C1 = FLAG FOR INSUFFICIENT CLOTHING IN COLD WEATHER
  664. 6540 REM C$ = YES/NO RESPONSE TO QUESTIONS
  665. 6550 REM D1 = COUNTER IN GENERATING EVENTS
  666. 6560 REM D3 = TURN NUMBER FOR SETTING DATE
  667. 6570 REM D4 = CURRENT DATE
  668. 6580 REM D9 = CHOICE OF SHOOTING EXPERTISE LEVEL
  669. 6590 REM E = CHOICE OF EATING
  670. 6600 REM F = AMOUNT SPENT ON FOOD
  671. 6610 REM F1 = FLAG FOR CLEARING SOUTH PASS
  672. 6620 REM F2 = FLAG FOR CLEARING BLUE MOUNTAINS
  673. 6630 REM F9 = FRACTION OF 2 WEEKS TRAVELED ON FINAL TURN
  674. 6640 REM K8 = FLAG FOR INJURY
  675. 6650 REM L1 = FLAG FOR BLIZZARD
  676. 6660 REM M = TOTAL MILEAGE WHOLE TRIP
  677. 6670 REM M1 = AMOUNT SPENT ON MISCELLANEOUS SUPPLIES
  678. 6680 REM M2 = MILEAGE UP THROUGH PREVIOUS TURN
  679. 6690 REM M9 = FLAG FOR CLEARING SOUTH PASS IN SETTING MILEAGE
  680. 6700 REM P = AMOUNT SPENT ON ITEMS AT FORT
  681. 6710 REM R1 = RANDOM NUMBER IN CHOOSING EVENTS
  682. 6720 REM S4 = FLAG FOR ILLNESS
  683. 6730 REM S5 = ""HOSTILITY OF RIDERS"" FACTOR
  684. 6740 REM S6 = SHOOTING WORD SELECTOR
  685. 6750 REM S$ = VARIATIONS OF SHOOTING WORD
  686. 6760 REM T = CASH LEFT OVER AFTER INITIAL PURCHASES
  687. 6770 REM T1 = CHOICE OF TACTICS WHEN ATTACKED
  688. 6780 REM X = CHOICE OF ACTION FOR EACH TURN
  689. 6790 REM X1 = FLAG FOR FORT OPTION
  690. 6800 END