Download it here auto_agent.zip download
It's also on the Steam Workshop as Auto Trade Agents.
Here's the code for it, if anyone just wants to see how it works
Code: Select all
<?xml version="1.0" encoding="iso-8859-1" ?>
<mdscript name="auto_agent" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="md.xsd">
<cues>
<cue name="AutoAgent" instantiate="false" namespace="this">
<conditions>
<check_any>
<event_object_changed_zone object="player.primaryship"/>
<event_player_created />
<event_cue_signalled cue="md.Setup.GameStart" />
</check_any>
</conditions>
<actions>
<find_station groupname="$allstations" space="player.zone" multiple="true" />
<do_all exact="$allstations.count" counter="$i">
<do_if value="not $allstations.{$i}.hastradesubscription and $allstations.{$i}.relationto.{player.primaryship} ge 0.0">
<set_known object="$allstations.{$i}" known="true" />
<add_trade_subscription object="$allstations.{$i}"/>
</do_if>
</do_all>
<reset_cue cue="this" />
</actions>
</cue>
</cues>
</mdscript>