Skip to content

Latest commit

 

History

History
61 lines (60 loc) · 4.12 KB

STTR1-DATA-DICTIONARY.md

File metadata and controls

61 lines (60 loc) · 4.12 KB

STTR1 DATA DICTIONARY

Variable name Variable type Meaning Possible values
A Used as buffer for command input 0 = SET COURSE
1 = SHORT RANGE SENSOR SCAN
2 = LONG RANGE SENSOR SCAN
3 = FIRE PHASERS
4 = FIRE PHOTON TORPEDOES
5 = SHIELD CONTROL
6 = DAMAGE CONTROL REPORT
7 = CALL ON LIBRARY COMPUTER
A Used as buffer for computer command input 0 = CUMULATIVE GALACTIC RECORD
1 = STATUS REPORT
2 = PHOTON TORPEDO DATA
A$ DIM A$(3) Used as buffer for user input "YES"
"NO"
A$ DIM A$(3) Used as buffer for short range scan objects. "___" EMPTY
"<*>" ENTERPRISE
"+++" KLINGON
">!<" STARBASE
" * " STAR
B1 Used as buffer for course or torpedo course input 0 = cancel command
1-8 =valid course
others = input course again
B3 integer Number of starbases at current sector. 0-1
B9 integer Number of starbases in galaxy. 1-64
C DIM C[9,2]
C1
C2
C$ DIM C$[6] Condition DOCKED
GREEN
RED
YELLOW
D MAT D Damage info, 8 elements. D[1]: WARP ENGINE DAMAGE
D[2]: SHORT RANGE SENSOR DAMAGE
D[3]: LONG RANGE SENSOR DAMAGE
D[4]: PHASER CONTROL DAMAGE
D[5]: PHOTON TUBES DAMAGE
D[6]: DAMAGE CONTROL DAMAGE
D[7]: SHIELD CONTROL DAMAGE
D[8]: COMPUTER DAMAGE
D0 0 = NOT DOCKED?
1 = DOCKED?
D$ DIM D$[72] "WARP ENGINESS.R. SENSORSL.R. SENSORSPHASER CNTRLPHOTON TUBESDAMAGE CNTRL"
E integer Current units of energy; initialized to E0. 0-3000
E0 integer Maximum energy. 3000
E$ DIM E$[24] "SHIELD CNTRLCOMPUTER"
G DIM G[8,8]
H Hit points on Enterprise or on Klingon.
H8 Mysterious. Checked for H8 = 1 but set to 0. Looks like its a useless variable ´0´
I
J
K DIM G[3,3] Klingon data. K[I,1],K[I,2] = sector coordinates of Klingon I
K[I,3] = points left on Klingon I
with I from 1 to 3
K3 integer Number of klingons at current sector. 0-3
K7 integer Initial number of klingons in galaxy; used for score computation at end of game. 0-192
K9 integer Number of klingons left in galaxy. 1-192
N integer Used as temporary variable for INT(W1*8) 0-64
N DIM N[3] Used as temporary copy of quadrant neighbourhood.
P Number of available photon torpedoes. 0-10
P0 Never used. Looks like it should be the maximum number of torpedoes. 10
Q1 integer Current quadrant x-coordinate; initialized to random value. 1-8
Q2 integer Current quadrant y-coordinate; initialized to random value. 1-8
Q$ DIM Q$[72]
R1
R2
R$ DIM R$[72]
S Number of energy units on shields. < 0: enterprise destroyed
≤ 200: dangerously low
S1 integer Current sector x-coordinate; initialized to random value. 1-8
S2 integer Current sector y-coordinate; initialized to random value. 1-8
S3 integer Number of stars at current sector. 1-8
S8
S9 Initial points for Klingons. 200
S$ DIM S$[48]
T integer Start stardate initialized to T0. from T0 to T0+T9
T0 integer Current stardate; initialized to a random value from 2000 to 3900. 2000-3900
T7 integer Start timestamp in minutes; initialized to minute+60*hour. 0-1380
T9 integer Number of stardates, in which player must succeed. 30
W1 float Used as input buffer for warp factor. 0-8 = valid warp factor
others = input course again
X Used as torpedo track x-coordinate.
X1
X2
Y Used as torpedo track y-coordinate.
Z DIM Z[8,8] Cumulative galactic record.
Z1
Z2
Z3
Z$ DIM Z$[72] String with 70 whitespaces.