I have an idea for an AI script that makes use of the L/XL trading docks on stations. I want the ship to approach each dock on a station in turn and reveal the associated trade offers to the player (it'll be an M ship or smaller, so no worries about getting right up close to it). I can get the trade docks as so:
Code: Select all
<find_object_component groupname="$tradedocks" multiple="true" class="class.tradeofferdock" object="$station" />
Code: Select all
<find_sell_offer space="this.ship.zone" multiple="true" result="$sellers" />
<find_buy_offer space="this.ship.zone" multiple="true" result="$buyers" />