Both versions of the docking computer (advanced and standard) will auto-dock your ship, so I think you should just look for either, rather than just the advanced. With that in mind, here is a version of the default 'Docking granted' script, that should do just what you need:How do you check for an advanced docking computer? I'd like to dispense with the landing pad report when one is present.
Code:
{_ Context }
{SetState('eddi_context_last_subject', 'landing pad')}
{SetState('eddi_context_landing_pad_system', system.name)}
{SetState('eddi_context_landing_pad_station', event.station)}
{SetState('eddi_context_landing_pad_station_model', event.stationtype)}
{SetState('eddi_context_landing_pad_pad', event.landingpad)}
{for compartment in ship.compartments:
{if find(compartment.module.name, "Docking") > -1:
{set dockComp to true}
}
}
{if !dockComp:
{if event.stationDefinition.basename = "Coriolis" ||
event.stationDefinition.basename = "Orbis" ||
event.stationDefinition.basename = "Bernal" ||
event.stationDefinition.basename = "Ocellus" ||
event.stationDefinition.basename = "AsteroidBase":
{Pause(8000)}
{F("Landing pad report")}
|else:
{Pause(8000)}
Landing pad {event.landingpad}
{OneOf('ready', 'assigned', 'allocated')}
{Occasionally(4, cat(', ', F('Honorific') ))}.
}
}
I've tested this out in-game, and it works fine. It skips any pad reporting if a docking computer is found on your ship. It won't take into account if that module is deactivated though. I tried checking if it was enabled or disabled, but EDDI always seemed to think it was enabled for some reason, even if it was deactivated.
In fact, I love the idea of this, so I'm adding it to my personality as well. Thank you!
o7
-=] Darkcyde [=-