Fractal Softworks Forum

Please login or register.

Login with username, password and session length

Author Topic: "Detailed kill list" mod, is this possible?  (Read 2500 times)

u2892

  • Ensign
  • *
  • Posts: 5
    • View Profile
"Detailed kill list" mod, is this possible?
« on: August 15, 2016, 11:36:53 PM »

Would it be possible to keep a log of the ships and named characters that I've killed in battle?

Thinking of something like the absurdly detailed kill lists in Dwarf Fortress:

Spoiler
[close]

I have some Java programming experience, but would like advice from those more familiar with the Starsector API.
Logged

Histidine

  • Admiral
  • *****
  • Posts: 4688
    • View Profile
    • GitHub profile
Re: "Detailed kill list" mod, is this possible?
« Reply #1 on: August 18, 2016, 04:36:24 AM »

A CampaignEventListener can get the ships destroyed after each engagement round and you can store the data as you like. Here's an example
The main limitation is there is no way to tell who (or what) killed each ship. So per-ship kill lists are impossible, your fleet can take credit for enemies killed by allies or from hitting asteroids at low health, and things like that.

For actually displaying the information to the player you can use an EveryFrameScript and an InteractionDialogPlugin, like this one.

API information can be obtained from the Starsector API javadocs and the source code in Starsector[/starsector-core if on Windows]/starfarer.api.zip.
Logged