Page 1 of 1

Controlling availabilty of equipment for sale in stations?

Posted: Sat Nov 19, 2011 4:10 pm
by Wildeblood
In my initial version of GalDrive Programmers, the Naval GalDrive Programmer is generally available anywhere one can buy a GalDrive. In stage two, when I introduce the much more affordable civilian version, I want to limit the availability of the naval version to SecCom stations, or possibly SecCom stations and TL15 worlds or some such. I don't actually have the GalNavy related OXPs and haven't actually seen a SecCom station myself, so any advice on the best way to implement this would be appreciated. I've seen people use station name string as a conditional in equipment.plist, do all SecCom stations have the same name? What is their tech level set at? Etc.?

Re: Controlling availabilty of equipment for sale in station

Posted: Sat Nov 19, 2011 4:46 pm
by Capt. Murphy
Umm, you could always download to have a look without actually installing GN. (I haven't got a copy to hand either).

Re: Controlling availabilty of equipment for sale in station

Posted: Sat Nov 19, 2011 4:52 pm
by Wildeblood
Capt. Murphy wrote:
Umm, you could always download to have a look without actually installing GN. (I haven't got a copy to hand either).
Well yes, one could. One was rather hoping to stimulate a discussion about the most reliable method which would be recorded here for the benefit of others in the future. Also, one has never quite understood the whole GalNavy thing - it seems to be distributed over several OXPs?

Re: Controlling availabilty of equipment for sale in station

Posted: Sat Nov 19, 2011 5:00 pm
by Capt. Murphy
On the conditions check I think you can use these status checks.....dockedStationName_string being one of them

// galaxy_number
// returns a value between 0 and 7

// planet_number
// returns a value between 0 and 255

// score_number
// returns the number of the player's current ship kills

// credits_number
// returns the player's credits x10

// legalStatus_number
// returns the bounty on the players head

// fuel_level_number
// returns the fuel level in LY

// dockedAtMainStation_bool
// returns YES if docked at a systems main station, NO otherwise

// dockedStationName_string
// returns NONE if the player isn't docked, the name of the station (from shipdata.plist) if it is, UNKNOWN otherwise

Re: Controlling availabilty of equipment for sale in station

Posted: Sat Nov 19, 2011 5:06 pm
by JazHaz
Wildeblood wrote:
Also, one has never quite understood the whole GalNavy thing - it seems to be distributed over several OXPs?
Yes you have to have one of the Behemoth OXPs installed along with GalNavy. There are a couple or three options for these.

Re: Controlling availabilty of equipment for sale in station

Posted: Sat Nov 19, 2011 6:06 pm
by Switeck
You can also set tech level to 99 in the equipment.plist and alter that tech level based on where you're docking via .js