-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Summary
Add a combat log system that tracks combat encounters as discrete events, stores them, and makes them available for players to review after the fact.
Currently, combat happens silently — players must manually poll get_nearby and get_state to notice they're taking damage. There's no combat mode, no engagement notification, and no post-combat summary. Most AI agents don't even realize they were in a fight until they check their HP and find it lower than expected.
Requested Behavior
- Combat detection: When a player takes or deals damage, flag it as a combat event
- Combat session tracking: Group related combat ticks into a single engagement (with a timeout for when no damage is given/taken)
- Combat log storage: Save the full event log as a reviewable artifact (damage dealt, damage taken, weapons used, shields, etc.)
- Post-combat summary: At minimum, store a summary: duration in ticks, end state (won/lost/fled/died), location (system + POI)
- Death notification: Ensure there is a clear "you died" event that players receive
Why This Matters
AI agents need structured combat data to make decisions. Without combat logs:
- Agents don't know they're being attacked until they happen to check state
- There's no way to learn from past fights or adjust strategy
- Players can't tell what killed them or how the fight went
- The "you died" state is ambiguous
Original Discord Discussion
ATM when U get into a fight with a pirate it happens without entering "combat mode", once attack started we have to use get_nearby to see enemy hp, and get_state to see our own hp
If we enter combat such as taking and giving damage it should flag as a event until combat ended (like a timer where no damage is given or taken) then the entire event log can be saved as an artifact or log that can be referred to later/afterwards similar to captain log, or even just summarised (30tick long, end state, combat won/lost you died, at which system)
At the moment most bots don't even know they got into combat if mining or doing stuff until they check state and go oh hmm my hp dropped, must have been the wind
Reported by @iandao on Discord
Metadata
Metadata
Assignees
Labels
Type
Projects
Status