[SCRIPT] HQ watcher, version 0.3

The place to discuss scripting and game modifications for X³: Reunion.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

User avatar
Carlo the Curious
Posts: 16999
Joined: Mon, 5. Mar 07, 22:03
x4

[SCRIPT] HQ watcher, version 0.3

Post by Carlo the Curious »

HQ Watcher script, version 0.3

Alerts you when new ships are built at the player HQ, or when repairs are finished on a ship.

Download
SPK
ZIP

Description
You know how it is, you're busy off playing in X101 in your new Python. Eventually you get a message from the HQ informing you the production queue is empty, but in the meantime a dozen newly-built ships have been sitting there idle.

What this script does is periodically check the list of player ships for new ships which have popped into existance docked at the HQ or nearby (within 500m). If new ships are detected then a message is sent to the player detailing the ships.

[ external image ]

Technically the command is available on any dock, but it's only of use on the HQ.

Usage
A new command 'HQ Watcher' will be available in the HQ command console. It takes one parameter, the poll interval in seconds.

Personally I use 120 seconds, but you can set it to what you like - a lower number may reduce 'false positives' if your HQ is near a shipyard or near a sector where you cap ships a lot.

Tech bits
Command slots - COMMAND_TYPE_STATION_26 (conflicts with Xtended mod)
Text files - 8410, page 8410

Version history
0.3 - 29/06/2007 - Initial release.

Other
Credit to Shovinus for the search algorithm.

Bugs, etc. - PM me or post in this thread.

Return to “X³: Reunion - Scripts and Modding”