What an add-on gets with events.game (on_event(event)) and events.journal (on_journal(event)), per game. Each game's engine decides its events; nothing maps one game's events onto another's, so check api.active_game["id"] (or on_game) before you rely on a type. New types can appear in any version: ignore ones you don't know.
Every game event arrives as:
{"type": "vehicle.missile_warning", "data": {...}, "ts": 1800000000.0}
data depends on the event (often empty). ts is when Comms Array saw it, in seconds.
Star Citizen (starcitizen)
From the game's telemetry feed.
| type | meaning |
|---|---|
player.downed, player.dead | your character was downed, or died |
player.recovered | back up after being downed (revived, or healed) |
player.respawn, player.spawn | respawned after dying, or spawned in |
seat.enter, seat.leave | you sat down in, or left, a seat |
vehicle.changed | you boarded, left or switched ships |
vehicle.shields_down | shields below 5% (fires again only after they're back above 25%) |
vehicle.hull_critical | hull below 25% |
vehicle.warning | a warning light turned major: pwr, wpn, thr, shld, cool, qdrv, radr, prox, hit, misl |
vehicle.under_fire | the ship's HIT light lit (at most once every 10 s) |
vehicle.missile_warning | the ship's MISL light lit (at most once every 5 s) |
vehicle.gear, vehicle.landed, vehicle.takeoff | landing gear and landings |
vehicle.quantum_spool, vehicle.quantum_travel, vehicle.quantum_exit | quantum travel |
vehicle.disabled, vehicle.destroyed, vehicle.damaged, vehicle.restored | the ship's condition changed (worked out from its power and hull) |
wallet.change | your aUEC changed |
Log events (events.journal)
Read from the game's Game.log. Never chat, and never other players' names: the engine drops chat and social lines and strips name fields before anything reaches an add-on.
| type | meaning |
|---|---|
mission.accepted, mission.completed, mission.failed, mission.withdrawn, mission.abandoned, mission.expired | a contract's lifecycle |
mission.shared | a contract was shared with you |
objective.completed | a contract objective was done |
ship.destroyed | you destroyed a ship. bucket says whose: npc, player, salvage, own (your own ship's self-destruct) or unknown; with its class and the game's reason |
ship.lost | your ship was destroyed by someone else. by says by whom (a player, an NPC, or unknown), with its class and reason |
life.med_bed, life.hangar, life.crimestat | a med bed, your hangar, a crime stat change |
place.jurisdiction, place.armistice | you entered a jurisdiction or an armistice zone |
Elite Dangerous (elite)
From the game's Player Journal.
| type | meaning |
|---|---|
game.loaded, game.shutdown | you loaded into the game, or closed it |
player.died, player.resurrect, player.self_destruct | death, back in action, self destruct |
player.low_health, player.low_oxygen | on foot: health or oxygen low |
player.embarked, player.disembarked | on foot: got in or out of a ship |
player.crime | a crime was committed |
vehicle.shields_down, vehicle.shields_up | shields dropped, or came back |
vehicle.hull_damage, vehicle.under_attack, vehicle.cockpit_breached | damage (at most once every 2 s / 10 s) |
vehicle.heat_warning, vehicle.heat_damage, vehicle.overheating | heat |
vehicle.fuel_low | fuel low |
vehicle.interdicted, vehicle.being_interdicted, vehicle.escaped_interdiction | interdictions |
vehicle.docked, vehicle.undocked, vehicle.touchdown, vehicle.liftoff | docking and landing |
vehicle.fighter_launched, vehicle.fighter_destroyed | ship-launched fighters |
vehicle.srv_launched, vehicle.srv_docked, vehicle.srv_destroyed | the SRV |
travel.fsd_charging, travel.jump_started, travel.jumped | hyperspace jumps |
travel.supercruise_entry, travel.supercruise_exit | supercruise |
mission.accepted, mission.completed, mission.failed, mission.abandoned | missions |
combat.bounty, combat.bond, combat.pvp_kill | combat rewards |
wing.joined, wing.left, wing.member_joined, crew.joined, crew.left | wings and multicrew |
Other games
A game added by someone else's engine sends the events its engine declares. The engine link reference is the format; the engine's own page should list its events.