Merchant ships - units.csv identifier

A forum for the discussion and development of programs to assist working on or playing with the Vegastrike engine and data sets.
Post Reply
GoldenGnu
Bounty Hunter
Bounty Hunter
Posts: 155
Joined: Fri Jan 27, 2006 6:58 pm
Location: Denmark

Merchant ships - units.csv identifier

Post by GoldenGnu »

How can I identify merchant ships, you can trade with, in units.csv?

I'm in the process of adding them to VSTrade, but, I'm unsure how to identify them properly...

Any help would be appreciated... :)
Image
VSTrade - A Merchants Guide to Intergalactic Trading!
0.3.0.0 Stable (3 july 2008)
jackS
Minister of Information
Minister of Information
Posts: 1895
Joined: Fri Jan 31, 2003 9:40 pm
Location: The land of tenure (and diaper changes)

Post by jackS »

if a ship has
A) a docking port specified
B) a non-empty cargo_import field

then you can dock with said vessel and purchase the goods present. If it has a docking port but no cargo import field (I don't think there are any as such, but it's certainly a valid state) then you can sell, but they'll have nothing of their own for sale.
GoldenGnu
Bounty Hunter
Bounty Hunter
Posts: 155
Joined: Fri Jan 27, 2006 6:58 pm
Location: Denmark

Post by GoldenGnu »

Thank you very much :) That's exactly what I needed :D
Image
VSTrade - A Merchants Guide to Intergalactic Trading!
0.3.0.0 Stable (3 july 2008)
Post Reply