Ship OXP for player use only?

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: winston, another_commander

Post Reply
User avatar
Holmes177
Competent
Competent
Posts: 56
Joined: Tue Apr 22, 2014 11:34 am

Ship OXP for player use only?

Post by Holmes177 »

Can someone advise me how to modify a ship OXP so that it is available only to the player(me). Thanks
User avatar
Norby
---- E L I T E ----
---- E L I T E ----
Posts: 2577
Joined: Mon May 20, 2013 9:53 pm
Location: Budapest, Hungary (Mainly Agricultural Democracy, TL10)
Contact:

Re: Ship OXP for player use only?

Post by Norby »

In the proper Config/shipdata.plist find all corresponding lines with roles and set:

Code: Select all

roles="player";
This will stop the core game to add NPCs but OXP scripts still can add this ship, in this case you must hunt down the script and comment out the system.addShips("yourship", ...) call.
User avatar
Redspear
---- E L I T E ----
---- E L I T E ----
Posts: 2687
Joined: Thu Jun 20, 2013 10:22 pm
Location: On the moon Thought, orbiting the planet Ignorance.

Re: Ship OXP for player use only?

Post by Redspear »

As Norby said but don't use Notepad to edit the files (it can mess them up).

If you no longer want them to appear for sale (once you've bought one of course :mrgreen: ) then you can edit shipyard.plist and change the "chance" line for that ship to...

Code: Select all

chance=0;
...and that should stop them appearing for sale. Combined with Norby's tweak above, your ship should then be unique within your game.
User avatar
mossfoot
---- E L I T E ----
---- E L I T E ----
Posts: 827
Joined: Fri May 30, 2014 4:07 pm
Contact:

Re: Ship OXP for player use only?

Post by mossfoot »

Is there any way to set up a ship so it can only be purchased at one specific location (without any additional gear), and automatically remove its availability after that?
--
Image
Pilot: Mossfoot - Ship ID: Viaticus Rex (Cobra MKII)
Rank: Competent - Status: Clean

http://www.noahchinnbooks.com/
User avatar
Norby
---- E L I T E ----
---- E L I T E ----
Posts: 2577
Joined: Mon May 20, 2013 9:53 pm
Location: Budapest, Hungary (Mainly Agricultural Democracy, TL10)
Contact:

Re: Ship OXP for player use only?

Post by Norby »

mossfoot wrote:
Is there any way to set up a ship so it can only be purchased at one specific location (without any additional gear), and automatically remove its availability after that?
My first idea is to do not made available at all but pop up a mission screen in missionScreenOpportunity if the system.ID and station is equal with the specific location. If the player buy it then deduct the cost and use player.replaceShip.
User avatar
mossfoot
---- E L I T E ----
---- E L I T E ----
Posts: 827
Joined: Fri May 30, 2014 4:07 pm
Contact:

Re: Ship OXP for player use only?

Post by mossfoot »

Norby wrote:
mossfoot wrote:
Is there any way to set up a ship so it can only be purchased at one specific location (without any additional gear), and automatically remove its availability after that?
My first idea is to do not made available at all but pop up a mission screen in missionScreenOpportunity if the system.ID and station is equal with the specific location. If the player buy it then deduct the cost and use player.replaceShip.
That would be PERFECT for what I need!
--
Image
Pilot: Mossfoot - Ship ID: Viaticus Rex (Cobra MKII)
Rank: Competent - Status: Clean

http://www.noahchinnbooks.com/
User avatar
Holmes177
Competent
Competent
Posts: 56
Joined: Tue Apr 22, 2014 11:34 am

Re: Ship OXP for player use only?

Post by Holmes177 »

Thanks Norby. Worked great!!
Post Reply