home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 163
/
163.d81
/
swat.opts.maker
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
2KB
|
74 lines
10 rem swat q&d options maker
20 rem change lines 40-193 then run
30 rem
40 jp=5000: rem jackpot (100000 max)
50 b=10: rem coins per line (1-10)
60 cu=3: rem cutoff number (1-5)
70 fl=2: rem game type (1-9 only)
80 : rem 1=no r/b 2=r/b 3 3=r/b 5 4=race 3
90 : rem 5=race 5 6=bonus 3 7=bonus 5 8=910jqka
100 : rem 9=910jqka with wild
110 mu=1: rem race/bonus tie breaker (0=races 1=bonus)
120 pl=13: rem number of lines played (5 or 13 only)
130 ar=0: rem arrow animation (0=off 1=on)
140 c1=6: rem car 1 color (1-15)
150 c2=3: rem car 2 color (1-15)
160 c3=7: rem car 3 color (1-15)
170 c4=2: rem car 4 color (1-15)
180 c5=5: rem car 5 color (1-15)
190 cr=1000: rem credits
191 b1=5000: rem bonus high number
192 b2=2500: rem bonus middle number
193 b3=1000: rem bonus low number
200 rem
210 rem simple error checking of data
220 rem
230 rem if program stops with a break
240 rem in xxxx, re-list program and
250 rem fix data that is out of range
260 rem
270 ifjp<1orjp>100000thenstop
280 ifb<1orb>10thenstop
290 ifcu<1orcu>5thenstop
300 iffl<1orfl>9thenstop
310 ifmu<>0andmu<>1thenstop
320 ifpl<>5andpl<>13thenstop
330 ifar<>0andar<>1thenstop
340 ifc1<1orc1>15thenstop
350 ifc2<1orc2>15thenstop
360 ifc3<1orc3>15thenstop
370 ifc4<1orc4>15thenstop
380 ifc5<1orc5>15thenstop
390 ifcr<1thenstop
391 ifb1<1thenstop
392 ifb2<1thenstop
393 ifb3<1thenstop
400 rem
410 rem scratch old file
420 rem
430 dv=peek(186):ifdv<8thendv=8
440 open15,dv,15,"s0:swat.options":close15
450 rem
460 rem write new file to active drive
470 rem
480 open2,dv,2,"swat.options,p,w"
490 print#2,jp
500 print#2,b
510 print#2,cu
520 print#2,fl
530 print#2,mu
540 print#2,pl
550 print#2,ar
560 print#2,c1
570 print#2,c2
580 print#2,c3
590 print#2,c4
600 print#2,c5
610 print#2,cr
611 print#2,b1
612 print#2,b2
613 print#2,b3
620 close2
630 end
10000 open15,8,15,"s0:swat.opts.maker":close15:save"swat.opts.maker",8:end