Home » Recent acquisitions » Commodore_16 » tape009b_c16_commodore_16_games_pack_1.wav » star trader
star trader
This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.
Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.
Tape/disk: | Home » Recent acquisitions » Commodore_16 » tape009b_c16_commodore_16_games_pack_1.wav |
Filename: | star trader |
Read OK: | ✔ |
File size: | 294D bytes |
Load address: | 1001 |
Exec address: | 0000 |
File contents
10 N$="<clr><black> STAR TRADER":S$="BOLT BIN ":VOL8 20 PRINT"<black>";N$:PRINT"<cursor down> PLEASE WAIT..." 30 RC$="<cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right>" 40 NL$=" " 50 CY$="<home><cursor down><cursor down><cursor down><cursor down><cursor down><cursor down><cursor down><cursor down><cursor down><cursor down><cursor down><cursor down><cursor down>":L$="🭸🭸🭸🭸🭸🭸🭸🭸🭸🭸🭸🭸🭸🭸🭸🭸🭸🭸":CD$="<cursor down><cursor down><cursor down><cursor down><cursor down><cursor down><cursor down><cursor down><cursor down><cursor down>" 60 L1$="🭸🭸🭸🭸🭸🭸🭸🭸🭸🭸┼🭸🭸🭸🭸🭸🭸🭸🭸🭸🭸🭸┼🭸🭸🭸🭸🭸🭸🭸🭸🭸🭸🭸🭸🭸🭸🭸" 70 LP=0:MS=0:DF=0:DIMW%(9,1):DIMP(9,6):DIMPL$(9):SS=100:L=0 80 DIMPF(9,3):DIMGD(8,1):DIMTP(8) 90 DEFFNX(D)=INT(RND(0)*D*8-D*3) 100 DEFFNDS(D)=INT(SQR(ABS(P(D,0)-P(L,0))^2+ABS(P(D,1)-P(L,1))^2+ABS(P(D,2)-P(L,2))^2)) 110 RESTORE 120 DATASIRIUS,PROCYON,WESEN,ALTAIR,DENEB,DUBHE,VEGA,CAPELLA,CASTOR,POLLUX,ANTARES 130 DATAZOSMA,RIGEL,MEGREZ,MINTAKA,SAIPH,KOCHAB,PHAEDA 140 DATAETAMIN,ERIDANE,WOLF,HAMAL,ARIADNE 150 FORI=1TO9:IFRND(0)<.333THENREADPL$(I):READD$:GOTO180 160 IFRND(0)<.333THENREADD$:READPL$(I):GOTO180 170 READD$:READPL$(I) 180 P(I,0)=FNX(I):P(I,1)=FNX(I):P(I,2)=FNX(I) 190 P(I,3)=91-10*I+INT(RND(0)*15)+INT(RND(0)*15) 200 P(I,4)=21-2*I-INT(RND(0)*3):P(I,5)=INT(2000/(P(I,3)*P(I,4))+1) 210 P(I,6)=FNDS(I) 220 NEXTI:PL$(0)="SOL":P(0,3)=110+INT(RND(0)*20):P(0,4)=20:P(0,5)=1 230 DIMT$(9):T$(0)="🭲0:FOOD ":T$(1)="🭲1:METALS " 240 T$(6)="🭲6:GEMS " 250 T$(2)="🭲2:WEAPONS ":T$(3)="🭲3:CYBORGS " 260 T$(4)="🭲4:URANIUM ":T$(5)="🭲5:DRUGS " 270 T$(7)="🭲7:FUEL ":T$(8)="🭲8:REPAIRS " 280 COLOR0,2:COLOR4,2 290 PRINT"<clr> WELCOME TO STAR TRADER!" 300 INPUT"<cursor down> ENTER NAME OF YOUR SHIP";S$:PRINT"<clr>" 310 GD(7,1)=10:CS=5000:CR=-5000:SD=5+INT(RND(0)*200)/100:GOSUB2200:GOSUB690:B=2*CS+500 320 GETA$:IFA$=""THEN320 330 IFA$="Q"THEN530 340 IFA$="I"THENGOSUB690:GOTO320 350 IFA$="M"THENGOSUB870:GOTO320 360 IFA$="J"THENGOSUB990:GOTO320 370 IFA$="B"ANDL=0ANDB>0THENGOSUB2400:GOTO320 380 IFA$="D"ANDL=0ANDCS>0THENGOSUB2480:GOTO320 390 IFA$="T"THENGOSUB1270:GOTO320 400 IFA$="U"ANDL=0THENGOSUB570:GOTO320 410 IFA$="L"ANDL=0THENGOSUB630:GOTO320 420 IFASC(A$)=13THEN320 430 PRINTN$;"<home><cursor down><cursor down><red> VALID COMMANDS ARE :":PRINT"<cursor down> 'I' CARGO AND SHIP STATUS" 440 PRINT"<cursor down> 'J' HYPER JUMP CHART":PRINT"<cursor down> 'T' TRADE TABLE" 450 PRINT"<cursor down> 'M' SYSTEM LIBRARY" 460 PRINT"<cursor down> 'Q' TO QUIT GAME" 470 PRINT"<cursor down> 'U' UNLOAD SHIP TO WAREHOUSE" 480 PRINT"<cursor down> 'L' LOAD SHIP FROM WAREHOUSE" 490 PRINT"<cursor down> 'B' BORROW CASH FROM BANK" 500 PRINT"<cursor down> 'D' DEPOSIT CASH IN BANK" 510 GETA$:IFA$=""THEN510 520 GOTO330 530 PRINT"<cursor down><cursor down><cursor down> QUITTING: ARE YOU SURE ?"; 540 GETA$:IFA$=""THEN540 550 IFA$="Y"THEN2860 560 GOSUB690:GOTO320 570 IN=-1:I$="":PRINT"<home>";CY$;NL$ 580 PRINTCY$;"<pink> UNLOADING "; 590 GOSUB1620:IFIN>6THENSOUND1,200,5:GOTO590 600 PRINTRIGHT$(T$(IN),8);:INPUTN:IFINT(N)>GD(IN,1)ORN<0THENSOUND1,200,5:GOTO570 610 GD(IN,0)=GD(IN,0)+INT(N):GD(IN,1)=GD(IN,1)-INT(N) 620 PRINTCY$;NL$:GOSUB2360:GOSUB850:RETURN 630 IN=-1:I$="":PRINTCY$;NL$ 640 PRINTCY$;"<pink> LOADING "; 650 GOSUB1620:IFIN>6THENSOUND1,200,5:GOTO650 660 PRINTRIGHT$(T$(IN),8);:INPUTN:IFINT(N)>GD(IN,0)ORN<0THENSOUND1,200,5:GOTO630 670 GD(IN,1)=GD(IN,1)+INT(N):GD(IN,0)=GD(IN,0)-INT(N) 680 PRINTCY$;NL$:GOSUB2360:GOSUB850:RETURN 690 PRINTN$:PRINT"╭";L$;"╮╭";L$;"╮"; 700 PRINT"│ WAREHOUSE (SOL) 🭲🭲 🭲"; 710 PRINT"<home><cursor down><cursor down><cursor right><cursor right><cursor right><cursor right><cursor right>";RC$;S$ 720 PRINT"├";L$;"┤├";L$;"┤"; 730 FORI=0TO6:PRINTT$(I);" 🭲";T$(I);" 🭲";:NEXT 740 PRINT"<black>╰";L$;"╯╰";L$;"╯":PRINT"<cursor down><cursor down><cursor down>" 750 GOSUB2360:GOSUB840:GOSUB2460:GOSUB850 760 PRINTCY$;"<cursor down><cursor down><cursor down><cursor down><cursor down><black> SHIP DATA FOR ";S$ 770 PRINT"<cursor down><light blue> TONNAGE <brown>";:PRINTUSING"#######";SS; 780 PRINT"<light blue> DAMAGE <brown>";:PRINTUSING"#####";DM 790 PRINT"<light blue><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right>FUEL <brown>";:PRINTUSING"#####.#";GD(7,1) 800 PRINT:PRINT"<light blue> LASER PODS <brown>";:PRINTUSING"#####";LP; 810 PRINT"<light blue> DEFLECTORS<brown>";:PRINTUSING"#####";DF 820 PRINT"<light blue> MISSILES <brown>";:PRINTUSING"#######";MS; 830 RETURN 840 PRINTCY$;"<green> ";PL$(L);" STARDATE ";:PRINTUSING"#####.##";SD;:RETURN 850 CC=SS:FORI=0TO6:CC=CC-GD(I,1):NEXT:CC=CC-INT(GD(7,1))-10*(LP+DF)-MS 860 PRINTCY$;"<light blue><cursor down><cursor down><cursor down><cursor down><cursor down><cursor down><cursor down><cursor down><cursor right><cursor right>CARGO CAP.<brown>";:PRINTUSING"#######";CC:RETURN 870 PRINTN$:PRINT:PRINT"SYSTEM","POPL. TECH. AGRICULTURE":PRINT 880 FORI=0TO9:PRINT:IFL=ITHENPRINT"*"; 890 PRINTPL$(I),P(I,3),P(I,4),P(I,5):NEXT 900 RETURN 910 PRINTN$:L1=L 920 PRINT"<cursor down><light green> DESTINATION SYSTEM <red>";PL$(L1) 930 FORI=0TO4:PRINT"<cursor down><black>";CHR$(I+48);":<medium gray>";:IFI=LTHENPRINT"<reverse on>"; 940 PRINTPL$(I);"<rev off><blue>";,P(I,6),; 950 PRINT"<black>";CHR$(I+53);":<medium gray>";:IFI+5=LTHENPRINT"<reverse on>"; 960 PRINTPL$(I+5);"<rev off><blue>";,P(I+5,6):NEXTI 970 PRINT"<cursor down><cursor down><light blue> '0'..'9' TO SELECT DESTINATION":PRINT" THEN RETURN TO LAUNCH." 980 RETURN 990 IFCC<0ORGD(7,1)<=0THENSOUND1,200,5:RETURN 1000 GOSUB910 1010 GETA$:IFA$=""THEN1010 1020 IFA$="Q"THEN530 1030 IFL1=LANDASC(A$)=13THENGOSUB690:GOSUB840:RETURN 1040 IFASC(A$)<>13THEN1110 1050 K=P(L1,6):L=L1:FORZ=1TOK:GOSUB1140:SD=SD+.01:IFCR>0THENCR=CR+CR/500 1060 IFCR<0THENCR=CR+CR/150 1070 NEXTZ 1080 FORI=0TO9:P(I,6)=FNDS(I):NEXT:GOSUB2200:SOUND1,1000,10 1090 IFRND(0)*CR*CR/1000000>50000/SDTHENPRINT"<clr><black> YOUR SHIP WAS REPOSESSED...":GOTO2860 1100 B=2*CS+500:GOSUB2540:GOSUB690:RETURN 1110 IFASC(A$)<48ORASC(A$)>57THEN1010 1120 L1=VAL(A$):PRINT"<red><home><cursor down><cursor down><cursor right><cursor right><cursor right><cursor right><cursor right>";RC$;" <cursor left><cursor left><cursor left><cursor left><cursor left><cursor left><cursor left><cursor left><cursor left>";PL$(L1); 1130 GOTO1010 1140 GD(7,1)=GD(7,1)-0.1 1150 IFGD(7,1)<0THENPRINT"<clr><red> YOU RAN OUT OF FUEL IN MID-FLIGHT...":GOTO2860 1160 IFRND(0)>.06THENRETURN 1170 IFRND(0)>.3THEN1220 1180 DM=DM+INT(RND(0)*5+1):SOUND3,400,20 1190 PRINTCY$;"<cursor down><cursor down><cursor down><cursor down><cursor down><cursor down> <flash on>SPACE DEBRIS!!<flash off>":FORJ=1TO400:NEXTJ 1200 IFDM>=SSTHENPRINT"<clr><cursor down><cursor down><cursor down><black>YOUR SHIP WAS DESTROYED BY A METEOR":GOTO2860 1210 RETURN 1220 IFRND(0)>.1THEN1250 1230 GD(7,1)=GD(7,1)-INT(RND(0)*10)-1:SOUND3,1000,20 1240 PRINTCY$;"<cursor down><cursor down><cursor down><cursor down><cursor down><cursor down><cursor down><cursor down> <flash on>MIS-JUMP!!<flash off>":FORJ=1TO400:NEXTJ:RETURN 1250 IFRND(0)>L^2/120THENRETURN 1260 GOSUB1710:RETURN 1270 PRINTN$:PRINT"<cursor down><black> TRADE PRICES FOR ";PL$(L) 1280 PRINT"╭🭸🭸🭸🭸🭸🭸🭸🭸🭸🭸┬🭸🭸🭸🭸🭸🭸🭸🭸🭸🭸🭸┬🭸🭸🭸🭸🭸🭸🭸🭸🭸🭸🭸🭸🭸🭸🭸╮" 1290 PRINT"🭲 ITEM 🭲 PRICE 🭲 OWNED 🭲"; 1300 PRINT"├";L1$;"┤" 1310 FORI=0TO6:PRINTLEFT$(T$(I),3);:IFIX=ITHENPRINT"<reverse on>"; 1320 PRINTRIGHT$(T$(I),8);"<rev off>🭲";:PRINT USING"#######.##";TP(I); 1330 PRINT" 🭲 🭲":NEXT 1340 PRINT"├";L1$;"┤" 1350 PRINTT$(7);"🭲";:PRINTUSING"#######.##";TP(7);:PRINT" 🭲 🭲"; 1360 PRINT"├";L1$;"┤" 1370 PRINTT$(8);"🭲";:PRINT USING"#######.##";TP(8);:PRINT" 🭲 🭲"; 1380 PRINT"╰🭸🭸🭸🭸🭸🭸🭸🭸🭸🭸┴🭸🭸🭸🭸🭸🭸🭸🭸🭸🭸🭸┴🭸🭸🭸🭸🭸🭸🭸🭸🭸🭸🭸🭸🭸🭸🭸╯" 1390 PRINT"'B'-BUY 'S'-SELL 'Q'-QUIT 'R'-REPAIR":DN$="":GOSUB1650 1400 IN=-1:I$="":GD(8,1)=0 1410 PRINTCY$;CD$;NL$ 1420 GETA$:IFA$=""THEN1420 1430 IFA$="Q"THENGOSUB690:RETURN 1440 IFA$<>"R"THEN1480 1450 PRINTCY$;CD$;"<pink> REPAIRS ";DM;:INPUTN:IFN>DMTHENN=DM 1460 IFINT(N)*TP(8)>CSTHENN=INT(CS/TP(8)) 1470 DM=DM-INT(N):CS=CS-INT(N)*TP(8):GOSUB1650:GOTO1410 1480 IFA$<>"B"THEN1560 1490 PRINTCY$;CD$;"<medium gray> BUYING "; 1500 IFIN<0THENGOSUB1620 1510 PRINTRIGHT$(I$,8);"("; 1520 PRINT USING"######";INT(CS/TP(IN));:PRINT")"; 1530 PRINT" <cursor left><cursor left><cursor left><cursor left><cursor left><cursor left><cursor left><cursor left><cursor left><cursor left><cursor left>"; 1540 INPUTN:IFTP(IN)*INT(N)>CSTHENN=INT(CS/TP(IN)) 1550 CS=CS-TP(IN)*INT(N):GD(IN,1)=GD(IN,1)+N:GOSUB1650:IN=-1:GOTO1410 1560 IFA$<>"S"THENSOUND1,200,5:GOTO1410 1570 PRINTCY$;CD$;"<orange> SELLING ";:IFIN>=0THENPRINT"<cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right>";:GOTO1590 1580 GOSUB1620:PRINTRIGHT$(I$,8);:IFIN>7THENSOUND1,200,5:IN=-1:GOTO1410 1590 PRINT" <cursor left><cursor left><cursor left><cursor left><cursor left><cursor left><cursor left><cursor left><cursor left><cursor left><cursor left><cursor left><cursor left><cursor left><cursor left><cursor left><cursor left><cursor left>"; 1600 INPUTN:IFINT(N)>GD(IN,1)THENN=GD(IN,1) 1610 CS=CS+TP(IN)*INT(N):GD(IN,1)=GD(IN,1)-N:GOSUB1650:IN=-1:GOTO1410 1620 GETA$:IFA$=""THEN1620 1630 IFASC(A$)>=48ANDASC(A$)<=55THENIN=ASC(A$)-48:I$=T$(IN):RETURN 1640 SOUND1,200,5:GOTO1620 1650 GOSUB850:PRINTCY$;"<red><cursor down><cursor down><cursor down><cursor down><cursor down><cursor down><cursor down> CASH <cursor left><cursor left><cursor left><cursor left><cursor left><cursor left><cursor left><cursor left><cursor left><cursor left><cursor left><cursor left>"; 1660 PRINTUSING "$###########.##";CS 1670 DN$="":FORI=0TO6:PRINT"<home><blue><cursor down><cursor down><cursor down><cursor down><cursor down><cursor down><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right>";DN$;RC$; 1680 PRINT USING"########";GD(I,1):DN$=DN$+"<cursor down>":NEXT:DN$=DN$+"<cursor down><cursor down><cursor down><cursor down><cursor down><cursor down><cursor down>" 1690 PRINT"<home><blue><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right>";DN$;RC$;:PRINTUSING"#####.#";GD(7,1): 1700 PRINT"<home><blue><cursor down><cursor down><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right>";DN$;RC$;:PRINTUSING"######";DM:RETURN 1710 PRINT"<clr>":COLOR1,8:COLOR0,2,4:DR=0:PS=480:SK=0:OS=0 1720 SN=0:BT=500:FORI=1TOINT(SS/100):SN=SN+INT(RND(0)*2):BT=BT+500+INT(RND(0)*600):NEXT 1730 PF(0,0)=SS+INT(RND(0)*SS/100+2)*100:IFSN>9THENPF(0,0)=PF(0,0)+(SN-9)*100:SN=9 1740 PF(0,1)=INT(RND(0)*SS/100+2)+INT(RND(0)*L/2) 1750 FORJ=1TO9:PF(J,0)=INT(RND(0)*SS/10+SS/10):PF(J,1)=INT(RND(0)*SS/500+1) 1760 IFJ>SNTHENPF(J,0)=0 1770 NEXT 1780 FORJ=0TO9:PF(J,3)=30+INT(RND(0)*9):PF(J,2)=8+INT(RND(0)*6):NEXT:TG=0:OS=SN+1 1790 DR=DR-10*DF:IFDR<0THENDR=0 1800 DM=DM+INT(DR):DR=DR-INT(DR) 1810 IFGD(7,1)<=0THENPRINT"<home><white><cursor down><cursor down>YOU RAN OUT OF FUEL...":DM=SS+1:FORI=1TO1000:NEXT 1820 IFDM>=SSTHENPRINT"<clr><black><cursor right><cursor right><cursor right><cursor right><cursor right>LOOTED BY PIRATES!":FORI=0TO6:GD(I,1)=0:NEXT:CS=0:GOTO2860 1830 PRINTN$:PRINT"<yellow> 'E' EVADE 'C' CLOSE '0'..'9' TARGET":PRINT" 'M' NUKE 'L' LASER" 1840 GOSUB760:GOSUB2050 1850 IFSN=-1THEN1930 1860 PRINTCY$;RC$;CD$;"<cursor down><light green> TARGET ";:PRINTUSING"##";TG;:GETA$:IFA$=""THEN1860 1870 IFA$="L"ANDLP>0ANDPF(TG,0)>0THENGOSUB1970:GOTO1790 1880 IFA$="M"ANDMS>0ANDPF(TG,0)>0THENGOSUB2000:GOTO1790 1890 IFA$="E"ANDGD(7,1)>0THENGOSUB2040:GOTO1790 1900 IFA$="C"THENIFRND(0)<.7THENEV=-3:GOTO1790 1910 IFASC(A$)>47ANDASC(A$)<58THENTG=ASC(A$)-48:GOTO1860 1920 GOTO1860 1930 COLOR0,2:PRINT"<clr>":IFOS<>SKTHENRETURN 1940 PRINT"<clr><cursor down><cursor down><black>YOU DEFEATED THE PIRATE FLEET" 1950 CS=CS+BT:PRINT"<cursor down>AND COLLECTED ";:PRINTUSING"########";BT;:PRINT" IN BOOTY!" 1960 FORI=1TO2000:NEXT:PRINT"<clr>":RETURN 1970 SOUND3,1020,8:SOUND1,970,8:PF(TG,0)=PF(TG,0)-(150*LP)/PF(TG,3) 1980 IFPF(TG,0)<=0THENSOUND3,900,20:SN=SN-1:SK=SK+1 1990 RETURN 2000 SOUND3,600,20:MS=MS-1:IFRND(0)*100<PF(TG,3)THENRETURN 2010 SOUND3,800,30:PF(TG,0)=PF(TG,0)-INT(RND(0)*50)-INT(RND(0)*50) 2020 IFPF(TG,0)<=0THENSOUND3,950,20:SN=SN-1:SK=SK+1 2030 RETURN 2040 GD(7,1)=GD(7,1)-.1:EV=INT(RND(0)*3+1):RETURN 2050 POKE3072+PS,42:POKE2048+PS,127 2060 FORJ=9TO0STEP-1:IFPF(J,0)<=0THEN2180 2070 MV=INT(RND(0)*3):IFPF(J,3)+EV-MV>=1THENPF(J,3)=PF(J,3)+EV-MV 2080 IFPF(J,3)>39THENPF(J,0)=0:SN=SN-1:GOTO2180 2090 IFINT(PS/40)>PF(J,2)ANDRND(0)<.3THENPF(J,2)=PF(J,2)+1 2100 IFINT(PS/40)<PF(J,2)ANDRND(0)<.3THENPF(J,2)=PF(J,2)-1 2110 IFJ=0THENPOKE3072+PF(0,2)*40+PF(0,3),65:POKE2048+PF(0,2)*40+PF(0,3),127:GOTO2140 2120 POKE3072+PF(J,2)*40+PF(J,3)-40,J+48:POKE2048+PF(J,2)*40+PF(J,3)-40,113 2130 POKE3072+PF(J,2)*40+PF(J,3),87:POKE2048+PF(J,2)*40+PF(J,3),127 2140 IFRND(0)<PF(J,3)/40THEN2180 2150 SOUND3,1020-10*J,5:DX=(PF(J,1)*400)/(PF(J,3)^2) 2160 DR=DR+DX:IFRND(0)<DX/(SS-DM+DX)ANDDF>0THENSOUND3,1020,10:SOUND3,990,15:DF=DF-1 2170 IFRND(0)<DX/(SS-DM+DX)ANDLP>0THENSOUND3,1000,10:SOUND3,900,10:LP=LP-1 2180 NEXTJ 2190 EV=0:RETURN 2200 TP(0)=20/SQR(P(L,5)) 2210 TP(1)=2000/(5*P(L,4)+P(L,5)/5) 2220 TP(2)=40000/(10*P(L,4)+P(L,3)) 2230 TP(3)=(12000+INT(RND(0)*2000))/SQR(10*P(L,4)) 2240 TP(4)=100000/SQR(4*P(L,4)) 2250 TP(5)=100000/SQR(P(L,5)/2) 2260 TP(6)=15000*P(L,3)/(5*P(L,4)) 2270 TP(7)=100/SQR(2*P(L,4)) 2280 TP(8)=500-P(L,4)*22 2290 FORI=0TO7:IFRND(0)<.4THENTP(I)=TP(I)-RND(0)*(TP(I)/(7+L/2)):GOTO2310 2300 TP(I)=TP(I)+RND(0)*TP(I)/(10+2*L) 2310 NEXT:IX=INT(RND(0)*7):IFINT(RND(0)*10)<>LORRND(0)<50/(SD*10)THENIX=-1:RETURN 2320 NS=(RND(0)*P(L,3)+8)/4:G$="SHORTAGE":IFRND(0)<.5THENG$="GLUT":NS=4/NS 2330 PRINT"<clr><cursor down><cursor down><cursor down><light blue>THERE HAS BEEN A ";G$;" OF ";RIGHT$(T$(IX),8);"." 2340 PRINT"PRICES ARE <flash on>";:PRINTUSING"##.##";NS;:PRINT"<flash off> TIMES NORMAL!!!" 2350 FORI=1TO2500:NEXT:TP(IX)=TP(IX)*NS:RETURN 2360 DN$="" 2370 PRINT"<blue>":FORI=0TO6:PRINT"<home><cursor down><cursor down><cursor down><cursor down><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right>";DN$;:PRINT USING"########";GD(I,0) 2380 PRINT"<home><cursor down><cursor down><cursor down><cursor down><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right>";RC$;DN$;:PRINT USING"########";GD(I,1) 2390 DN$=DN$+"<cursor down>":NEXT:RETURN 2400 PRINTCY$;NL$ 2410 PRINTCY$;"<pink> BORROWING "; 2420 INPUTN:IFINT(N)>BTHENN=B 2430 CS=CS+INT(N):CR=CR-INT(N):B=B-INT(N):GOSUB2460 2440 PRINTCY$;NL$ 2450 RETURN 2460 PRINTCY$;"<red><cursor down><cursor down> CASH $ ";:PRINT USING"##############.##";CS 2470 PRINTCY$;"<red><cursor down><cursor down><cursor down> CREDIT $ ";:PRINT USING"##############.##";CR:RETURN 2480 PRINTCY$;NL$ 2490 PRINTCY$;"<pink> DEPOSITING "; 2500 INPUTN:IFINT(N)>CSTHENN=CS 2510 CS=CS-INT(N):CR=CR+INT(N):B=B+INT(N):GOSUB2460 2520 PRINTCY$;NL$ 2530 RETURN 2540 IFRND(0)>P(L,4)/40THENRETURN 2550 IFRND(0)>.2THEN2620 2560 CT=P(L,4)*100+1000*RND(0)+RND(0)*(CS/1000)+CS/1000 2570 IFCT>CSTHENRETURN 2580 PRINT"<clr><cursor down><cursor down><cursor down><green>YOU HAVE BEEN OFFERED A BIGGER SPACE-" 2590 PRINT"<cursor down>SHIP FROM A COMPANY ON ";PL$(L) 2600 PRINT"<cursor down>IT COSTS ";:PRINTUSING"########";CT;:PRINT" CR."; 2610 PRINT" WITH A TRADE-IN.":GOSUB2820:SS=SS+100:RETURN 2620 IFRND(0)>.25THEN2680 2630 CT=160*(25-P(L,4))+RND(0)*(CS/1000)+CS/1000 2640 IFCT>CSTHENRETURN 2650 PRINT"<clr><cursor down><cursor down><cursor down><blue>THERE IS A NEW LASER POD FOR SALE HERE." 2660 PRINT"<cursor down>IT COSTS A MERE ";:PRINTUSING"########";CT;:PRINT" CR." 2670 GOSUB2820:LP=LP+1:RETURN 2680 IFRND(0)>.15THEN2740 2690 CT=200*(25-P(L,4))+RND(0)*(CS/800)+CS/800 2700 IFCT>CSTHENRETURN 2710 PRINT"<clr><cursor down><cursor down><cursor down><red>THERE IS A DEFLECTOR SHIELD AVAILABLE" 2720 PRINT"<cursor down>COSTING JUST ";:PRINTUSING"########";CT;:PRINT" CR." 2730 GOSUB2820:DF=DF+1:RETURN 2740 CT=70*(25-P(L,4))+RND(0)*(CS/1000)+CS/1000:N=INT(RND(0)*P(L,4)/2+P(L,4)/3+1) 2750 IFCT*N>CSTHENN=INT(CS/CT) 2760 IFN=0THENRETURN 2770 PRINT"<clr><cursor down><cursor down><cursor down>";N;"<red> NUCLEAR MISSILES ARE OFFERED." 2780 PRINT"<cursor down>TOTAL COST IS";:PRINTUSING"########";CT*N;:PRINT" CR." 2790 INPUT"<cursor down>HOW MANY DO YOU WISH TO BUY";NM:IFNM<0THENNM=0 2800 IFNM>NTHENNM=N 2810 MS=MS+NM:CS=CS-NM*CT:RETURN 2820 PRINT"<cursor down>ARE YOU WILLING TO MAKE THE PURCHASE ?" 2830 GETA$:IFA$<>"Y"ANDA$<>"N"THEN2830 2840 IFA$="Y"THENCS=CS-CT 2850 PRINT"<clr>":RETURN 2860 PRINT"<red><cursor down><cursor down> CASH POSESSED ";CS:PRINT"<cursor down> BANK BALANCE ";CR;" 2870 PRINT"<pink><cursor down><cursor down> GOODS POSESSED<cursor down>" 2880 FORI=0TO6:PRINT"<green> ";T$(I);":<light blue>";GD(I,0)+GD(I,1):NEXT
9 N$�"�� STAR TRADER":S$�"BOLT BIN ":�8 e �"�";N$:�" PLEASE WAIT..."