Removing/Modifying Instantaneous Reputation Loss - Help Please

The place to discuss scripting and game modifications for X4: Foundations.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

AJBradburn
Posts: 2
Joined: Sat, 7. Jan 12, 03:16
x4

Removing/Modifying Instantaneous Reputation Loss - Help Please

Post by AJBradburn »

tldr: I am struggling to track which methods are called when a player owned ship completes a kill. Does anyone have guidance on where this would be, or how to best track this down?



I am working on a mod that eliminates the instantaneous loss of reputation that comes with killing a component or ship.

A player completed kill was easy to modify through notifications.xml.

I am struggling to track which methods are called when a player owned ship completes a kill. Does anyone have guidance on where this would be, or how to best track this down?

Thank you,
Anthony

The lore behind it goes as such:
In a world where ships are using drones to solicit aid upon attack, where trade offers have to be sought out, it should be impossible for a faction to know exactly when a ship or component is destroyed. Only when the same factions owns the sector and ship should such an attack be immediately recognized. Otherwise, and especially when sector owner and ship owner are at war, kills of ships or components should be anonymous (ignored) or delayed with a drone.
kuertee
EGOSOFT
EGOSOFT
Posts: 818
Joined: Sun, 14. Dec 03, 13:05
x4

Re: Removing/Modifying Instantaneous Reputation Loss - Help Please

Post by kuertee »

PlayerAttacks in the notifications xml in the md folder.

For player-owned AI ships, you’ll need to edit the interrupt attacked xml on the aiscripts folder.

I think it’s sufficient to edit the aiscript xml for what you need because it handles attack by you and attacks by anyone else, including your ai pilots.

Check out my Friendly Fire Tweaks mod to get an idea of these two. (Note that there’s a bug in that mod that prevents it from working. But you’ll get an idea of what the mod does from examining my changes and examining those sections of Egosoft’s code.)
AJBradburn
Posts: 2
Joined: Sat, 7. Jan 12, 03:16
x4

Re: Removing/Modifying Instantaneous Reputation Loss - Help Please

Post by AJBradburn »

Thank you for taking the time to reply kuertee. I will take a look and see what I can achieve.

Return to “X4: Foundations - Scripts and Modding”