.NA% EQUS "JAMESON" \ The current commander name, which defaults to JAMESON EQUB 13 \ \ The commander name can be up to 7 characters (the DFS \ limit for file names), and is terminated by a carriage \ return \ NA%+8 is the start of the commander data block \ \ This block contains the last saved commander data \ block. As the game is played it uses an identical \ block at location TP to store the current commander \ state, and that block is copied here when the game is \ saved. Conversely, when the game starts up, the block \ here is copied to TP, which restores the last saved \ commander when we die \ \ The initial state of this block defines the default \ commander. Q% can be set to TRUE to give the default \ commander lots of credits and equipment EQUB 0 \ TP = Mission status, #0 \ \ Note that this byte must not have bit 7 set, or \ loading this commander will cause the game to restart EQUB 20 \ QQ0 = Current system X-coordinate (Lave), #1 EQUB 173 \ QQ1 = Current system Y-coordinate (Lave), #2 EQUW &5A4A \ QQ21 = Seed s0 for system 0, galaxy 0 (Tibedied), #3-4 EQUW &0248 \ QQ21 = Seed s1 for system 0, galaxy 0 (Tibedied), #5-6 EQUW &B753 \ QQ21 = Seed s2 for system 0, galaxy 0 (Tibedied), #7-8 IF Q% EQUD &00CA9A3B \ CASH = Amount of cash (100,000,000 Cr), #9-12 ELSE EQUD &E8030000 \ CASH = Amount of cash (100 Cr), #9-12 ENDIF EQUB 70 \ QQ14 = Fuel level, #13 EQUB 0 \ COK = Competition flags, #14 EQUB 0 \ GCNT = Galaxy number, 0-7, #15 EQUB POW+(128 AND Q%) \ LASER = Front laser, #16 EQUB (POW+128) AND Q% \ LASER+1 = Rear laser, #17 EQUB 0 \ LASER+2 = Left laser, #18 EQUB 0 \ LASER+3 = Right laser, #19 EQUW 0 \ These bytes are unused (they were originally used for \ up/down lasers, but they were dropped), #20-21 EQUB 22+(15 AND Q%) \ CRGO = Cargo capacity, #22 EQUB 0 \ QQ20+0 = Amount of Food in cargo hold, #23 EQUB 0 \ QQ20+1 = Amount of Textiles in cargo hold, #24 EQUB 0 \ QQ20+2 = Amount of Radioactives in cargo hold, #25 EQUB 0 \ QQ20+3 = Amount of Slaves in cargo hold, #26 EQUB 0 \ QQ20+4 = Amount of Liquor/Wines in cargo hold, #27 EQUB 0 \ QQ20+5 = Amount of Luxuries in cargo hold, #28 EQUB 0 \ QQ20+6 = Amount of Narcotics in cargo hold, #29 EQUB 0 \ QQ20+7 = Amount of Computers in cargo hold, #30 EQUB 0 \ QQ20+8 = Amount of Machinery in cargo hold, #31 EQUB 0 \ QQ20+9 = Amount of Alloys in cargo hold, #32 EQUB 0 \ QQ20+10 = Amount of Firearms in cargo hold, #33 EQUB 0 \ QQ20+11 = Amount of Furs in cargo hold, #34 EQUB 0 \ QQ20+12 = Amount of Minerals in cargo hold, #35 EQUB 0 \ QQ20+13 = Amount of Gold in cargo hold, #36 EQUB 0 \ QQ20+14 = Amount of Platinum in cargo hold, #37 EQUB 0 \ QQ20+15 = Amount of Gem-Stones in cargo hold, #38 EQUB 0 \ QQ20+16 = Amount of Alien Items in cargo hold, #39 EQUB Q% \ ECM = E.C.M., #40 EQUB Q% \ BST = Fuel scoops ("barrel status"), #41 EQUB Q% AND 127 \ BOMB = Energy bomb, #42 EQUB Q% AND 1 \ ENGY = Energy/shield level, #43 EQUB Q% \ DKCMP = Docking computer, #44 EQUB Q% \ GHYP = Galactic hyperdrive, #45 EQUB Q% \ ESCP = Escape pod, #46 EQUD 0 \ These four bytes are unused, #47-50 EQUB 3+(Q% AND 1) \ NOMSL = Number of missiles, #51 EQUB 0 \ FIST = Legal status ("fugitive/innocent status"), #52 EQUB 16 \ AVL+0 = Market availability of Food, #53 EQUB 15 \ AVL+1 = Market availability of Textiles, #54 EQUB 17 \ AVL+2 = Market availability of Radioactives, #55 EQUB 0 \ AVL+3 = Market availability of Slaves, #56 EQUB 3 \ AVL+4 = Market availability of Liquor/Wines, #57 EQUB 28 \ AVL+5 = Market availability of Luxuries, #58 EQUB 14 \ AVL+6 = Market availability of Narcotics, #59 EQUB 0 \ AVL+7 = Market availability of Computers, #60 EQUB 0 \ AVL+8 = Market availability of Machinery, #61 EQUB 10 \ AVL+9 = Market availability of Alloys, #62 EQUB 0 \ AVL+10 = Market availability of Firearms, #63 EQUB 17 \ AVL+11 = Market availability of Furs, #64 EQUB 58 \ AVL+12 = Market availability of Minerals, #65 EQUB 7 \ AVL+13 = Market availability of Gold, #66 EQUB 9 \ AVL+14 = Market availability of Platinum, #67 EQUB 8 \ AVL+15 = Market availability of Gem-Stones, #68 EQUB 0 \ AVL+16 = Market availability of Alien Items, #69 EQUB 0 \ QQ26 = Random byte that changes for each visit to a \ system, for randomising market prices, #70 EQUW 0 \ TALLY = Number of kills, #71-72 EQUB 128 \ SVC = Save count, #73Name: NA% [View in context] Type: Variable Category: Save and load Summary: The data block for the last saved commander Deep dive: Commander save files The competition code
Contains the last saved commander data, with the name at NA% and the data at NA%+8 onwards. The size of the data block is given in NT% (which also includes the two checksum bytes that follow this block. This block is initially set up with the default commander, which can be maxed out for testing purposes by setting Q% to TRUE. The commander's name is stored at NA%, and can be up to 7 characters long (the DFS filename limit). It is terminated with a carriage return character, ASCII 13. The offset of each byte within a saved commander file is also shown as #0, #1 and so on, so the kill tally, for example, is in bytes #71 and #72 of the saved file. The related variable name from the current commander block is also shown.
Configuration variable: POW = 15
Pulse laser power
Configuration variable: Q% = _REMOVE_CHECKSUMS
Set Q% to TRUE to max out the default commander, FALSE for the standard default commander (this is set to TRUE if checksums are disabled, just for convenience)