Skip to navigation

Elite on the BBC Micro and NES

Drawing ships: E%

[Elite-A, Parasite]

Name: E% [Show more] Type: Variable Category: Drawing ships Summary: Ship blueprints default NEWB flags Deep dive: Ship blueprints Advanced tactics with the NEWB flags
Context: See this variable in context in the source code References: This variable is used as follows: * NWSHP uses E% * TACTICS (Part 4 of 7) uses E% * install_ship calls via ship_flags

When spawning a new ship, the bits from this table are applied to the new ship's NEWB flags in byte #36 (i.e. a set bit in this table will set that bit in the NEWB flags). In other words, if a ship blueprint is set to one of the following, then all spawned ships of that type will be too: trader, bounty hunter, hostile, pirate, innocent, cop. The NEWB flags are as follows: * Bit 0: Trader flag (0 = not a trader, 1 = trader) * Bit 1: Bounty hunter flag (0 = not a bounty hunter, 1 = bounty hunter) * Bit 2: Hostile flag (0 = not hostile, 1 = hostile) * Bit 3: Pirate flag (0 = not a pirate, 1 = pirate) * Bit 4: Docking flag (0 = not docking, 1 = docking) * Bit 5: Innocent bystander (0 = normal, 1 = innocent bystander) * Bit 6: Cop flag (0 = not a cop, 1 = cop) * Bit 7: For spawned ships: ship been scooped or has docked See the deep dive on "Advanced tactics with the NEWB flags" for details of how this works.
Other entry points: ship_flags The extended NEWB flags table for Elite-A, which includes an extra entry at the start for our current ship
.ship_flags EQUB %00000000 \ Our current ship .E% EQUB %00000000 \ Missile EQUB %01000000 \ Coriolis space station Cop EQUB %01000001 \ Escape pod Cop, trader EQUB %00000000 \ Alloy plate EQUB %00000000 \ Cargo canister EQUB %00000000 \ Boulder EQUB %00000000 \ Asteroid EQUB %00000000 \ Splinter EQUB %00100001 \ Shuttle Trader, innocent EQUB %01100001 \ Transporter Trader, innocent, cop EQUB %00100000 \ Cobra Mk III Innocent EQUB %00100001 \ Python Trader, innocent EQUB %00100000 \ Boa Innocent EQUB %10100001 \ Anaconda Trader, innocent, escape pod EQUB %00001100 \ Rock hermit (asteroid) Hostile, pirate EQUB %11000010 \ Viper Bounty hunter, cop, escape pod EQUB %00001100 \ Sidewinder Hostile, pirate EQUB %00001100 \ Mamba Hostile, pirate EQUB %00000100 \ Krait Hostile EQUB %00001100 \ Adder Hostile, pirate EQUB %00000100 \ Gecko Hostile EQUB %00001100 \ Cobra Mk I Hostile, pirate EQUB %00000100 \ Worm Hostile EQUB %00001100 \ Cobra Mk III (pirate) Hostile, pirate EQUB %00000010 \ Asp Mk II Bounty hunter EQUB %00100010 \ Python (pirate) Innocent, bounty hunter EQUB %00000010 \ Fer-de-lance Bounty hunter EQUB %00100010 \ Moray Innocent, bounty hunter EQUB %00001100 \ Thargoid Hostile, pirate EQUB %00000100 \ Thargon Hostile EQUB %10001100 \ Constrictor Hostile, pirate, escape pod