Hurray. It's not often that it really pisses me off when I was right. This is one of these occasionsAhruman wrote:No. If there’s a ship script, it overrides any _actions.Lestradae wrote:Sorry if that detail is still not absolutely clear to me, but I can have both a death action and a ship script in the same entry and both will work
Wrong. The death_actions (and setup_actions, launch_actions, and script_actions) are run by the default ship script, oolite-default-ship-script.js. If you have a custom ship script, it replaces the default ship script completely.Commander McLane wrote:Concerning the overriding: If there is a shipDied event-handler in the ship script, it will override the death_actions in the shipdata. If no shipDied exists, it can't override anything, can it? Therefore the death_actions will be executed.
I can't have a ship with both Griff's exploding thingies and a witty remark at its demise then. Great