3436
Modding / Re: "Detailed kill list" mod, is this possible?
« 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.
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.