home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Game Killer
/
Game_Killer.bin
/
1227.XEDIT.BAS
< prev
next >
Wrap
BASIC Source File
|
1993-03-21
|
24KB
|
527 lines
10 KEY OFF: CLS '************* path designation routine *******************
11 LOCATE 6, 35: PRINT "XEDIT 1.2"
12 LOCATE 7, 28: PRINT "X-WING Pilot File Editor"
13 LOCATE 8, 28: PRINT "Created by Keith Heitman"
14 LOCATE 10, 20: PRINT "Enter the path that exists to reach \XWING"
15 LOCATE 11, 20: PRINT "Example: C:\GAMES\XWING or C: (if in root)"
16 LOCATE 13, 20: INPUT "Path? ------> "; P$
20 CLS '********************** main menu routine **************************
21 LOCATE 8, 25: PRINT "X-Wing Pilot Utility Main Menu"
22 LOCATE 9, 25: PRINT "=-=-=-=-=-=--=-=-=-=--=-=-=-=-"
23 LOCATE 11, 27: PRINT "1. Restore Dead or Captured Pilot"
24 LOCATE 12, 27: PRINT "2. Change Rank"
25 LOCATE 13, 27: PRINT "3. Skill Level"
26 LOCATE 14, 27: PRINT "4. Award Battle Patch"
27 LOCATE 15, 27: PRINT "5. Award Medal"
28 LOCATE 16, 27: PRINT "6. Change TOD Mission"
29 LOCATE 17, 27: PRINT "7. Delete Pilot Record"
30 LOCATE 18, 27: PRINT "8. View TOD Cut Scenes"
31 LOCATE 19, 27: PRINT "9. Award Flight Badge"
32 LOCATE 20, 26: PRINT "10. Correct or Change Drive & Path"
59 LOCATE 21, 26: PRINT "11. Quit to DOS"
60 LOCATE 23, 25: INPUT "Enter your selection.... "; C
61 IF C = 11 GOTO 9000
62 IF C = 10 GOTO 10
63 IF C < 1 OR C > 11 GOTO 20
90 CLS : IF C = 7 GOTO 600 '** pilot log in routine ***********************
91 LOCATE 10, 29: PRINT "Pilot Log In Screen"
92 LOCATE 11, 29: PRINT "=-=-=-=-=-=-=-=-=-="
93 LOCATE 12, 23: INPUT "Enter Pilot Name without '.PLT'."; N$
94 IF N$ = "" GOTO 90
95 ON C GOTO 100, 200, 800, 300, 400, 1500, 600, 700, 2200
99 END
100 CLS : R$ = "" '********** pilot restoration routine *******************
101 F$ = P$ + "\" + N$ + ".PLT"
102 OPEN F$ FOR BINARY AS #1 LEN = 1
103 A$ = CHR$(0)
104 GET #1, 3, A$
105 A$ = CHR$(0)
106 PUT #1, 3, A$
107 CLOSE #1
110 LOCATE 12, 21: PRINT "Pilot " + N$ + " is ready to rock and roll!"
112 LOCATE 14, 23: INPUT "Restore another pilot? (Y/N)"; R$
113 IF R$ = "" GOTO 112
114 IF R$ = "Y" OR R$ = "y" GOTO 120
115 LOCATE 16, 25: PRINT "Returning to the Main Menu": FOR X = 1 TO 15000: NEXT X: GOTO 20
120 CLS
121 LOCATE 12, 20: INPUT "Enter Pilot Name without '.PLT'."; N$: GOTO 100
199 END
200 CLS : R = 0 '************ rank routines *****************************
201 LOCATE 8, 28: PRINT "Pilot Rank Selection Menu"
202 LOCATE 9, 28: PRINT "=-=-=-=-=-=-=-=-=-=-=-=-="
203 LOCATE 11, 33: PRINT "1. Cadet"
204 LOCATE 12, 33: PRINT "2. Flight Officer"
205 LOCATE 13, 33: PRINT "3. Lieutenant"
206 LOCATE 14, 33: PRINT "4. Captain"
207 LOCATE 15, 33: PRINT "5. Commander"
208 LOCATE 16, 33: PRINT "6. General"
209 LOCATE 18, 28: INPUT "Select Rank.... ", R: IF R = 0 GOTO 209
210 IF R < 1 OR R > 6 GOTO 200
211 F$ = P$ + "\" + N$ + ".PLT"
212 OPEN F$ FOR BINARY AS #1 LEN = 1
213 A$ = CHR$(0)
214 GET #1, 4, A$
215 IF R = 1 THEN A$ = CHR$(0): GOTO 230
216 IF R = 2 THEN A$ = CHR$(1): GOTO 230
217 IF R = 3 THEN A$ = CHR$(2): GOTO 230
218 IF R = 4 THEN A$ = CHR$(3): GOTO 230
219 IF R = 5 THEN A$ = CHR$(4): GOTO 230
220 IF R = 6 THEN A$ = CHR$(5)
230 PUT #1, 4, A$
240 CLOSE #1
250 CLS : LOCATE 12, 21: PRINT "Pilot " + N$ + " is ready to rock and roll!"
251 LOCATE 14, 23: INPUT "Promote another pilot? (Y/N)"; R$
252 IF R$ = "" GOTO 251
253 IF R$ = "Y" OR R$ = "y" GOTO 270
260 LOCATE 16, 27: PRINT "Returning to the Main Menu": FOR X = 1 TO 15000: NEXT X: GOTO 20
270 CLS
280 LOCATE 12, 20: INPUT "Enter Pilot Name without '.PLT'."; N$: GOTO 200
299 END
300 CLS : C = 0: R = 0 '***** battle patch routines *********************
301 LOCATE 8, 30: PRINT "Battle Patch Award Craft"
302 LOCATE 9, 30: PRINT "=-=-=-=-=-=-=-=-=-=-=-=-"
303 LOCATE 11, 35: PRINT "1. X-Wing"
304 LOCATE 12, 35: PRINT "2. A-Wing"
305 LOCATE 13, 35: PRINT "3. Y-Wing"
306 LOCATE 15, 30: INPUT "Select Craft... ", C
307 IF C < 1 OR C > 3 GOTO 300
310 CLS
311 LOCATE 8, 30: PRINT "Battle Patch Award Menu"
312 LOCATE 9, 30: PRINT "=-=-=-=-=-=-=-=-=-=-=-="
313 LOCATE 11, 33: PRINT "1. Battle Patch #1"
314 LOCATE 12, 33: PRINT "2. Battle Patch #2"
315 LOCATE 13, 33: PRINT "3. Battle Patch #3"
316 LOCATE 14, 33: PRINT "4. Battle Patch #4"
317 LOCATE 15, 33: PRINT "5. Battle Patch #5"
318 LOCATE 16, 33: PRINT "6. Battle Patch #6"
319 LOCATE 18, 30: INPUT "Select Patch... ", R
320 IF R < 1 OR R > 6 GOTO 310
321 F$ = P$ + "\" + N$ + ".PLT"
322 OPEN F$ FOR BINARY AS #1 LEN = 1
323 A$ = CHR$(0)
324 IF C = 1 AND R = 1 THEN GET #1, 545, A$: GOTO 342
325 IF C = 1 AND R = 2 THEN GET #1, 546, A$: GOTO 342
326 IF C = 1 AND R = 3 THEN GET #1, 547, A$: GOTO 342
327 IF C = 1 AND R = 4 THEN GET #1, 548, A$: GOTO 342
328 IF C = 1 AND R = 5 THEN GET #1, 549, A$: GOTO 342
329 IF C = 1 AND R = 6 THEN GET #1, 550, A$: GOTO 342
330 IF C = 2 AND R = 1 THEN GET #1, 561, A$: GOTO 342
331 IF C = 2 AND R = 2 THEN GET #1, 562, A$: GOTO 342
332 IF C = 2 AND R = 3 THEN GET #1, 563, A$: GOTO 342
333 IF C = 2 AND R = 4 THEN GET #1, 564, A$: GOTO 342
334 IF C = 2 AND R = 5 THEN GET #1, 565, A$: GOTO 342
335 IF C = 2 AND R = 6 THEN GET #1, 566, A$: GOTO 342
336 IF C = 3 AND R = 1 THEN GET #1, 577, A$: GOTO 342
337 IF C = 3 AND R = 2 THEN GET #1, 578, A$: GOTO 342
338 IF C = 3 AND R = 3 THEN GET #1, 579, A$: GOTO 342
339 IF C = 3 AND R = 4 THEN GET #1, 580, A$: GOTO 342
340 IF C = 3 AND R = 5 THEN GET #1, 581, A$: GOTO 342
341 IF C = 3 AND R = 6 THEN GET #1, 582, A$: GOTO 342
342 A$ = CHR$(1)
343 IF C = 1 AND R = 1 THEN PUT #1, 545, A$: GOTO 361
344 IF C = 1 AND R = 2 THEN PUT #1, 546, A$: GOTO 361
345 IF C = 1 AND R = 3 THEN PUT #1, 547, A$: GOTO 361
346 IF C = 1 AND R = 4 THEN PUT #1, 548, A$: GOTO 361
347 IF C = 1 AND R = 5 THEN PUT #1, 549, A$: GOTO 361
348 IF C = 1 AND R = 6 THEN PUT #1, 550, A$: GOTO 361
349 IF C = 2 AND R = 1 THEN PUT #1, 561, A$: GOTO 361
350 IF C = 2 AND R = 2 THEN PUT #1, 562, A$: GOTO 361
351 IF C = 2 AND R = 3 THEN PUT #1, 563, A$: GOTO 361
352 IF C = 2 AND R = 4 THEN PUT #1, 564, A$: GOTO 361
353 IF C = 2 AND R = 5 THEN PUT #1, 565, A$: GOTO 361
354 IF C = 2 AND R = 6 THEN PUT #1, 566, A$: GOTO 361
355 IF C = 3 AND R = 1 THEN PUT #1, 577, A$: GOTO 361
356 IF C = 3 AND R = 2 THEN PUT #1, 578, A$: GOTO 361
357 IF C = 3 AND R = 3 THEN PUT #1, 579, A$: GOTO 361
358 IF C = 3 AND R = 4 THEN PUT #1, 580, A$: GOTO 361
359 IF C = 3 AND R = 5 THEN PUT #1, 581, A$: GOTO 361
360 IF C = 3 AND R = 6 THEN PUT #1, 582, A$: GOTO 361
361 CLOSE #1
370 CLS : LOCATE 12, 21: PRINT "Pilot " + N$ + " is ready to rock and roll!"
380 LOCATE 14, 23: INPUT "Award another Battle Patch? (Y/N)"; R$
381 IF R$ = "" GOTO 370
382 IF R$ = "Y" OR R$ = "y" GOTO 390
383 LOCATE 16, 25: PRINT "Returning to the Main Menu": FOR X = 1 TO 15000: NEXT X: GOTO 20
390 CLS : R$ = ""
391 LOCATE 12, 25: INPUT "Enter same pilot? (Y/N) "; R$
392 IF R$ = "" GOTO 390
393 IF R$ = "Y" OR R$ = "y" GOTO 300
394 CLS
395 LOCATE 12, 20: INPUT "Enter Pilot Name without '.PLT'."; N$: GOTO 300
399 END
400 CLS : R = 0 '************** medals routines ***************************
401 LOCATE 8, 34: PRINT "Medal Awards Menu"
402 LOCATE 9, 25: PRINT "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="
403 LOCATE 11, 28: PRINT "1. Corellian Cross"
404 LOCATE 12, 28: PRINT "2. Mantooine Medallion"
405 LOCATE 13, 28: PRINT "3. Star of Alderaan"
406 LOCATE 14, 28: PRINT "4. Kalidor Crescent"
407 LOCATE 15, 28: PRINT "5. Bronze Cluster includes #4"
408 LOCATE 16, 28: PRINT "6. Silver Talons includes #4,#5"
409 LOCATE 17, 28: PRINT "7. Silver Scimitar includes #4,#5,#6"
410 LOCATE 18, 28: PRINT "8. Golden Wings includes #4,#5,#6,#7"
411 LOCATE 19, 28: PRINT "9. Diamond Eyes includes #4,#5,#6,#7#8"
419 LOCATE 21, 25: INPUT "Select Award... ", R
420 IF R < 1 OR R > 9 GOTO 400
421 F$ = P$ + "\" + N$ + ".PLT"
422 OPEN F$ FOR BINARY AS #1 LEN = 1
423 A$ = CHR$(0)
424 IF R = 1 THEN GET #1, 11, A$: GOTO 428
425 IF R = 2 THEN GET #1, 12, A$: GOTO 428
426 IF R = 3 THEN GET #1, 13, A$: GOTO 428
427 GET #1, 18, A$: GOTO 432
428 A$ = CHR$(1)
429 IF R = 1 THEN PUT #1, 11, A$: GOTO 440
430 IF R = 2 THEN PUT #1, 12, A$: GOTO 440
431 IF R = 3 THEN PUT #1, 13, A$: GOTO 440
432 IF R = 4 THEN A$ = CHR$(1): PUT #1, 18, A$: GOTO 440
435 IF R = 5 THEN A$ = CHR$(2): PUT #1, 18, A$: GOTO 440
436 IF R = 6 THEN A$ = CHR$(3): PUT #1, 18, A$: GOTO 440
437 IF R = 7 THEN A$ = CHR$(4): PUT #1, 18, A$: GOTO 440
438 IF R = 8 THEN A$ = CHR$(5): PUT #1, 18, A$: GOTO 440
439 IF R = 9 THEN A$ = CHR$(6): PUT #1, 18, A$: GOTO 440
440 CLOSE #1
441 CLS : LOCATE 12, 25: PRINT "Pilot " + N$ + " is ready to rock and roll!"
450 LOCATE 14, 27: INPUT "Award another medal? (Y/N)"; R$
451 IF R$ = "" GOTO 441
452 IF R$ = "Y" OR R$ = "y" GOTO 470
460 LOCATE 16, 29: PRINT "Returning to the Main Menu": FOR X = 1 TO 15000: NEXT X: GOTO 20
470 CLS : R$ = ""
471 LOCATE 12, 25: INPUT "Enter same pilot? (Y/N) "; R$
472 IF R$ = "Y" OR R$ = "y" GOTO 400
480 CLS
490 LOCATE 12, 25: INPUT "Enter Pilot Name without '.PLT'."; N$: GOTO 400
499 END
600 CLS : R$ = "" '************ delete pilot routines *********************
610 LOCATE 4, 28: PRINT "X-Wing Pilot Roster Listing"
620 LOCATE 5, 1: PRINT "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=--=-=-=-=-=-=-"
630 SHELL "dir *.PLT /w"
640 PRINT : PRINT : PRINT SPC(10); : INPUT "Enter name of pilot file to be deleted without '.PLT'"; D$
645 BEEP: BEEP: PRINT SPC(25); "Are you sure? (Y/N)"; : INPUT R$
646 IF R$ = "" GOTO 645
647 IF R$ = "Y" OR R$ = "y" GOTO 650
648 GOTO 20
650 D$ = P$ + "\" + D$ + ".PLT"
651 KILL D$
652 BEEP: PRINT : PRINT SPC(25); D$ + " file has been deleted."
653 FOR X = 1 TO 15000: NEXT X
660 D$ = ""
670 GOTO 20
699 END
700 CLS
705 LOCATE 8, 20: PRINT "**************** WARNING!!! *********************"
710 LOCATE 10, 20: PRINT "This routine will install a permanent patch"
711 LOCATE 11, 20: PRINT "to this file to view the animated cut scenes"
712 LOCATE 12, 20: PRINT "in X-Wing. Using this function will force a"
713 LOCATE 13, 20: PRINT "termination to ALL current TODs for this pilot."
714 LOCATE 14, 20: PRINT "To see the cut scenes, I recommend that you"
715 LOCATE 15, 20: PRINT "create an expendable pilot file or clone a"
716 LOCATE 16, 20: PRINT "pilot file using a new name then apply this"
717 LOCATE 17, 20: PRINT "option to that expendable file."
720 LOCATE 19, 20: INPUT "Continue with this patch? (Y/N) "; R$
721 IF R$ = "" GOTO 720
722 IF R$ = "Y" OR R$ = "y" GOTO 730
723 GOTO 20
730 R$ = ""
731 BEEP: BEEP: LOCATE 20, 27: INPUT "Are you sure? (Y/N)"; R$
732 IF R$ = "" GOTO 731
735 IF R$ = "Y" OR R$ = "y" GOTO 740
736 GOTO 20
740 CLS : R$ = "" '********** patch cut scenes routine *******************
741 F$ = P$ + "\" + N$ + ".PLT"
742 OPEN F$ FOR BINARY AS #1 LEN = 1
743 A$ = CHR$(0)
744 B$ = CHR$(0)
745 C$ = CHR$(0)
750 GET #1, 737, A$
751 GET #1, 738, B$
752 GET #1, 739, C$
775 A$ = CHR$(3)
776 B$ = CHR$(3)
777 C$ = CHR$(3)
778 PUT #1, 737, A$
779 PUT #1, 738, B$
780 PUT #1, 739, C$
781 A$ = CHR$(0)
782 A$ = CHR$(0)
783 C$ = CHR$(0)
784 GET #1, 753, A$
785 GET #1, 754, A$
786 GET #1, 755, B$
787 A$ = MKI$(12)
788 B$ = MKI$(14)
789 PUT #1, 753, A$
790 PUT #1, 754, A$
791 PUT #1, 755, B$
792 CLOSE #1
795 CLS : LOCATE 10, 20: PRINT "Cut Scenes permanently installed"
796 BEEP: FOR X = 1 TO 15000: NEXT X: GOTO 20
799 END
800 CLS : R = 0 '************** pilot skill level **************************
810 LOCATE 8, 28: PRINT "Change Pilot's Skill"
811 LOCATE 9, 28: PRINT "=-=-=-=-=-=-=-=-=-=-"
812 LOCATE 11, 31: PRINT "1. Rookie"
813 LOCATE 12, 31: PRINT "2. Officer"
814 LOCATE 13, 31: PRINT "3. Veteran"
815 LOCATE 14, 31: PRINT "4. Ace"
816 LOCATE 15, 31: PRINT "5. Top Ace"
817 LOCATE 17, 28: INPUT "Enter your choice... "; R
820 IF R < 1 OR R > 5 GOTO 800
821 F$ = P$ + "\" + N$ + ".PLT"
823 OPEN F$ FOR BINARY AS #1 LEN = 1
830 A$ = CHR$(0)
831 B$ = CHR$(0)
840 GET #1, 9, A$
850 GET #1, 10, B$
851 IF R = 1 THEN A$ = CHR$(0): B$ = CHR$(0): GOTO 860
852 IF R = 2 THEN A$ = CHR$(0): B$ = MKI$(80): GOTO 860
853 IF R = 3 THEN A$ = CHR$(0): B$ = MKI$(128): GOTO 860
854 IF R = 4 THEN A$ = CHR$(0): B$ = MKI$(240): GOTO 860
855 IF R = 5 THEN A$ = MKI$(255): B$ = MKI$(255)
860 PUT #1, 9, A$
861 PUT #1, 10, B$
870 CLOSE #1
880 CLS : LOCATE 12, 21: PRINT "Pilot " + N$ + " is ready to rock and roll!"
881 LOCATE 14, 25: INPUT "Alter another pilot? (Y/N)"; R$
882 IF R$ = "" GOTO 881
883 IF R$ = "Y" OR R$ = "y" GOTO 885
884 LOCATE 16, 27: PRINT "Returning to the Main Menu": FOR X = 1 TO 15000: NEXT X: GOTO 20
885 CLS : R$ = ""
886 LOCATE 12, 23: INPUT "Enter same pilot? (Y/N) "; R$
887 IF R$ = "Y" OR R$ = "y" GOTO 800
888 LOCATE 12, 20: INPUT "Enter Pilot Name without '.PLT'."; N$: GOTO 800
899 END
999 '*************************************************************
1500 CLS : T = 0
1501 LOCATE 8, 25: PRINT "Tour of Duty Mission Number Selection"
1502 LOCATE 9, 25: PRINT "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="
1503 LOCATE 11, 30: PRINT "1. Tour of Duty #1 - 12 Missions"
1504 LOCATE 12, 30: PRINT "2. Tour of Duty #2 - 12 Missions"
1505 LOCATE 13, 30: PRINT "3. Tour of Duty #3 - 14 Missions"
1506 LOCATE 15, 25: INPUT "Enter the number or the TOD... "; T
1507 LOCATE 16, 25: INPUT "Enter the number of the mission to fly "; M
1508 IF T < 1 OR T > 3 GOTO 1500
1509 IF T = 3 AND M < 1 OR M > 14 GOTO 1500
1510 IF T = 3 THEN GOTO 1512
1511 IF T <> 3 AND M < 1 OR M > 12 GOTO 1500
1512 F$ = P$ + "\" + N$ + ".PLT"
1513 OPEN F$ FOR BINARY AS #1 LEN = 1
1514 GOSUB 2100
1520 IF M <> 1 GOTO 1560
1525 A$ = CHR$(0): GET #1, 642, A$: A$ = CHR$(2): PUT #1, 642, A$
1530 B$ = CHR$(0): GET #1, 643, B$: B$ = CHR$(0): PUT #1, 643, B$
1535 C$ = CHR$(0): GET #1, 644, C$: C$ = CHR$(1): PUT #1, 644, C$
1540 D$ = CHR$(0): GET #1, 648, D$: D$ = CHR$(1): PUT #1, 648, D$
1545 E$ = CHR$(0): GET #1, 745, E$: E$ = CHR$(0): PUT #1, 745, E$
1550 G$ = CHR$(0): GET #1, 754, G$: G$ = CHR$(0)
1552 IF T = 1 THEN PUT #1, 753, G$
1554 IF T = 2 THEN PUT #1, 754, G$
1556 IF T = 3 THEN PUT #1, 755, G$
1559 CLOSE #1: GOTO 2090
1560 IF M <> 2 GOTO 1600
1565 A$ = CHR$(0): GET #1, 642, A$: A$ = CHR$(4): PUT #1, 642, A$
1570 B$ = CHR$(0): GET #1, 643, B$: B$ = CHR$(1): PUT #1, 643, B$
1575 C$ = CHR$(0): GET #1, 644, C$: C$ = CHR$(2): PUT #1, 644, C$
1580 D$ = CHR$(0): GET #1, 648, D$: D$ = CHR$(2): PUT #1, 648, D$
1585 E$ = CHR$(0): GET #1, 745, E$: E$ = CHR$(1): PUT #1, 745, E$
1590 G$ = CHR$(0): GET #1, 753, G$: G$ = CHR$(1)
1591 IF T = 1 THEN PUT #1, 753, G$
1592 IF T = 2 THEN PUT #1, 754, G$
1593 IF T = 3 THEN PUT #1, 755, G$
1595 CLOSE #1: GOTO 2090
1600 IF M <> 3 GOTO 1640
1605 A$ = CHR$(0): GET #1, 642, A$: A$ = CHR$(5): PUT #1, 642, A$
1610 B$ = CHR$(0): GET #1, 643, B$: B$ = CHR$(2): PUT #1, 643, B$
1615 C$ = CHR$(0): GET #1, 644, C$: C$ = CHR$(3): PUT #1, 644, C$
1620 D$ = CHR$(0): GET #1, 648, D$: D$ = CHR$(3): PUT #1, 648, D$
1625 E$ = CHR$(0): GET #1, 745, E$: E$ = CHR$(2): PUT #1, 745, E$
1630 G$ = CHR$(0): GET #1, 753, G$: G$ = CHR$(2)
1631 IF T = 1 THEN PUT #1, 753, G$
1632 IF T = 2 THEN PUT #1, 754, G$
1633 IF T = 3 THEN PUT #1, 755, G$
1635 CLOSE #1: GOTO 2090
1640 IF M <> 4 GOTO 1680
1645 A$ = CHR$(0): GET #1, 642, A$: A$ = CHR$(6): PUT #1, 642, A$
1650 B$ = CHR$(0): GET #1, 643, B$: B$ = CHR$(3): PUT #1, 643, B$
1655 C$ = CHR$(0): GET #1, 644, C$: C$ = CHR$(4): PUT #1, 644, C$
1660 D$ = CHR$(0): GET #1, 648, D$: D$ = CHR$(4): PUT #1, 648, D$
1665 E$ = CHR$(0): GET #1, 745, E$: E$ = CHR$(3): PUT #1, 745, E$
1670 G$ = CHR$(0): GET #1, 753, G$: G$ = CHR$(3)
1671 IF T = 1 THEN PUT #1, 753, G$
1672 IF T = 2 THEN PUT #1, 754, G$
1673 IF T = 3 THEN PUT #1, 755, G$
1675 CLOSE #1: GOTO 2090
1680 IF M <> 5 GOTO 1725
1690 A$ = CHR$(0): GET #1, 642, A$: A$ = CHR$(7): PUT #1, 642, A$
1695 B$ = CHR$(0): GET #1, 643, B$: B$ = CHR$(4): PUT #1, 643, B$
1700 C$ = CHR$(0): GET #1, 644, C$: C$ = CHR$(5): PUT #1, 644, C$
1705 D$ = CHR$(0): GET #1, 648, D$: D$ = CHR$(5): PUT #1, 648, D$
1710 E$ = CHR$(0): GET #1, 745, E$: E$ = CHR$(4): PUT #1, 745, E$
1715 G$ = CHR$(0): GET #1, 753, G$: G$ = CHR$(4)
1716 IF T = 1 THEN PUT #1, 753, G$
1717 IF T = 2 THEN PUT #1, 754, G$
1718 IF T = 3 THEN PUT #1, 755, G$
1720 CLOSE #1: GOTO 2090
1725 IF M <> 6 GOTO 1765
1730 A$ = CHR$(0): GET #1, 642, A$: A$ = CHR$(8): PUT #1, 642, A$
1735 B$ = CHR$(0): GET #1, 643, B$: B$ = CHR$(5): PUT #1, 643, B$
1740 C$ = CHR$(0): GET #1, 644, C$: C$ = CHR$(6): PUT #1, 644, C$
1745 D$ = CHR$(0): GET #1, 648, D$: D$ = CHR$(6): PUT #1, 648, D$
1750 E$ = CHR$(0): GET #1, 745, E$: E$ = CHR$(5): PUT #1, 745, E$
1755 G$ = CHR$(0): GET #1, 753, G$: G$ = CHR$(5)
1756 IF T = 1 THEN PUT #1, 753, G$
1757 IF T = 2 THEN PUT #1, 754, G$
1758 IF T = 3 THEN PUT #1, 755, G$
1760 CLOSE #1: GOTO 2090
1765 IF M <> 7 GOTO 1805
1770 A$ = CHR$(0): GET #1, 642, A$: A$ = CHR$(9): PUT #1, 642, A$
1775 B$ = CHR$(0): GET #1, 643, B$: B$ = CHR$(6): PUT #1, 643, B$
1780 C$ = CHR$(0): GET #1, 644, C$: C$ = CHR$(7): PUT #1, 644, C$
1785 D$ = CHR$(0): GET #1, 648, D$: D$ = CHR$(7): PUT #1, 648, D$
1790 E$ = CHR$(0): GET #1, 745, E$: E$ = CHR$(6): PUT #1, 745, E$
1795 G$ = CHR$(0): GET #1, 753, G$: G$ = CHR$(6)
1796 IF T = 1 THEN PUT #1, 753, G$
1797 IF T = 2 THEN PUT #1, 754, G$
1798 IF T = 3 THEN PUT #1, 755, G$
1800 CLOSE #1: GOTO 2090
1805 IF M <> 8 GOTO 1845
1810 A$ = CHR$(0): GET #1, 642, A$: A$ = MKI$(10): PUT #1, 642, A$
1815 B$ = CHR$(0): GET #1, 643, B$: B$ = CHR$(7): PUT #1, 643, B$
1820 C$ = CHR$(0): GET #1, 644, C$: C$ = CHR$(8): PUT #1, 644, C$
1825 D$ = CHR$(0): GET #1, 648, D$: D$ = CHR$(8): PUT #1, 648, D$
1830 E$ = CHR$(0): GET #1, 745, E$: E$ = CHR$(7): PUT #1, 745, E$
1835 G$ = CHR$(0): GET #1, 753, G$: G$ = CHR$(7)
1836 IF T = 1 THEN PUT #1, 753, G$
1837 IF T = 2 THEN PUT #1, 754, G$
1838 IF T = 3 THEN PUT #1, 755, G$
1840 CLOSE #1: GOTO 2090
1845 IF M <> 9 GOTO 1885
1850 A$ = CHR$(0): GET #1, 642, A$: A$ = MKI$(11): PUT #1, 642, A$
1855 B$ = CHR$(0): GET #1, 643, B$: B$ = CHR$(7): PUT #1, 643, B$
1860 C$ = CHR$(0): GET #1, 644, C$: C$ = CHR$(8): PUT #1, 644, C$
1865 D$ = CHR$(0): GET #1, 648, D$: D$ = CHR$(8): PUT #1, 648, D$
1870 E$ = CHR$(0): GET #1, 745, E$: E$ = CHR$(7): PUT #1, 745, E$
1875 G$ = CHR$(0): GET #1, 753, G$: G$ = CHR$(8)
1876 IF T = 1 THEN PUT #1, 753, G$
1877 IF T = 2 THEN PUT #1, 754, G$
1878 IF T = 3 THEN PUT #1, 755, G$
1880 CLOSE #1: GOTO 2090
1885 IF M <> 10 GOTO 1925
1890 A$ = CHR$(0): GET #1, 642, A$: A$ = MKI$(12): PUT #1, 642, A$
1895 B$ = CHR$(0): GET #1, 643, B$: B$ = CHR$(9): PUT #1, 643, B$
1900 C$ = CHR$(0): GET #1, 644, C$: C$ = MKI$(10): PUT #1, 644, C$
1905 D$ = CHR$(0): GET #1, 648, D$: D$ = MKI$(10): PUT #1, 648, D$
1910 E$ = CHR$(0): GET #1, 745, E$: E$ = CHR$(9): PUT #1, 745, E$
1915 G$ = CHR$(0): GET #1, 753, G$: G$ = MKI$(9)
1916 IF T = 1 THEN PUT #1, 753, G$
1917 IF T = 2 THEN PUT #1, 754, G$
1918 IF T = 3 THEN PUT #1, 755, G$
1920 CLOSE #1: GOTO 2090
1925 IF M <> 11 GOTO 1965
1930 A$ = CHR$(0): GET #1, 642, A$: A$ = MKI$(14): PUT #1, 642, A$
1935 B$ = CHR$(0): GET #1, 643, B$: B$ = MKI$(10): PUT #1, 643, B$
1940 C$ = CHR$(0): GET #1, 644, C$: C$ = MKI$(11): PUT #1, 644, C$
1945 D$ = CHR$(0): GET #1, 648, D$: D$ = MKI$(11): PUT #1, 648, D$
1950 E$ = CHR$(0): GET #1, 745, E$: E$ = MKI$(10): PUT #1, 745, E$
1955 G$ = CHR$(0): GET #1, 753, G$: G$ = MKI$(10)
1956 IF T = 1 THEN PUT #1, 753, G$
1957 IF T = 2 THEN PUT #1, 754, G$
1958 IF T = 3 THEN PUT #1, 755, G$
1960 CLOSE #1: GOTO 2090
1965 IF M <> 12 GOTO 2005
1970 A$ = CHR$(0): GET #1, 642, A$: A$ = MKI$(15): PUT #1, 642, A$
1975 B$ = CHR$(0): GET #1, 643, B$: B$ = MKI$(11): PUT #1, 643, B$
1980 C$ = CHR$(0): GET #1, 644, C$: C$ = MKI$(12): PUT #1, 644, C$
1985 D$ = CHR$(0): GET #1, 648, D$: D$ = MKI$(12): PUT #1, 648, D$
1990 E$ = CHR$(0): GET #1, 745, E$: E$ = MKI$(11): PUT #1, 745, E$
1995 G$ = CHR$(0): GET #1, 753, G$: G$ = MKI$(11)
1996 IF T = 1 THEN PUT #1, 753, G$
1997 IF T = 2 THEN PUT #1, 754, G$
1998 IF T = 3 THEN PUT #1, 755, G$
2000 CLOSE #1: GOTO 2090
2005 IF M <> 13 GOTO 2045
2010 A$ = CHR$(0): GET #1, 642, A$: A$ = MKI$(16): PUT #1, 642, A$
2015 B$ = CHR$(0): GET #1, 643, B$: B$ = MKI$(12): PUT #1, 643, B$
2020 C$ = CHR$(0): GET #1, 644, C$: C$ = MKI$(14): PUT #1, 644, C$
2025 D$ = CHR$(0): GET #1, 648, D$: D$ = MKI$(14): PUT #1, 648, D$
2030 E$ = CHR$(0): GET #1, 745, E$: E$ = MKI$(12): PUT #1, 745, E$
2035 G$ = CHR$(0): GET #1, 753, G$: G$ = MKI$(12)
2036 IF T = 1 THEN PUT #1, 753, G$
2037 IF T = 2 THEN PUT #1, 754, G$
2038 IF T = 3 THEN PUT #1, 755, G$
2040 CLOSE #1: GOTO 2090
2045 IF M <> 14 GOTO 2085
2050 A$ = CHR$(0): GET #1, 642, A$: A$ = MKI$(10): PUT #1, 642, A$
2055 B$ = CHR$(0): GET #1, 643, B$: B$ = MKI$(14): PUT #1, 643, B$
2060 C$ = CHR$(0): GET #1, 644, C$: C$ = MKI$(15): PUT #1, 644, C$
2065 D$ = CHR$(0): GET #1, 648, D$: D$ = MKI$(15): PUT #1, 648, D$
2070 E$ = CHR$(0): GET #1, 745, E$: E$ = MKI$(14): PUT #1, 745, E$
2075 G$ = CHR$(0): GET #1, 753, G$: G$ = MKI$(13)
2076 IF T = 1 THEN PUT #1, 753, G$
2077 IF T = 2 THEN PUT #1, 754, G$
2078 IF T = 3 THEN PUT #1, 755, G$
2080 CLOSE #1: GOTO 2090
2085 GOTO 1500
2090 LOCATE 18, 40: PRINT "DONE.": FOR X = 1 TO 15000: NEXT: GOTO 20
2099 END
2200 CLS : R = 0 '************ badge routines ****************************
2201 LOCATE 8, 28: PRINT "Award Flight Badge"
2202 LOCATE 9, 28: PRINT "=-=-=-=-=-=-=-=-=-="
2203 LOCATE 11, 33: PRINT "1. X-WING"
2204 LOCATE 12, 33: PRINT "2. A-WING"
2205 LOCATE 13, 33: PRINT "3. Y-WING"
2209 LOCATE 18, 28: INPUT "Select Badge... ", R: IF R = 0 GOTO 2209
2210 IF R < 1 OR R > 3 GOTO 2200
2211 F$ = P$ + "\" + N$ + ".PLT"
2212 OPEN F$ FOR BINARY AS #1 LEN = 1
2213 A$ = CHR$(0)
2214 IF R = 1 THEN GET #1, 135, A$: GOTO 2230
2215 IF R = 2 THEN GET #1, 136, A$: GOTO 2232
2216 IF R = 3 THEN GET #1, 137, A$: GOTO 2234
2230 A$ = CHR$(8): PUT #1, 135, A$: GOTO 2240
2232 A$ = CHR$(8): PUT #1, 136, A$: GOTO 2240
2234 A$ = CHR$(8): PUT #1, 137, A$
2240 CLOSE #1
2250 CLS : LOCATE 12, 21: PRINT "Pilot " + N$ + " is ready to rock and roll!"
2251 LOCATE 14, 23: INPUT "Award another badge? (Y/N)"; R$
2252 IF R$ = "" GOTO 2251
2253 IF R$ = "Y" OR R$ = "y" GOTO 2270
2260 LOCATE 16, 27: PRINT "Returning to the Main Menu": FOR X = 1 TO 15000
: NEXT X: GOTO 20
2270 CLS
2280 LOCATE 12, 20: INPUT "Enter Pilot Name without '.PLT'."; N$: GOTO 2200
2299 END
2100 X$ = CHR$(0): Y$ = CHR$(0): Z$ = CHR$(0)
2101 GET #1, 737, X$: GET #1, 738, Y$: GET #1, 739, Z$
2110 IF T <> 1 GOTO 2120
2111 X$ = CHR$(1): Y$ = CHR$(2): Z$ = CHR$(2)
2112 PUT #1, 737, X$: PUT #1, 738, Y$: PUT #1, 739, Z$
2113 GOTO 2150
2119 END
2120 IF T <> 2 GOTO 2130
2121 X$ = CHR$(2): Y$ = CHR$(1): Z$ = CHR$(2)
2122 PUT #1, 737, X$: PUT #1, 738, Y$: PUT #1, 739, Z$
2123 GOTO 2150
2129 END
2130 X$ = CHR$(2): Y$ = CHR$(C): Z$ = CHR$(1)
2131 PUT #1, 737, X$: PUT #1, 738, Y$: PUT #1, 739, Z$
2150 RETURN
2199 END
9000 CLS
9010 LOCATE 4, 20: PRINT "XEDIT 1.1 is an improved and slightly better"
9011 LOCATE 5, 20: PRINT "version of my first release. It was born "
9012 LOCATE 6, 20: PRINT "out of despiration of playing some of the "
9013 LOCATE 7, 20: PRINT "near impossible X-WING missions."
9014 LOCATE 9, 20: PRINT "XEDIT is being distributed as a shareware "
9015 LOCATE 10, 20: PRINT "program. I'd appreciate any nominal donation"
9016 LOCATE 11, 20: PRINT "you think the program is worth."
9017 LOCATE 13, 20: PRINT "Send any donations to:"
9018 LOCATE 15, 20: PRINT " Keith Heitmann"
9019 LOCATE 16, 20: PRINT " 2128 Lapine"
9020 LOCATE 17, 20: PRINT " Portage, IN, 46368-1420"
9021 LOCATE 19, 20: PRINT "This is most likely to be the only version"
9022 LOCATE 20, 20: PRINT "this program."
9023 SYSTEM
9999 END