Intercepting mission screen messages

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: winston, another_commander

Post Reply
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 4830
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Intercepting mission screen messages

Post by phkb »

Is it possible to intercept messages that appear immediately after you dock? In particular I'm thinking of the messages you see when you've scooped an escape capsule, or the special mission messages (from Constrictor Hunt or Thargoid plans). I'd like to be able to (at least) capture the text from these messages, but if it's possible to go a bit further I'd like to capture them and display them in another way. Is that possible?
User avatar
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4072
Joined: Fri Nov 11, 2011 6:19 pm

Re: Intercepting mission screen messages

Post by cim »

You can add extra ones with player.addMessageToArrivalReport() and adjust the look of the arrival report page through the usual backgrounds and overlays, but there's no script ability to read or modify the contents of the arrival reports.

(The core ones for contract completion/failure and escape capsules are determined "just in time", so it wouldn't necessarily be all that useful to be able to read the contents of the report before docking)

It might be possible to add more flexibility in this area but it would be useful to know more about what you need the feature for (PM me if you don't want to discuss it in that much detail on the forum)
Post Reply